/* Verdant — OpenCart 4 theme by Code Craft.
   Loaded after OpenCart's own stylesheet; restyles the standard Bootstrap 5
   markup on every page and styles Verdant's own header, footer, home and
   product-card templates. Palettes: .vd-sage (default), .vd-clay, .vd-berry. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/fraunces-variable.woff2") format("woff2");
}

.vd {
  --vd-bg: #fbfaf5;
  --vd-surface: #ffffff;
  --vd-ink: #1e2a1f;
  --vd-muted: #5d6b5e;
  --vd-line: #e3e6dc;
  --vd-soft: #eef2e6;
  --vd-accent: #3f6b3a;
  --vd-accent-ink: #ffffff;
  --vd-accent-dark: #2f5230;
  --vd-sale: #c0532f;
  --vd-radius: 14px;
  --vd-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --vd-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--vd-sans);
  --bs-body-color: var(--vd-ink);
  --bs-body-bg: var(--vd-bg);
  --bs-link-color: var(--vd-accent);
  --bs-link-color-rgb: 63, 107, 58;
  --bs-link-hover-color: var(--vd-accent-dark);
  --bs-border-color: var(--vd-line);
  background: var(--vd-bg);
  color: var(--vd-ink);
  font-family: var(--vd-sans);
  font-size: 15px;
}
.vd-clay {
  --vd-bg: #fbf7f2;
  --vd-soft: #f4e9df;
  --vd-line: #eadfd3;
  --vd-ink: #2b211c;
  --vd-muted: #6e5f55;
  --vd-accent: #b4552f;
  --vd-accent-dark: #8f4122;
  --bs-link-color-rgb: 180, 85, 47;
}
.vd-berry {
  --vd-bg: #fbf8fa;
  --vd-soft: #f2e8ef;
  --vd-line: #e9dde6;
  --vd-ink: #2a1d27;
  --vd-muted: #6c5866;
  --vd-accent: #7d3c6b;
  --vd-accent-dark: #612c52;
  --bs-link-color-rgb: 125, 60, 107;
}

.vd h1, .vd h2, .vd h3, .vd .h1, .vd .h2, .vd .h3 {
  font-family: var(--vd-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--vd-ink);
}
.vd a { text-decoration: none; }
/* :where() keeps these at one class of specificity so component link colours (footer, cards, menu) win. */
.vd :where(a:not(.btn)) { color: var(--vd-accent); }
.vd :where(a:not(.btn)):hover { color: var(--vd-accent-dark); }
.vd .btn-link { color: var(--vd-accent); }
.vd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vd :focus-visible { outline: 2px solid var(--vd-accent); outline-offset: 2px; }
.vd-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--vd-ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.vd-skip:focus { left: 8px; }

