/* =========================================================
   Typography — Be Vietnam Pro (storefront)
   Override Bootstrap Open Sans / Raleway
   ========================================================= */
:root {
    --ft-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-primary: #477900;
    --bs-primary-rgb: 71, 121, 0;
}

html {
    scroll-behavior: smooth;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    padding: 10px 14px;
    border-radius: 6px;
    background: #273438;
    color: #fff;
    font-weight: 700;
    transform: translateY(-160%);
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #ffb524 !important;
    outline-offset: 3px;
}

.text-primary { color: #477900 !important; }
.bg-primary { background-color: #477900 !important; }
.border-primary { border-color: #477900 !important; }
.btn-primary {
    border-color: #477900;
    background-color: #477900;
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
    border-color: #315800;
    background-color: #315800;
    color: #fff;
}
.btn-outline-primary {
    border-color: #477900;
    color: #315800;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: #477900;
    background-color: #477900;
    color: #fff;
}

body.nav-drawer-open {
    overflow: hidden;
}

html,
body {
    font-family: var(--ft-font) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
button, input, select, textarea,
.btn, .form-control, .nav-link, .dropdown-item {
    font-family: var(--ft-font) !important;
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

 .back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}
/*** Spinner End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.border-secondary {
    transition: 0.5s;
}

.btn.border-secondary:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

/*** Topbar Start ***/
.fixed-top {
    transition: 0.5s;
    background: var(--bs-white);
    border: 0;
}

.topbar {
    padding: 20px;
    border-radius: 230px 100px;
}

.topbar .top-info {
    font-size: 15px;
    line-height: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link {
    font-size: 15px;
    line-height: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link a {
    letter-spacing: 1px;
}

.topbar .top-link a small:hover {
    color: var(--bs-secondary) !important;
    transition: 0.5s;
}

.topbar .top-link a small:hover i {
    color: var(--bs-primary) !important;
}
/*** Topbar End ***/

/*** Navbar Start ***/
.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 16px;
    transition: .5s;
}

.navbar {
    height: 100px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar-brand-name {
    display: block;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    border-radius: 10px !important;
    transition: .5s;
    opacity: 1;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .8);
}
/*** Navbar End ***/

/*** Hero Header ***/
.hero-header {
    background: linear-gradient(rgba(248, 223, 173, 0.1), rgba(248, 223, 173, 0.1)), url(../img/hero-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-item {
    position: relative;
}

.carousel-item a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    background: linear-gradient(rgba(255, 181, 36, 0.7), rgba(255, 181, 36, 0.7));
}

.carousel-control-next,
.carousel-control-prev {
    width: 48px;
    height: 48px;
    border-radius: 48px;
    border: 1px solid var(--bs-white);
    background: var(--bs-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-next {
    margin-right: 20px;
}

.carousel-control-prev {
    margin-left: 20px;
}

.page-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/cart-page-header-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header,
    .page-header {
        margin-top: 152px !important;
    }
}

@media (max-width: 992px) {
    .hero-header,
    .page-header {
        margin-top: 97px !important;
    }
}
/*** Hero Header end ***/


/*** featurs Start ***/
.featurs .featurs-item .featurs-icon {
    position: relative;
    width: 120px;
    height: 120px;
}

.featurs .featurs-item .featurs-icon::after {
    content: "";
    width: 35px;
    height: 35px;
    background: var(--bs-secondary);
    position: absolute;
    bottom: -10px;
    transform: translate(-50%);
    transform: rotate(45deg);
    background: var(--bs-secondary);
    
}
/*** featurs End ***/


/*** service Start ***/
.service .service-item .service-content {
    position: relative;
    width: 250px; 
    height: 130px; 
    top: -50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
}

/*** service End ***/


/*** Fruits Start ***/
.fruite .tab-class .nav-item a.active {
    background: var(--bs-secondary) !important;
}

.fruite .tab-class .nav-item a.active span {
    color: var(--bs-white) !important; 
}

.fruite .fruite-categorie .fruite-name {
    line-height: 40px;
}

.fruite .fruite-categorie .fruite-name a {
    transition: 0.5s;
}

.fruite .fruite-categorie .fruite-name a:hover {
    color: var(--bs-secondary);
}

.fruite .fruite-item {
    height: 100%;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.fruite .fruite-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 28px rgba(31, 41, 55, 0.1),
        0 28px 48px rgba(129, 196, 8, 0.16);
}

.fruite .fruite-item .fruite-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.fruite .fruite-item .fruite-img img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scale ảnh khi hover cả thẻ (không chỉ khi hover đúng vào img) */
.fruite .fruite-item:hover .fruite-img img {
    transform: scale(1.08);
}
/*** Fruits End ***/


/*** vesitable Start ***/
.vesitable .vesitable-item {
    height: 100%;
    transition: 0.5s;
}

.vesitable .vesitable-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.vesitable .vesitable-item .vesitable-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.vesitable .vesitable-item .vesitable-img img {
    transition: 0.5s;
}

.vesitable .vesitable-item .vesitable-img img:hover {
    transform: scale(1.2);
}

.vesitable .owl-stage {
    margin: 50px 0;
    position: relative;
}

.vesitable .owl-nav .owl-prev {
    position: absolute;
    top: -8px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;

}

.vesitable .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.vesitable .owl-nav .owl-next {
    position: absolute;
    top: -8px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.vesitable .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** vesitable End ***/


/*** Banner Section Start ***/
.banner .banner-btn:hover {
    background: var(--bs-primary);
}
/*** Banner Section End ***/


/*** Facts Start ***/
.counter {
    height: 100%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.counter i {
    font-size: 60px;
    margin-bottom: 25px;
}

.counter h4 {
    color: var(--bs-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.counter h1 {
    margin-bottom: 0;
}
/*** Facts End ***/


/*** testimonial Start ***/
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** testimonial End ***/


/*** Single Page Start ***/
.pagination {
    display: inline-block;
}
  
.pagination a {
    color: var(--bs-dark);
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid var(--bs-secondary);
    margin: 0 4px;
}
  
.pagination a.active {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    border: 1px solid var(--bs-secondary);
}
  
.pagination a:hover:not(.active) {background-color: var(--bs-primary)}

.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--bs-secondary) !important;
}
/*** Single Page End ***/


/*** Footer Start ***/
.footer .footer-item .btn-link {
    line-height: 35px;
    color: rgba(255, 255, 255, .5);
    transition: 0.5s;
}

.footer .footer-item .btn-link:hover {
    color: var(--bs-secondary) !important;
}

.footer .footer-item p.mb-4 {
    line-height: 35px;
}
/*** Footer End ***/


/* === RESPONSIVE OFFCANVAS FOR OLD BOOTSTRAP === */
@media (min-width: 992px) {
  .offcanvas-lg {
    position: static !important;
    z-index: auto;
    flex-grow: 1;
    width: auto !important;
    height: auto !important;
    visibility: visible !important;
    background-color: transparent !important;
    border: 0 !important;
    transform: none !important;
    transition: none;
    display: flex !important;
    flex-direction: column !important;
  }
  .offcanvas-lg .offcanvas-header {
    display: none;
  }
  .offcanvas-lg .offcanvas-body {
    display: flex;
    flex-grow: 0;
    padding: 0;
    overflow-y: visible;
  }
}

/* === RESPONSIVE NAVBAR COLLAPSE AS OFFCANVAS ON MOBILE === */
.navbar-drawer-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .navbar {
    height: 76px;
    flex-wrap: nowrap;
  }

  .navbar-brand {
    margin-right: auto;
  }

  .navbar-brand-name {
    font-size: 1.65rem;
  }

  .navbar .order-lg-last {
    flex: 0 0 auto;
  }

  .navbar .order-lg-last > * {
    margin-right: .35rem !important;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 80%;
    background-color: #fff !important;
    z-index: 1045;
    padding: 1.5rem 1rem;
    box-shadow: 0.5rem 0 1rem rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    display: block;
  }
  .navbar-collapse.show {
    transform: translateX(0);
  }
  .navbar-collapse.collapsing {
    height: auto !important;
    transition: transform 0.3s ease-in-out;
  }

  .navbar-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    border: 0;
    background: rgba(15, 23, 42, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .navbar-drawer-backdrop.is-visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 390px) {
  .navbar-brand-name {
    font-size: 1.45rem;
  }

  .navbar .order-lg-last > * {
    min-width: 40px !important;
    width: 40px;
    min-height: 40px !important;
    height: 40px;
    margin-right: .2rem !important;
  }

  .navbar .order-lg-last .navbar-toggler {
    width: 44px;
  }
}

/* Polyfill for Bootstrap 5.0.0 offcanvas-lg */
@media (min-width: 992px) {
    .offcanvas-lg {
        position: static;
        z-index: auto;
        flex-grow: 1;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        background-color: transparent !important;
        border: 0 !important;
        transform: none !important;
        transition: none;
    }
    .offcanvas-lg .offcanvas-header {
        display: none;
    }
}

/* Product Detail Redesign */
:root {
  --pd-primary: #6BA300;
  --pd-primary-dark: #5A8A00;
  --pd-primary-soft: #F1F8E8;
  --pd-sale: #D9381E;
  --pd-sale-soft: #FEF2F0;
  --pd-text: #1F241B;
  --pd-text-muted: #5F6B55;
  --pd-text-light: #8A9680;
  --pd-surface: #FFFFFF;
  --pd-surface-warm: #FDFCF8;
  --pd-surface-muted: #F4F6F1;
  --pd-border: #E8EBE3;
}

.product-detail-wrap {
  background: var(--pd-surface-warm, #FDFCF8);
  padding: 170px 0 60px;
}

@media (max-width: 1366px) {
  .product-detail-wrap {
    padding: 160px 0 60px;
  }
}

@media (max-width: 991px) {
  .product-detail-wrap {
    padding: 115px 0 60px;
  }
}

/* Breadcrumb */
.pd-breadcrumb {
  padding: 18px 0;
  font-size: 0.875rem;
  color: var(--pd-text-light, #8A9680);
}
.pd-breadcrumb a {
  color: var(--pd-text-muted, #5F6B55);
  transition: color .2s ease;
}
.pd-breadcrumb a:hover { color: var(--pd-primary, #6BA300); }
.pd-breadcrumb .sep { margin: 0 10px; color: var(--pd-border, #E8EBE3); }

/* Gallery */
.pd-gallery-main {
  position: relative;
  background: var(--pd-surface, #fff);
  border-radius: 24px;
  border: 1px solid var(--pd-border, #E8EBE3);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-gallery-main img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform .4s ease;
}
.pd-gallery-main:hover img { transform: scale(1.04); }

.pd-sale-ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--pd-sale, #D9381E);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(217, 56, 30, 0.25);
  z-index: 2;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.pd-thumb,
button.pd-thumb {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  border: 2px solid var(--pd-border, #E8EBE3);
  background: var(--pd-surface, #fff);
  cursor: pointer;
  overflow: hidden;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pd-thumb img { width: 80%; height: 80%; object-fit: contain; }
.pd-thumb:hover,
.pd-thumb.active,
button.pd-thumb:hover,
button.pd-thumb.active {
  border-color: var(--pd-primary, #6BA300);
  box-shadow: 0 0 0 3px var(--pd-primary-soft, #F1F8E8);
}

/* Product info */
.pd-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.875rem;
}
.pd-category-badge {
  background: var(--pd-primary-soft, #F1F8E8);
  color: var(--pd-primary-dark, #5A8A00);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.pd-rating-mini { display: inline-flex; align-items: center; gap: 6px; color: var(--pd-text-muted, #5F6B55); }
.pd-rating-mini .stars { color: #F5A623; }

.pd-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--pd-text, #1F241B);
}

.pd-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--pd-text-muted, #5F6B55);
}
.pd-trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.pd-trust-row i { color: var(--pd-primary, #6BA300); font-size: 1rem; }

.pd-price-block {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 22px;
}
.pd-price-main {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.pd-sale-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pd-sale, #D9381E);
  letter-spacing: -0.02em;
}
.pd-original-price {
  font-size: 1.125rem;
  color: var(--pd-text-light, #8A9680);
  text-decoration: line-through;
}
.pd-discount-pill {
  background: var(--pd-sale-soft, #FEF2F0);
  color: var(--pd-sale, #D9381E);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.pd-unit-note {
  font-size: 0.9rem;
  color: var(--pd-text-muted, #5F6B55);
  margin-top: 4px;
}

.pd-short-desc {
  color: var(--pd-text-muted, #5F6B55);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 22px;
}

.pd-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.pd-spec-item {
  background: var(--pd-surface-muted, #F4F6F1);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.pd-spec-item .label { color: var(--pd-text-light, #8A9680); display: block; margin-bottom: 2px; }
.pd-spec-item .value { color: var(--pd-text, #1F241B); font-weight: 600; }

/* Actions */
.pd-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.pd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pd-border, #E8EBE3);
  border-radius: 999px;
  background: var(--pd-surface, #fff);
  overflow: hidden;
}
.pd-qty button {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--pd-text, #1F241B);
  font-size: 0.85rem;
  transition: background .2s ease;
}
.pd-qty button:hover { background: var(--pd-surface-muted, #F4F6F1); }
.pd-qty button:active { transform: scale(0.95); }
.pd-qty input {
  width: 46px;
  border: none;
  text-align: center;
  font-weight: 700;
  color: var(--pd-text, #1F241B);
  background: transparent;
}

.pd-btn-buy {
  flex: 1 1 140px;
  background: var(--pd-sale, #D9381E);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all .2s ease;
  box-shadow: 0 6px 18px rgba(217, 56, 30, 0.22);
}
.pd-btn-buy:hover { background: #C22F18; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217, 56, 30, 0.28); }
.pd-btn-buy:active { transform: translateY(0) scale(0.98); }

.pd-btn-cart {
  flex: 1 1 140px;
  background: var(--pd-surface, #fff);
  color: var(--pd-primary, #6BA300);
  border: 2px solid var(--pd-primary, #6BA300);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all .2s ease;
}
.pd-btn-cart:hover { background: var(--pd-primary, #6BA300); color: #fff; }
.pd-btn-cart:active { transform: scale(0.98); }

@media (max-width: 575px) {
  .pd-btn-buy,
  .pd-btn-cart {
    padding: 10px 16px;
    font-size: 0.85rem;
    flex: 1 1 120px;
  }
  .pd-btn-wishlist {
    width: 44px;
    height: 44px;
  }
}

.pd-btn-wishlist {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--pd-border, #E8EBE3);
  background: var(--pd-surface, #fff);
  color: var(--pd-text-muted, #5F6B55);
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-btn-wishlist:hover { border-color: var(--pd-sale, #D9381E); color: var(--pd-sale, #D9381E); }

.pd-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pd-primary-dark, #5A8A00);
  background: var(--pd-primary-soft, #F1F8E8);
  padding: 8px 14px;
  border-radius: 999px;
}
.pd-stock.out {
  color: var(--pd-sale, #D9381E);
  background: var(--pd-sale-soft, #FEF2F0);
}

/* Tabs */
.pd-tabs { margin-top: 64px; }
.pd-nav-tabs {
  border-bottom: 2px solid var(--pd-border, #E8EBE3);
  gap: 8px;
}
.pd-nav-tabs .nav-link {
  border: none;
  background: transparent;
  color: var(--pd-text-muted, #5F6B55);
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s ease;
}
.pd-nav-tabs .nav-link.active {
  color: var(--pd-primary-dark, #5A8A00);
  border-bottom-color: var(--pd-primary, #6BA300);
}
.pd-tab-content { padding: 32px 0; }
.pd-description {
  max-width: 760px;
  color: var(--pd-text-muted, #5F6B55);
  font-size: 1rem;
  line-height: 1.8;
}

/* Review summary */
.pd-review-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  background: var(--pd-surface, #fff);
  border: 1px solid var(--pd-border, #E8EBE3);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
}
.pd-review-average { text-align: center; border-right: 1px solid var(--pd-border, #E8EBE3); }
.pd-review-average .big {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--pd-text, #1F241B);
}
.pd-review-average .stars { color: #F5A623; font-size: 1.1rem; margin: 8px 0; }
.pd-review-bars .bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.875rem;
}
.pd-review-bars .bar span { width: 60px; color: var(--pd-text-muted, #5F6B55); }
.pd-review-bars .progress-line {
  flex: 1;
  height: 8px;
  background: var(--pd-surface-muted, #F4F6F1);
  border-radius: 999px;
  overflow: hidden;
}
.pd-review-bars .progress-fill {
  height: 100%;
  background: #F5A623;
  border-radius: 999px;
}

/* Related products */
.pd-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pd-section-title a { font-size: 0.9rem; font-weight: 600; color: var(--pd-primary, #6BA300); }

.pd-related-card {
  background: var(--pd-surface, #fff);
  border: 1px solid var(--pd-border, #E8EBE3);
  border-radius: 16px;
  overflow: hidden;
  transition: all .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pd-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(31, 36, 27, 0.12);
  border-color: transparent;
}
.pd-related-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--pd-surface-warm, #FDFCF8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-related-img img { width: 78%; height: 78%; object-fit: contain; transition: transform .35s ease; }
.pd-related-card:hover .pd-related-img img { transform: scale(1.05); }
.pd-related-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pd-sale, #D9381E);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.pd-related-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.pd-related-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.pd-related-desc {
  font-size: 0.875rem;
  color: var(--pd-text-muted, #5F6B55);
  margin-bottom: 14px;
  line-height: 1.5;
  flex: 1;
}
.pd-related-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pd-related-price { font-weight: 800; color: var(--pd-sale, #D9381E); font-size: 1.05rem; }
.pd-related-price .unit { color: var(--pd-text-light, #8A9680); font-size: 0.8rem; font-weight: 500; }
.pd-related-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--pd-border, #E8EBE3);
  background: var(--pd-surface, #fff);
  color: var(--pd-primary, #6BA300);
  transition: all .2s ease;
}
.pd-related-add:hover { background: var(--pd-primary, #6BA300); color: #fff; border-color: var(--pd-primary, #6BA300); }

.pd-thumb:focus-visible,
.pd-qty button:focus-visible,
.pd-btn-buy:focus-visible,
.pd-btn-cart:focus-visible,
.pd-btn-wishlist:focus-visible,
.pd-related-add:focus-visible {
  outline: 3px solid var(--pd-primary);
  outline-offset: 2px;
}

/* Mobile sticky CTA */
.pd-mobile-cta {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pd-surface, #fff);
  border-top: 1px solid var(--pd-border, #E8EBE3);
  padding: 12px 16px;
  gap: 12px;
  z-index: 1030;
  box-shadow: 0 -4px 20px rgba(31, 36, 27, 0.06);
}

@media (max-width: 991px) {
  .pd-desktop-cta { display: none !important; }
  .pd-mobile-cta { display: flex !important; }
  .product-detail-wrap { padding-bottom: 80px; }
}

@media (max-width: 767px) {
  .pd-spec-grid { grid-template-columns: 1fr; }
  .pd-gallery-thumbs { gap: 8px; }
  .pd-thumb { width: 60px; height: 60px; }
  .pd-tabs { margin-top: 40px; }
  .pd-review-summary { grid-template-columns: 1fr; gap: 24px; }
  .pd-review-average { border-right: none; border-bottom: 1px solid var(--pd-border); padding-bottom: 20px; }
}
