
/* =====================================================
   Au Naturel — Botanical Charm
   OpenCart 4.1.0.4
   Additional styling; preserves existing shop layout.
   ===================================================== */

:root {
  --an-plum: #70449A;
  --an-plum-dark: #57317D;
  --an-lavender: #F5EFFA;
  --an-lavender-border: #E1D3EE;
  --an-cream: #FBF9FD;
  --an-sage: #78845E;
  --an-text: #49344E;
  --an-border: #E8DFEB;
}

/* Page background and typography */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--an-cream);
  color: var(--an-text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--an-plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.3;
}

#content h1 {
  margin-bottom: 22px;
}

a {
  color: var(--an-plum);
  transition: color .2s ease;
}

a:hover,
a:focus {
  color: var(--an-plum-dark);
}

/* Lavender account strip */
#top {
  background: var(--an-lavender) !important;
  border-bottom: 1px solid var(--an-lavender-border) !important;
}

#top a,
#top .list-inline-item > a,
#top .list-inline-item .dropdown > a,
#top .list-inline-item .dropdown > span {
  color: var(--an-plum) !important;
}

/* Logo: retain the existing image and proportions */
#logo img {
  width: auto;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

/* Search field */
#search .form-control,
#search .form-control-lg {
  border-color: var(--an-border);
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}

#search .btn,
#search .btn-lg {
  border-color: var(--an-border);
  border-radius: 0 8px 8px 0;
}

/* Main navigation */
#menu {
  background: var(--an-plum) !important;
  background-image: none !important;
  border: 1px solid var(--an-plum-dark) !important;
  border-radius: 7px;
  box-shadow: none;
  overflow: visible;
}

#menu .navbar-nav > li > a,
#menu #category,
#menu .navbar-toggler i {
  color: #fff !important;
  text-shadow: none !important;
}

#menu .navbar-nav > li > a {
  padding: 12px 17px;
  border-radius: 5px;
  transition: background .2s ease;
}

#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li.show > a {
  background: var(--an-plum-dark) !important;
}

#menu .dropdown-menu {
  border: 1px solid var(--an-lavender-border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 22px rgba(73, 52, 78, .10);
}

#menu .dropdown-item:hover,
#menu .dropdown-item:focus {
  background: var(--an-lavender);
  color: var(--an-plum-dark);
}

/* Shopping cart */
#cart .btn,
#cart .btn-lg {
  border-radius: 7px;
}

/* Breadcrumbs */
.breadcrumb {
  background: #fff;
  border: 1px solid var(--an-border);
  border-radius: 7px;
  padding: 10px 14px;
}

.breadcrumb a {
  text-decoration: none;
}

/* Product cards */
.product-thumb {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--an-border);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(73, 52, 78, .045);
  transition: box-shadow .2s ease, transform .2s ease;
}

.product-thumb:hover {
  box-shadow: 0 7px 20px rgba(73, 52, 78, .10);
}

.product-thumb .image {
  padding: 12px 12px 0;
}

.product-thumb .image img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 7px;
}

.product-thumb .description {
  padding: 14px;
}

.product-thumb .description h4 {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.4;
}

.product-thumb .description h4 a {
  color: var(--an-plum-dark);
  text-decoration: none;
}

.product-thumb .description h4 a:hover {
  color: var(--an-sage);
}

.product-thumb .price {
  color: var(--an-plum-dark);
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: bold;
}

.product-thumb .price-old {
  color: #987E91;
}

.product-thumb .button button {
  background: var(--an-lavender);
  color: var(--an-plum);
  border-color: var(--an-border);
  transition: background .2s ease, color .2s ease;
}

.product-thumb .button button:hover {
  background: var(--an-plum);
  color: #fff;
}

/* Product detail page */
.product-info .image img,
#product-info .image img,
#product-info .thumbnails img {
  border-radius: 9px;
}

#product-info h1 {
  color: var(--an-plum-dark);
}

#product-info .price,
#product-info .price-new {
  color: var(--an-plum-dark);
}

/* Buttons: preserve functionality, update appearance */
.btn-primary,
.btn-success {
  background: var(--an-plum);
  border-color: var(--an-plum);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  background: var(--an-plum-dark);
  border-color: var(--an-plum-dark);
  color: #fff;
}

.btn-outline-primary {
  color: var(--an-plum);
  border-color: var(--an-plum);
}

.btn-outline-primary:hover {
  background: var(--an-plum);
  border-color: var(--an-plum);
  color: #fff;
}

.btn {
  border-radius: 7px;
}

/* Forms */
.form-control,
.form-select {
  border-color: var(--an-border);
  border-radius: 7px;
}

.form-control:focus,
.form-select:focus {
  border-color: #B99ACD;
  box-shadow: 0 0 0 .2rem rgba(112, 68, 154, .12);
}

/* Information pages */
#content .information-page,
#content .information-page img {
  max-width: 100%;
}

#content img {
  height: auto;
}

#content p {
  line-height: 1.75;
}

/* Tables and panels */
.table {
  --bs-table-bg: #fff;
  border-color: var(--an-border);
}

.card,
.panel,
.list-group-item {
  border-color: var(--an-border);
  border-radius: 8px;
}

/* Footer */
footer {
  background: #302633;
  border-top: 3px solid var(--an-plum);
  color: #F5EFFA;
}

footer h5 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: normal;
}

footer a {
  color: #E6D6F0;
}

footer a:hover {
  color: #fff;
}

/* Cookie notice */
#cookie {
  border-top: 3px solid var(--an-plum);
}

/* Mobile layout */
@media (max-width: 767.98px) {
  #logo {
    text-align: center;
    margin: 12px 0;
  }

  #logo img {
    max-height: 80px;
  }

  #menu {
    margin-bottom: 15px;
    padding: 0 .5rem;
  }

  #menu .navbar-nav > li > a {
    padding: 11px 12px;
  }

  .product-thumb .description {
    padding: 10px;
  }

  .product-thumb .description h4 {
    font-size: 15px;
  }

  .breadcrumb > li.breadcrumb-item {
    padding: 0 8px;
  }

  .breadcrumb > li.breadcrumb-item:after {
    display: none;
  }

  #content h1 {
    font-size: 26px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