/* ---------- buttons, forms ---------- */
.vd .btn { border-radius: 999px; font-weight: 600; padding: 0.55rem 1.2rem; background-image: none; text-shadow: none; box-shadow: none; }
.vd .btn-warning, .vd .btn-danger, .vd .btn-info, .vd .btn-inverse { border-color: transparent; }
.vd .btn-danger { --bs-btn-bg: var(--vd-sale); }
.vd .btn-inverse { background-color: var(--vd-ink); color: #fff; }
.vd .btn-primary, .vd .btn-success {
  --bs-btn-bg: var(--vd-accent); --bs-btn-border-color: var(--vd-accent);
  --bs-btn-hover-bg: var(--vd-accent-dark); --bs-btn-hover-border-color: var(--vd-accent-dark);
  --bs-btn-active-bg: var(--vd-accent-dark); --bs-btn-active-border-color: var(--vd-accent-dark);
  --bs-btn-color: var(--vd-accent-ink); --bs-btn-hover-color: var(--vd-accent-ink);
}
.vd .btn-light, .vd .btn-outline-secondary { --bs-btn-bg: var(--vd-surface); --bs-btn-border-color: var(--vd-line); --bs-btn-hover-bg: var(--vd-soft); --bs-btn-hover-border-color: var(--vd-line); }
.vd .btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }
.vd .form-control, .vd .form-select { border-radius: 10px; border-color: var(--vd-line); background-color: var(--vd-surface); }
.vd .form-control:focus, .vd .form-select:focus { border-color: var(--vd-accent); box-shadow: 0 0 0 3px rgba(var(--bs-link-color-rgb), 0.15); }
.vd .input-group > .form-control { border-radius: 999px 0 0 999px; }
.vd .input-group > .btn { border-radius: 0 999px 999px 0; }
.vd .card, .vd .list-group-item { border-color: var(--vd-line); border-radius: var(--vd-radius); }
.vd .alert { border-radius: var(--vd-radius); }
.vd .table { --bs-table-bg: var(--vd-surface); }
.vd .table > :not(caption) > * > * { border-color: var(--vd-line); }
.vd .breadcrumb { background: transparent; border: 0; padding: 1rem 0 0.5rem; margin-bottom: 0.75rem; font-size: 0.85rem; }
.vd .breadcrumb > li.breadcrumb-item { text-shadow: none; padding: 0 0.6rem 0 0; }
.vd .breadcrumb > li.breadcrumb-item::after { display: none; }
.vd .breadcrumb > li.breadcrumb-item + li::before { content: "/"; color: var(--vd-line); padding-right: 0.6rem; }
.vd .breadcrumb a { color: var(--vd-muted); }
.vd .pagination { --bs-pagination-color: var(--vd-ink); --bs-pagination-active-bg: var(--vd-accent); --bs-pagination-active-border-color: var(--vd-accent); --bs-pagination-border-color: var(--vd-line); }
.vd .nav-tabs { border-color: var(--vd-line); }
.vd .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--vd-muted); font-weight: 600; }
.vd .nav-tabs .nav-link.active { color: var(--vd-ink); border-bottom-color: var(--vd-accent); background: transparent; }

/* ---------- announcement, top bar, header ---------- */
.vd-announce { background: var(--vd-accent); color: var(--vd-accent-ink); text-align: center; font-size: 0.85rem; font-weight: 600; padding: 0.45rem 1rem; letter-spacing: 0.01em; }
.vd #top.vd-top { background: var(--vd-soft); border: 0; font-size: 0.82rem; padding: 0.3rem 0; margin: 0; }
.vd #top .list-inline { margin: 0; }
.vd #top a, .vd #top .btn-link { color: var(--vd-muted); }
.vd-header { background: var(--vd-surface); border-bottom: 1px solid var(--vd-line); position: sticky; top: 0; z-index: 1020; padding: 0.9rem 0; transition: box-shadow 0.2s ease; }
.vd-header.is-scrolled { box-shadow: 0 6px 24px rgba(30, 42, 31, 0.08); }
.vd-header__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.vd-logo img { max-height: 48px; width: auto; }
.vd .vd-wordmark { font-family: var(--vd-serif); font-size: 1.7rem; font-weight: 700; color: var(--vd-ink); letter-spacing: -0.02em; }
.vd .vd-wordmark:hover { text-decoration: none; color: var(--vd-accent); }
.vd-search { max-width: 560px; width: 100%; justify-self: center; }
.vd-search #search { margin: 0 !important; }
.vd-search .form-control-lg { font-size: 0.95rem; padding: 0.65rem 1.1rem; background: var(--vd-bg); }
.vd-search .btn-lg { padding: 0.65rem 1.1rem; }
.vd-actions { display: flex; align-items: center; gap: 0.25rem; }
.vd .vd-action { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.7rem; border-radius: 999px; color: var(--vd-ink); font-weight: 600; font-size: 0.9rem; }
.vd .vd-action:hover { background: var(--vd-soft); text-decoration: none; }
.vd-action.dropdown-toggle::after { display: none; }
.vd-cart .btn-inverse, .vd-cart .btn-dark, .vd-cart > .dropdown > .btn { background: var(--vd-accent); border-color: var(--vd-accent); color: var(--vd-accent-ink); border-radius: 999px; font-weight: 600; padding: 0.5rem 1rem; }
.vd-cart .dropdown-menu { border-radius: var(--vd-radius); border-color: var(--vd-line); padding: 0.75rem; min-width: 340px; }

.vd #logo, .vd #search, .vd #header-cart { margin: 0; }
.vd #logo img { max-width: 200px; }
.vd #search .btn-lg { text-shadow: none; line-height: 1.2; }
.vd #header-cart .btn-lg { height: auto; }
.vd #header-cart .dropdown-menu { background: var(--vd-surface); }
.vd #header-cart .dropdown-menu li { min-width: 0; }
.vd #content { min-height: 0; }

/* category menu */
.vd #menu { background: var(--vd-surface) !important; background-image: none !important; border: 0; border-bottom: 1px solid var(--vd-line); border-radius: 0; margin-bottom: 0; padding: 0; min-height: 0; }
.vd #menu.navbar { padding: 0; margin-bottom: 0; }
.vd #menu .navbar-nav > li > a:hover { background-color: transparent; }
.vd #menu .dropdown-inner a { font-size: 0.88rem; padding: 0.35rem 1.1rem; color: var(--vd-ink); }
.vd #menu .dropdown-inner ul li a:hover, .vd #menu .see-all:hover, .vd #menu .see-all:focus { background: var(--vd-soft); background-image: none; color: var(--vd-accent); }
.vd #menu .see-all { font-size: 0.85rem; border-top-color: var(--vd-line); padding: 0.5rem 1.1rem; }
.vd #menu #category { text-shadow: none; }
.vd #menu .navbar-toggler i { color: var(--vd-ink); }
@media (max-width: 767px) {
  .vd #menu div.dropdown-menu { background: var(--vd-soft); box-shadow: none; }
  .vd #menu .dropdown-inner a, .vd #menu .see-all { color: var(--vd-ink); }
}
.vd #menu .navbar-nav > li > a, .vd #menu .navbar-nav > li > .nav-link { color: var(--vd-ink) !important; font-weight: 600; font-size: 0.92rem; padding: 0.85rem 1rem; text-shadow: none; }
.vd #menu .navbar-nav > li > a:hover { color: var(--vd-accent) !important; text-decoration: none; }
.vd #menu .dropdown-menu { border-radius: var(--vd-radius); border-color: var(--vd-line); box-shadow: 0 16px 40px rgba(30, 42, 31, 0.1); }
.vd #menu .see-all { color: var(--vd-accent); font-weight: 600; }
.vd #menu #category { color: var(--vd-ink); font-family: var(--vd-serif); }
.vd #menu .navbar-toggler { color: var(--vd-ink); background: var(--vd-soft); border: 1px solid var(--vd-line); border-radius: 10px; padding: 0.35rem 0.7rem; }

/* ---------- home ---------- */
.vd-hero { position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0; background: var(--vd-soft); overflow: hidden; }
.vd-hero--image { background: linear-gradient(90deg, rgba(20, 28, 20, 0.72), rgba(20, 28, 20, 0.15) 70%), var(--vd-hero) center / cover no-repeat; }
.vd-hero__box { max-width: 620px; }
.vd-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--vd-accent); margin-bottom: 0.75rem; }
.vd-hero--image .vd-eyebrow { color: #cfe6c4; }
.vd-hero__title { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; margin-bottom: 1rem; }
.vd-hero--image .vd-hero__title, .vd-hero--image .vd-hero__text { color: #fff; }
.vd-hero__text { font-size: 1.1rem; color: var(--vd-muted); max-width: 520px; margin-bottom: 1.6rem; }
.vd-hero__btn i { margin-left: 0.35rem; }
.vd-trust { background: var(--vd-surface); border-bottom: 1px solid var(--vd-line); }
.vd-trust__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 1rem 0; }
.vd-trust__list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; font-size: 0.92rem; justify-content: center; }
.vd-trust__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--vd-soft); color: var(--vd-accent); display: inline-grid; place-items: center; }
.vd-cats { padding-top: 2.5rem; }
.vd-cats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 0; }
.vd-cat { position: relative; display: block; border-radius: var(--vd-radius); overflow: hidden; aspect-ratio: 1; background: var(--vd-soft); }
.vd-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.vd-cat:hover img { transform: scale(1.05); }
.vd-cat__name { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; display: flex; justify-content: space-between; align-items: center; background: var(--vd-surface); color: var(--vd-ink); border-radius: 999px; padding: 0.55rem 1rem; font-weight: 700; font-size: 0.95rem; }
.vd-cat:hover { text-decoration: none; }
.vd #common-home { padding-top: 2rem; }
.vd #common-home h3, .vd #content > h3 { font-size: 1.7rem; margin: 1.5rem 0 1.2rem; }

/* ---------- product cards ---------- */
.vd .product-thumb.vd-card { border: 1px solid var(--vd-line); border-radius: var(--vd-radius); background: var(--vd-surface); overflow: hidden; margin-bottom: 1.5rem; height: calc(100% - 1.5rem); display: flex; flex-direction: column; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.vd .product-thumb.vd-card:hover { box-shadow: 0 14px 34px rgba(30, 42, 31, 0.1); transform: translateY(-3px); }
.vd .vd-card__media { position: relative; background: var(--vd-soft); padding: 0; margin: 0; text-align: center; overflow: hidden; }
.vd .vd-card__media a:hover { opacity: 1; }
.vd .product-thumb .button-group.vd-card__actions { border-top: 0; background: none; position: static; width: auto; }
.vd .product-thumb .button-group.vd-card__actions button + button { border-left: 0; }
.vd .product-thumb .button-group.vd-card__actions button { text-transform: none; line-height: 1.2; flex: none; }
.vd .product-thumb .button-group.vd-card__actions .vd-card__add { flex: 1; background: var(--vd-accent); color: var(--vd-accent-ink); }
.vd .product-thumb .button-group.vd-card__actions .vd-card__add:hover { background: var(--vd-accent-dark); color: var(--vd-accent-ink); }
.vd .product-thumb .button-group.vd-card__actions .vd-card__icon { background: var(--vd-soft); color: var(--vd-ink); }
.vd .product-thumb .button-group.vd-card__actions .vd-card__icon:hover { background: var(--vd-line); }
.vd > main { background: var(--vd-surface); border-bottom: 1px solid var(--vd-line); }
.vd .vd-card__media img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.vd .product-thumb.vd-card:hover .vd-card__media img { transform: scale(1.04); }
.vd-badge { position: absolute; top: 0.7rem; left: 0.7rem; background: var(--vd-sale); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; text-transform: uppercase; letter-spacing: 0.04em; }
.vd .vd-card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem; border: 0; }
.vd .vd-card__body .description { padding: 0; min-height: 0; }
.vd .vd-card__title { font-family: var(--vd-sans); font-size: 1rem; font-weight: 700; margin: 0 0 0.35rem; }
.vd .vd-card__title a { color: var(--vd-ink); }
.vd .vd-card__desc { color: var(--vd-muted); font-size: 0.85rem; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd .vd-card__form { margin-top: auto; }
.vd .vd-card__price { margin: 0 0 0.75rem; }
.vd .price-new { font-weight: 800; font-size: 1.1rem; color: var(--vd-ink); }
.vd .price-old { color: var(--vd-muted); text-decoration: line-through; font-size: 0.9rem; margin-left: 0.3rem; }
.vd .price-tax { display: block; color: var(--vd-muted); font-size: 0.75rem; }
.vd .vd-card__actions { display: flex; gap: 0.4rem; border: 0; background: none; }
.vd .vd-card__actions button { border: 0; border-radius: 999px; font-weight: 700; font-size: 0.85rem; padding: 0.55rem 0.8rem; width: auto; float: none; line-height: 1.2; }
.vd .vd-card__add { flex: 1; background: var(--vd-accent); color: var(--vd-accent-ink); }
.vd .vd-card__add:hover { background: var(--vd-accent-dark); }
.vd .vd-card__icon { background: var(--vd-soft); color: var(--vd-ink); width: 38px !important; }
.vd .vd-card__icon:hover { background: var(--vd-line); }
.vd .rating .fa-stack { width: 1.1em; font-size: 0.75rem; color: #d5a028; }

/* ---------- category / search / product pages ---------- */
.vd #product-category h1, .vd #product-search h1, .vd #product-special h1, .vd #product-manufacturer h1 { font-size: 2.2rem; margin: 0.5rem 0 1rem; }
.vd #product-category .col-sm-10 p, .vd .category-description { color: var(--vd-muted); }
.vd #display-control { padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--vd-line); }
.vd #display-control .input-group-text { background: var(--vd-soft); border-color: var(--vd-line); border-radius: 10px 0 0 10px; }
.vd #display-control .input-group > .form-select { border-radius: 0 10px 10px 0; }
.vd #display-control .btn-group .btn { border-radius: 10px; }
.vd .product-list .product-thumb.vd-card { flex-direction: row; }
.vd .product-list .vd-card__media { flex: 0 0 240px; }
.vd #column-left .list-group, .vd #column-right .list-group { border-radius: var(--vd-radius); overflow: hidden; }
.vd #column-left .list-group-item, .vd #column-right .list-group-item { color: var(--vd-ink); }
.vd #column-left .list-group-item.active, .vd #column-right .list-group-item.active { background: var(--vd-accent); border-color: var(--vd-accent); color: var(--vd-accent-ink); }
.vd #product-product h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
.vd #product-product .image img, .vd #product-product .img-thumbnail { border-radius: var(--vd-radius); border-color: var(--vd-line); background: var(--vd-surface); }
.vd #product-product h2 .price-new { font-size: 1.9rem; }
.vd #product-product #input-quantity { max-width: 120px; }
.vd #product-product ul.list-unstyled li h2 { font-family: var(--vd-sans); font-weight: 800; font-size: 1.8rem; color: var(--vd-ink); }
.vd #product-product #button-cart { border-radius: 999px; font-weight: 700; padding: 0.8rem; }
.vd #product-product #input-quantity { border-radius: 999px; text-align: center; }
.vd #product-product .tab-content { background: var(--vd-surface); border: 1px solid var(--vd-line); border-top: 0; border-radius: 0 0 var(--vd-radius) var(--vd-radius); padding: 1.25rem; }
.vd #checkout-cart .table img, .vd #checkout-checkout .table img { border-radius: 8px; }

/* ---------- footer ---------- */
.vd-footer { background: var(--vd-ink); color: rgba(255, 255, 255, 0.78); padding: 3.5rem 0 0; margin-top: 3rem; font-size: 0.9rem; border: 0; }
.vd-footer h5 { color: #fff; font-family: var(--vd-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.vd-footer a { color: rgba(255, 255, 255, 0.78); }
.vd-footer a:hover { color: #fff; }
.vd-footer li { padding: 0.18rem 0; }
.vd-footer__brand { font-family: var(--vd-serif); font-size: 1.6rem; color: #fff; font-weight: 700; margin-bottom: 0.6rem; }
.vd-footer__about { max-width: 360px; }
.vd-footer__trust li { display: flex; gap: 0.5rem; align-items: center; }
.vd-footer__trust i { color: #9cc58f; }
.vd-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2.5rem; padding: 1.1rem 0; font-size: 0.8rem; }
.vd-footer__bottom p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .vd-header__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo actions" "search search"; gap: 0.75rem; }
  .vd-logo { min-width: 0; }
  .vd-logo { grid-area: logo; }
  .vd-actions { grid-area: actions; justify-self: end; }
  .vd-search { grid-area: search; max-width: none; }
  .vd-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-trust__list { grid-template-columns: 1fr; justify-items: start; }
  .vd-trust__list li { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
  .vd-hero--image { background: linear-gradient(rgba(20, 28, 20, 0.62), rgba(20, 28, 20, 0.62)), var(--vd-hero) center / cover no-repeat; }
}
@media (max-width: 575.98px) {
  .vd .row-cols-1:has(> .col > .vd-card) > * { flex: 0 0 auto; width: 50%; }
  .vd .row-cols-1:has(> .col > .vd-card) { --bs-gutter-x: 0.75rem; }
  .vd .vd-card__body { padding: 0.7rem; }
  .vd .vd-card__desc { display: none; }
  .vd .vd-card__title { font-size: 0.9rem; }
  .vd .product-thumb .button-group.vd-card__actions .vd-card__add span { display: none; }
  .vd .product-thumb .button-group.vd-card__actions button { padding: 0.55rem 0.4rem; }
  .vd .vd-card__icon { width: 34px !important; }
  .vd-cart .dropdown-menu { min-width: 0; width: calc(100vw - 2rem); }
  .vd .product-list .product-thumb.vd-card { flex-direction: column; }
  .vd .product-list .vd-card__media { flex: none; }
  .vd-hero__title { font-size: 2.1rem; }
  .vd .vd-wordmark { display: block; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vd-cart .btn-inverse, .vd-cart > .dropdown > .btn { font-size: 0.8rem; padding: 0.45rem 0.7rem; }
  .vd-actions { gap: 0; }
  .vd .vd-action { padding: 0.45rem 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vd *, .vd *::before, .vd *::after { transition: none !important; }
}
