:root {
    --primary-green: #1b5e20;
    --light-green: #2e7d32;
    --accent-orange: #ff8c00;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --border-light: #e8e8e8;
    --bg-light: #fafafa;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
    padding-bottom: 60px;
}

/* ==================== SITE TOP (TOP BAR + HEADER) ==================== */
.site-top {
    position: relative;
    z-index: 1030;
    background: var(--text-light);
}

@media (max-width: 991.98px) {
    .site-top {
        position: sticky;
        top: 0;
        box-shadow: var(--shadow-sm);
    }
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background: var(--primary-green);
    color: var(--text-light);
    font-size: 0.8rem;
    padding-top: var(--safe-top);
}

.site-top .top-bar-container.container-lg,
.site-top .navbar-container.container-lg {
    --site-header-gutter: 1rem;
    padding-left: max(var(--site-header-gutter), var(--safe-left));
    padding-right: max(var(--site-header-gutter), var(--safe-right));
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .site-top .top-bar-container.container-lg,
    .site-top .navbar-container.container-lg {
        --site-header-gutter: 1.25rem;
    }
}

.top-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.top-bar-label {
    font-weight: 500;
    opacity: 0.9;
    margin-right: 2px;
}

.top-bar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-bar-social-link:hover {
    color: var(--text-light);
    background: var(--accent-orange);
    transform: translateY(-1px);
}

.top-bar-track {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
    transition: color 0.2s ease;
}

@media (max-width: 575.98px) {
    .top-bar-track-text {
        display: none;
    }

    .top-bar-social-link {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .top-bar-container {
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

.top-bar-track:hover {
    color: var(--accent-orange);
}

.top-bar-track i {
    font-size: 0.9rem;
}

/* ==================== STICKY HEADER (DESKTOP) ==================== */
.frontend-header {
    background: var(--text-light);
}

@media (min-width: 992px) {
    .frontend-header {
        position: sticky;
        top: 0;
        z-index: 1020;
        box-shadow: var(--shadow-md);
    }
}

/* ==================== NAVBAR ==================== */
.navbar-top {
    background: var(--text-light);
    border-bottom: 1px solid var(--border-light);
    padding: 0.5rem 0;
}

@media (max-width: 991.98px) {
    .navbar-top {
        position: relative;
        z-index: auto;
        box-shadow: none;
    }
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 64px;
}

.navbar-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    align-self: center;
    text-decoration: none;
    margin: 0;
    padding: 0.25rem 0;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.92;
}

.navbar-brand:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 3px;
    border-radius: 4px;
}

.navbar-brand__logo {
    display: block;
    width: auto;
    height: 44px;
    max-width: min(168px, 46vw);
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 576px) {
    .navbar-brand__logo {
        height: 48px;
        max-width: 190px;
    }
}

@media (min-width: 992px) {
    .navbar-brand__logo {
        height: 52px;
        max-width: 210px;
    }
}

.navbar-brand i {
    color: var(--accent-orange);
    font-size: 1.5rem;
}

.navbar-menu-desktop {
    display: none;
    align-items: center;
    gap: 1.35rem;
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    min-width: 0;
}

@media (min-width: 992px) {
    .navbar-container {
        gap: 1.5rem;
    }

    .navbar-menu-desktop {
        margin-left: 0.25rem;
    }
}

@media (min-width: 992px) {
    .navbar-menu-desktop {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    .nav-item-mega .mega-menu-panel {
        display: none !important;
    }
}

/* ==================== CATEGORIES MEGA MENU ==================== */
.nav-item-mega {
    position: static;
}

.nav-item-mega .nav-mega-toggle {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
    outline: none;
    box-shadow: none;
}

.nav-item-mega .nav-mega-toggle::after,
.nav-item-mega .nav-mega-toggle.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.nav-item-mega .nav-mega-toggle:hover,
.nav-item-mega .nav-mega-toggle:focus,
.nav-item-mega .nav-mega-toggle:focus-visible,
.nav-item-mega .nav-mega-toggle:active {
    outline: none !important;
    border: none !important;
    background: none !important;
    box-shadow: inset 0 -2px 0 var(--accent-orange) !important;
}

.nav-item-mega .nav-mega-caret {
    display: none;
    font-size: 0.7rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

@media (min-width: 992px) {
    .nav-item-mega .nav-mega-caret {
        display: inline-block;
    }

    .nav-item-mega.show .nav-mega-caret {
        transform: rotate(180deg);
    }
}

.nav-item-mega.show .nav-mega-toggle,
.nav-item-mega:hover .nav-mega-toggle,
.nav-item-mega .nav-mega-toggle:hover,
.nav-item-mega .nav-mega-toggle:focus {
    color: var(--primary-green);
}

.nav-item-mega.show .nav-mega-toggle,
.nav-item-mega:hover .nav-mega-toggle {
    box-shadow: inset 0 -2px 0 var(--accent-orange) !important;
}

@media (min-width: 992px) {
    .nav-item-mega .mega-menu-panel {
        width: 100%;
        left: 0;
        right: 0;
        margin-top: 0;
        border: none;
        border-top: 1px solid var(--border-light);
        border-radius: 0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        padding: 0;
        background: var(--text-light);
    }

    .mega-menu-inner {
        padding: 24px 20px 28px;
    }

    .mega-menu-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 32px;
    }
}

@media (min-width: 1200px) {
    .mega-menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-menu-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(27, 94, 32, 0.12);
    transition: color 0.2s ease;
}

.mega-menu-title i {
    color: var(--accent-orange);
    font-size: 0.9rem;
}

.mega-menu-icon-img {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
}

.mega-menu-empty {
    grid-column: 1 / -1;
    color: #777;
    margin: 0;
    font-size: 0.9rem;
}

/* ==================== STORE POPUP ==================== */
.store-popup .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.store-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    opacity: 1;
}

.store-popup-media img {
    width: 100%;
    display: block;
    max-height: 320px;
    object-fit: cover;
}

.store-popup-video {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.store-popup-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.store-popup-copy {
    padding: 20px;
}

.store-popup-copy h2 {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.store-popup-copy p {
    margin: 0 0 14px;
    color: #666;
    font-size: 0.9rem;
}

.store-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-green);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 4px;
}

.store-popup-btn:hover {
    background: var(--light-green);
    color: #fff;
}

.mega-menu-title:hover {
    color: var(--light-green);
}

.mega-menu-link {
    font-size: 0.88rem;
    color: #555;
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mega-menu-link:hover {
    color: var(--primary-green);
    padding-left: 4px;
}

.nav-link-desktop {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link-desktop:hover {
    color: var(--primary-green);
}

.nav-link-desktop::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-link-desktop:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .navbar-actions {
        gap: 1rem;
    }
}

.search-desktop {
    display: none;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 0.9rem;
    width: 280px;
    transition: all 0.2s ease;
}

@media (min-width: 992px) {
    .search-desktop {
        display: block;
    }
}

.search-desktop:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(27, 94, 32, 0.1);
}

.search-desktop::placeholder {
    color: #aaa;
}

.icon-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 6px 8px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-link:hover {
    color: var(--primary-green);
}

.cart-action__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    font-size: 1.2rem;
    line-height: 1;
}

.cart-action__icon .badge-count {
    position: absolute;
    top: -5px;
    right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--accent-orange);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

.badge-count.is-zero {
    display: none;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

@media (min-width: 992px) {
    .hamburger-btn {
        display: none;
    }
}

.hamburger-btn:hover {
    color: var(--primary-green);
}

/* ==================== CATEGORIES MODAL ==================== */
body.categories-menu-open {
    overflow: hidden;
}

.categories-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.categories-modal.show {
    display: block;
}

.categories-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(88vw, 320px);
    max-width: 400px;
    height: 100%;
    height: 100dvh;
    background: white;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    animation: slideIn 0.3s ease;
    z-index: 2001;
    padding-top: var(--safe-top);
    padding-left: var(--safe-left);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991.98px) {
    body.categories-menu-open .site-top {
        z-index: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 16px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--text-light);
    z-index: 2;
}

.modal-header-custom h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
}

.modal-tab {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.modal-tab.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.modal-content {
    padding: 20px;
}

.modal-nav-item {
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-nav-item:hover {
    background: var(--bg-light);
    padding-left: 8px;
}

.modal-nav-item-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.modal-nav-item-text i {
    color: var(--accent-orange);
    font-size: 0.9rem;
}

.modal-nav-item-text span {
    font-weight: 500;
    color: var(--text-dark);
}

.modal-nav-item i:last-child {
    color: #ccc;
    font-size: 0.8rem;
}

.category-submenu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
}

.category-submenu.show {
    display: block;
}

.submenu-item {
    padding: 10px 0;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    color: var(--primary-green);
    padding-left: 8px;
}

/* ==================== PAGE MAIN ==================== */
.page-main {
    flex: 1;
    width: 100%;
}

.page-main--home {
    background: #fff;
}

/* ==================== HOME TRUST BAR ==================== */
.home-trust-bar {
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(27, 94, 32, 0.15);
}

.home-trust-bar__row {
    align-items: stretch;
}

.home-trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
    padding: 0.35rem 0.25rem;
}

@media (min-width: 768px) {
    .home-trust-item {
        justify-content: center;
        text-align: left;
        padding: 0.5rem 0.75rem;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .home-trust-bar__row > [class*="col-"]:last-child .home-trust-item {
        border-right: none;
    }
}

.home-trust-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    color: var(--accent-orange);
}

.home-trust-item__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.home-trust-item__text strong {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.home-trust-item__text span {
    font-size: 0.68rem;
    opacity: 0.88;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .home-trust-item__text strong {
        font-size: 0.88rem;
    }

    .home-trust-item__text span {
        font-size: 0.72rem;
    }
}

/* ==================== CATEGORY AVATAR (INITIALS / LOGO) ==================== */
.category-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: hsl(var(--avatar-hue, 145) 42% 42%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    user-select: none;
}

.category-avatar--sm {
    width: 22px;
    height: 22px;
    font-size: 0.55rem;
}

.category-avatar--md {
    width: 44px;
    height: 44px;
    font-size: 0.8rem;
}

.category-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 0.95rem;
}

.category-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #fff;
}

.category-avatar-initials {
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.category-avatar-initials--all {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-green);
}

.mega-menu-avatar.category-avatar--sm {
    margin-right: 6px;
    vertical-align: middle;
}

/* ==================== HERO CAROUSEL (BACKEND) ==================== */
.hero-carousel-section {
    background: #fff;
    padding: 1rem 0 0.75rem;
    overflow-x: clip;
}

.hero-carousel {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #eef4ef;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel-slide {
    height: clamp(220px, 34vw, 420px);
}

.hero-carousel-slide {
    position: relative;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    overflow: hidden;
}

.hero-carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-carousel-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: clamp(18px, 4vw, 48px);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-carousel-copy {
    max-width: 560px;
    color: #fff;
}

.hero-carousel-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}

.hero-carousel-title span {
    display: block;
    color: var(--accent-orange);
}

.hero-carousel-subtitle {
    margin: 0 0 16px;
    font-size: 0.95rem;
    opacity: 0.92;
}

.hero-carousel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-orange);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.hero-carousel-btn:hover {
    background: #e67e00;
    color: #fff;
}

.hero-carousel-control {
    width: 54px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.55);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--accent-orange);
    width: 24px;
    border-radius: 999px;
}

@media (max-width: 767.98px) {
    .hero-carousel-section {
        padding-top: 0.75rem;
    }

    .hero-carousel {
        border-radius: 8px;
    }

    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-carousel-slide {
        height: clamp(190px, 58vw, 290px);
    }

    .hero-carousel-overlay {
        padding: 18px;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 100%);
    }

    .hero-carousel-copy {
        max-width: 86%;
    }

    .hero-carousel-subtitle {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-carousel-control {
        width: 42px;
    }
}

/* ==================== HERO CAROUSEL (FALLBACK) ==================== */
.hero-section {
    position: relative;
    height: clamp(280px, 42vw, 440px);
    width: 100%;
    overflow: hidden;
    background: #000;
    margin: 0;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(120px, 22vw, 280px);
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.88) 0%, rgba(46, 125, 50, 0.88) 100%);
    line-height: 1;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-orange);
    width: 24px;
    border-radius: 4px;
}

/* ==================== CATEGORY SECTION ==================== */
.category-section {
    padding: 1.5rem 0 1.75rem;
    background: linear-gradient(180deg, #f8faf9 0%, #fff 100%);
    border-bottom: 1px solid var(--border-light);
}

.section-head--compact {
    margin-bottom: 0.85rem;
}

.section-title--sm {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-dark);
}

.section-subtitle--xs {
    font-size: 0.75rem;
    color: #8b949e;
    margin-top: 0.15rem;
}

.categorySwiper {
    margin: 0;
    padding: 2px 0;
    overflow: hidden;
}

.categorySwiper .swiper-slide {
    height: auto;
    width: auto;
}

a.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 0.625rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

a.category-card--view-all {
    border-color: rgba(27, 94, 32, 0.28);
    background: linear-gradient(180deg, #fff 0%, rgba(27, 94, 32, 0.07) 100%);
}

.category-card .category-card-media.category-avatar {
    margin: 0 auto 0.4rem;
}

.category-card-media--view-all {
    background: rgba(27, 94, 32, 0.1) !important;
    width: 44px;
    height: 44px;
    margin: 0 auto 0.4rem;
}

.category-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 0.15rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    display: block;
    font-size: 0.68rem;
    color: #9ca3af;
    line-height: 1.2;
}

.category-card--view-all .category-name {
    color: var(--primary-green);
}

/* ==================== PRODUCTS SECTION ==================== */
.products-section {
    padding: 2.5rem 0;
    background: #fff;
}

.products-section--on_sale {
    background: #f9fafb;
}

.products-section + .products-section {
    padding-top: 2.5rem;
}

.page-main--home .products-section:first-of-type {
    padding-top: 2.25rem;
}

/* Product section header (home) */
.product-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-section-head__main {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.product-section-head__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: rgba(27, 94, 32, 0.08);
    color: var(--primary-green);
    font-size: 1rem;
}

.products-section--on_sale .product-section-head__icon {
    background: rgba(255, 140, 0, 0.12);
    color: var(--accent-orange);
}

.products-section--top_seller .product-section-head__icon {
    background: rgba(27, 94, 32, 0.1);
    color: var(--light-green);
}

.product-section-head__text {
    min-width: 0;
}

.product-section-head__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.product-section-head__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: #6b7280;
}

.product-section-head__more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-green);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(27, 94, 32, 0.2);
    border-radius: 2rem;
    background: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.product-section-head__more:hover {
    color: #fff;
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.product-section-head__more i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.product-section-head__more:hover i {
    transform: translateX(2px);
}

@media (max-width: 575.98px) {
    .product-section-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .product-section-head__more {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }

    .product-section-head__title {
        font-size: 1.125rem;
    }
}

/* Generic section head (categories, etc.) */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.section-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    white-space: nowrap;
}

.section-view-all:hover {
    color: var(--accent-orange);
}

.filter-group {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    padding: 7px 16px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.product-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #777;
    padding: 32px 16px;
}

a.btn-load-more {
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.products-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

@media (min-width: 576px) {
    .products-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .products-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.product-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 140px;
    background: var(--bg-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease, filter 0.35s ease, opacity 0.35s ease;
}

.product-image--progressive:not(.is-sharp) {
    filter: blur(6px);
    transform: scale(1.03);
}

.product-image--progressive.is-sharp {
    filter: none;
    transform: none;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-orange);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    z-index: 5;
}

.product-badge.sale {
    background: #d32f2f;
}

.product-details {
    padding: 8px 10px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-category {
    font-size: 0.65rem;
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin: 0;
    line-height: 1.2;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
    text-decoration: none;
}

.product-name a:hover {
    color: var(--primary-green);
}

.product-desc {
    font-size: 0.72rem;
    color: #777;
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.product-price-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 6px;
    margin-top: auto;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.product-price-old {
    font-size: 0.8rem;
    color: #aaa;
    text-decoration: line-through;
}

.product-discount {
    font-size: 0.7rem;
    color: #d32f2f;
    font-weight: 600;
}

.product-actions {
    display: block;
}

.btn-add-cart {
    width: 100%;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: var(--light-green);
}

.btn-add-cart.is-added {
    background: var(--accent-orange);
}

/* ==================== LOAD MORE ==================== */
.load-more-section {
    text-align: center;
}

.btn-load-more {
    padding: 10px 40px;
    background: white;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-load-more:hover {
    background: var(--primary-green);
    color: white;
}

/* ==================== VARIATION MODAL & CART ==================== */
.variation-modal .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.variation-modal-product {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.variation-modal-product img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-light);
    flex-shrink: 0;
}

.variation-modal-product h3 {
    font-size: 0.95rem;
    margin: 0 0 4px;
    line-height: 1.3;
}

.variation-modal-desc {
    font-size: 0.78rem;
    color: #777;
    line-height: 1.35;
    max-height: 3.2em;
    overflow: hidden;
}

.variation-modal-desc p {
    margin: 0;
}

.variation-modal-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0 0 8px;
}

.variation-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.variation-choice {
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 6px;
    padding: 8px 10px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s ease;
    cursor: pointer;
}

.variation-choice small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #777;
    margin-top: 2px;
}

.variation-choice:hover,
.variation-choice.is-selected {
    border-color: var(--primary-green);
    background: rgba(27, 94, 32, 0.06);
    color: var(--primary-green);
}

.variation-extra {
    font-size: 0.75rem;
    color: #666;
    min-height: 1rem;
    margin-bottom: 8px;
}

.variation-modal-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.variation-modal-price del {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.cart-drawer {
    width: min(100%, 380px);
}

.cart-drawer-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-empty {
    text-align: center;
    color: #777;
    padding: 28px 12px;
}

.cart-empty i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.cart-empty p {
    margin: 6px 0 0;
    font-size: 0.85rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: start;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.cart-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-light);
}

.cart-item h4 {
    font-size: 0.82rem;
    margin: 0 0 4px;
    line-height: 1.3;
}

.cart-item-meta {
    font-size: 0.72rem;
    color: #777;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.qty-control button {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.cart-remove {
    border: none;
    background: none;
    color: #c62828;
    cursor: pointer;
    padding: 4px;
}

.cart-summary {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.checkout-btn {
    width: 100%;
    border: none;
    border-radius: 6px;
    background: var(--primary-green);
    color: #fff;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.checkout-btn:hover {
    background: var(--light-green);
    color: #fff;
}

/* ==================== FLOATING ACTIONS ==================== */
.floating-actions {
    position: fixed;
    right: max(14px, var(--safe-right));
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    z-index: 1015;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none;
    font-size: 1.25rem;
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    color: var(--text-light);
}

.floating-btn--whatsapp {
    background: #25d366;
}

.floating-btn--whatsapp:hover {
    background: #1ebe57;
}

.floating-btn--top {
    background: var(--primary-green);
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.92);
}

.floating-btn--top.is-visible {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

@media (min-width: 992px) {
    .floating-actions {
        bottom: max(24px, env(safe-area-inset-bottom, 0px));
    }
}

/* ==================== MOBILE BOTTOM NAV ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}

.nav-item-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    gap: 4px;
    text-decoration: none;
    color: #999;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.75rem;
}

.nav-item-bottom:hover {
    color: var(--primary-green);
}

.nav-item-bottom i {
    font-size: 1.3rem;
}

.nav-item-bottom.active {
    color: var(--primary-green);
}

.nav-item-bottom--cart .cart-action__icon {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.nav-item-bottom--cart .cart-action__icon .badge-count {
    top: -6px;
    right: -10px;
    min-width: 15px;
    height: 15px;
    font-size: 0.58rem;
    border-width: 1.5px;
}

/* ==================== SEARCH MOBILE ==================== */
.search-mobile {
    display: grid;
    grid-template-columns: 1fr 45px;
    gap: 8px;
    padding: 10px;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 992px) {
    .search-mobile {
        display: none;
    }
}

.search-mobile input {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.search-mobile button {
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-green);
    color: white;
    padding: 2.5rem 0 1rem;
    margin-top: 50px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.footer__container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    margin-bottom: 30px;
    align-items: start;
}

@media (max-width: 1199.98px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    max-width: 280px;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.footer-brand__link {
    display: block;
    width: 200px;
    max-width: 100%;
    height: 48px;
    margin: 0 0 1rem;
    padding: 0;
    line-height: 0;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-brand__link:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.footer-brand__link:focus-visible {
    outline: 2px solid #ffb84d;
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-brand__logo,
.footer-brand img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: 48px;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
}

.footer-section--map {
    min-width: 0;
}

.footer-section {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.footer-brand h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffb84d;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    opacity: 0.9;
    margin: 0 0 1rem;
    max-width: 26rem;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: rgba(255, 140, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb84d;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.social-icon:hover {
    background: var(--accent-orange);
    color: white;
}

.footer-section h5 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: #ffb84d;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 3px;
}

.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.footer-contact i {
    color: #ffb84d;
    min-width: 16px;
    margin-top: 2px;
}

.footer-map {
    border-radius: 6px;
    overflow: hidden;
    height: 140px;
    max-width: 100%;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 25px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.85;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .hero-section {
        height: 380px;
    }

    .hero-slide-bg {
        font-size: 200px;
    }

    .category-section {
        padding: 25px 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .hero-section {
        height: 320px;
    }

    .hero-slide-bg {
        font-size: 150px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-brand__link {
        width: 180px;
        height: 44px;
    }

    .footer-brand__logo,
    .footer-brand img {
        width: 180px;
        height: 44px;
        max-height: 44px;
    }
}

@media (max-width: 575.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-brand__link {
        width: 168px;
        height: 40px;
    }

    .footer-brand__logo,
    .footer-brand img {
        width: 168px;
        height: 40px;
        max-height: 40px;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 75px;
    }

    .products-container .product-details {
        padding: 0.625rem 0.75rem 0.75rem;
    }

    .hero-section {
        height: 280px;
    }

    .hero-slide-bg {
        font-size: 120px;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-section-head__title {
        font-size: 1.0625rem;
    }
}

/* ==================== SHOP PAGE ==================== */
.shop-page {
    background: #fff;
}

.shop-page-hero {
    padding: 1.25rem 0 1rem;
    background: linear-gradient(180deg, #f4f7f5 0%, #fff 100%);
    border-bottom: 1px solid var(--border-light);
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.65rem;
}

.shop-breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
}

.shop-breadcrumb a:hover {
    text-decoration: underline;
}

.shop-breadcrumb i {
    font-size: 0.55rem;
    opacity: 0.6;
}

.shop-page-hero__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.shop-page-title {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

.shop-page-meta {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.shop-page-body {
    padding: 1.5rem 0 2.5rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 1rem;
}

.shop-sidebar__inner {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 0.875rem 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.shop-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.shop-sidebar__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.shop-sidebar__close {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #666;
    padding: 0.25rem;
}

.shop-filter-form .shop-filter-block + .shop-filter-block {
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: none;
}

.shop-filter-block + .shop-filter-block {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #f0f0f0;
}

.shop-filter-heading {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.shop-filter-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.shop-filter-search {
    display: flex;
    gap: 0.35rem;
}

.shop-filter-search .form-control {
    border-radius: 0.5rem;
}

.shop-filter-search-btn {
    flex-shrink: 0;
    width: 2.25rem;
    border: 1px solid var(--primary-green);
    background: var(--primary-green);
    color: #fff;
    border-radius: 0.5rem;
    cursor: pointer;
}

.shop-filter-list,
.shop-filter-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-filter-list > li + li,
.shop-filter-subcategories > li + li {
    margin-top: 0.125rem;
}

.shop-filter-categories > li + li {
    margin-top: 0.35rem;
}

.shop-filter-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.shop-filter-link:hover {
    background: rgba(27, 94, 32, 0.06);
    color: var(--primary-green);
}

.shop-filter-link.is-active {
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary-green);
    font-weight: 600;
}

.shop-filter-link__icon {
    width: 1rem;
    flex-shrink: 0;
    text-align: center;
    color: var(--accent-orange);
    font-size: 0.7rem;
}

.shop-filter-link__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-filter-count {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
    min-width: 1.35rem;
    padding: 0.15rem 0.4rem;
    border-radius: 1rem;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2;
}

.shop-filter-link.is-active .shop-filter-count {
    background: rgba(27, 94, 32, 0.12);
    color: var(--primary-green);
}

.shop-filter-subcategories {
    list-style: none;
    margin: 0.2rem 0 0 0.5rem;
    padding: 0.15rem 0 0 0.65rem;
    border-left: 2px solid #eef0f2;
}

.shop-filter-link--child {
    min-height: 1.85rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
}

.shop-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-orange);
    text-decoration: none;
}

.shop-filter-clear:hover {
    text-decoration: underline;
}

.shop-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-green);
    background: rgba(27, 94, 32, 0.08);
    border: 1px solid rgba(27, 94, 32, 0.15);
    border-radius: 2rem;
    text-decoration: none;
}

.shop-chip:hover {
    background: rgba(27, 94, 32, 0.14);
    color: var(--primary-green);
}

.shop-chip i {
    font-size: 0.6rem;
    opacity: 0.7;
}

.shop-page-hero__copy {
    min-width: 0;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    padding: 0.65rem 0.75rem;
    background: #f8faf9;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
}

.shop-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
}

.shop-toolbar__sort-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.shop-toolbar__sort .form-select {
    flex: 1;
    min-width: 0;
}

.shop-main {
    min-width: 0;
}

.shop-layout .shop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .shop-layout .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .shop-layout .shop-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .shop-layout .shop-products-grid .product-image-container {
        min-height: 0;
    }

    .shop-layout .shop-products-grid .product-card {
        border-radius: 0.625rem;
    }

    .shop-layout .shop-products-grid .product-details {
        padding: 0.65rem 0.75rem 0.8rem;
    }

    .shop-load-more {
        display: block;
    }
}

.shop-products-grid {
    margin-bottom: 0;
}

.shop-products-grid .product-card {
    height: 100%;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: #6b7280;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 0.75rem;
}

.shop-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #fff;
    color: #d1d5db;
    font-size: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop-empty h2 {
    font-size: 1.2rem;
    margin: 0 0 0.4rem;
    color: var(--text-dark);
}

.shop-empty p {
    margin: 0 0 1.25rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.shop-chip--clear {
    background: transparent;
    border-style: dashed;
    color: #6b7280;
}

.shop-chip--clear:hover {
    background: #f3f4f6;
    color: var(--text-dark);
}

.shop-load-more__hint {
    font-size: 0.8em;
    font-weight: 500;
    opacity: 0.75;
    margin-left: 0.25rem;
}

.shop-load-error {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #b45309;
}

.shop-scroll-sentinel {
    height: 1px;
    width: 100%;
    margin: 0;
    pointer-events: none;
}

.shop-infinite-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.shop-infinite-status__spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(27, 94, 32, 0.2);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: shop-spin 0.7s linear infinite;
}

@keyframes shop-spin {
    to {
        transform: rotate(360deg);
    }
}

.shop-load-more {
    text-align: center;
    margin-top: 1.75rem;
}

.shop-load-more .btn {
    min-width: 12rem;
}

.shop-filter-toggle {
    white-space: nowrap;
}

.shop-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.shop-sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 88vw);
        z-index: 1050;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        padding: 0;
    }

    .shop-sidebar.is-open {
        transform: translateX(0);
    }

    .shop-sidebar__inner {
        height: 100%;
        overflow-y: auto;
        border-radius: 0;
        border-left: none;
        border-top: none;
        border-bottom: none;
    }

    body.shop-filters-open {
        overflow: hidden;
    }

    .shop-page-hero {
        padding: 0.875rem 0 0.75rem;
    }

    .shop-page-hero .container-lg,
    .shop-page-body.container-lg {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .shop-page-hero__row {
        align-items: center;
        gap: 0.75rem;
    }

    .shop-page-title {
        font-size: 1.25rem;
    }

    .shop-page-meta {
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }

    .shop-filter-toggle {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }

    .shop-page-body {
        padding: 0.875rem 0 1.25rem;
    }

    .shop-main {
        min-width: 0;
        width: 100%;
    }

    .shop-layout .shop-products-grid {
        gap: 0.5rem;
        width: 100%;
    }

    .shop-products-grid .product-card {
        border: 1px solid var(--border-light);
        border-radius: 0.5rem;
        box-shadow: none;
    }

    .shop-products-grid .product-image-container {
        min-height: 0;
    }

    .shop-products-grid .product-details {
        padding: 0.625rem 0.75rem 0.75rem;
        gap: 0.2rem;
    }

    .shop-products-grid .product-desc {
        display: none;
    }

    .shop-products-grid .product-name {
        font-size: 0.8rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .shop-products-grid .product-price-group {
        margin-top: 0.15rem;
    }

    .shop-products-grid .btn-add-cart {
        margin-top: 0.35rem;
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    .shop-active-filters {
        margin-bottom: 0.75rem;
        gap: 0.35rem;
    }

    .shop-load-more {
        margin-top: 1rem;
    }

    .shop-load-more .btn {
        width: 100%;
    }

    .shop-toolbar {
        margin-bottom: 0.65rem;
        padding: 0.5rem 0.65rem;
    }

    .shop-toolbar__sort {
        max-width: none;
    }
}

/* ==================== PRODUCT DETAIL PAGE ==================== */

/* ==================== CHECKOUT PAGE ==================== */

.checkout-page {
    background: #fff;
    min-height: 60vh;
    overflow-x: clip;
}

.checkout-wrap {
    width: min(100%, 1180px);
    max-width: 1180px;
    padding: 18px 0 52px;
}

.checkout-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
}

.checkout-breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.checkout-breadcrumb i {
    color: #cfcfcf;
    font-size: 10px;
}

.checkout-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.checkout-head h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.15;
}

.checkout-head p {
    margin: 6px 0 0;
    color: #666;
    font-size: 14px;
}

.checkout-shop-link,
.checkout-primary-link {
    border: 1px solid #dfe8df;
    border-radius: 8px;
    color: var(--primary-green);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.checkout-shop-link:hover,
.checkout-primary-link:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
    gap: clamp(18px, 3vw, 32px);
    align-items: start;
}

.checkout-panel {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.checkout-details {
    padding: 20px;
}

.checkout-summary {
    position: sticky;
    top: 92px;
    padding: 18px;
}

.checkout-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.checkout-panel-head--compact {
    margin-top: 22px;
    margin-bottom: 14px;
}

.checkout-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #edf4ed;
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
}

.checkout-panel-head h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.checkout-panel-head p {
    margin: 3px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
}

.checkout-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.checkout-field--wide {
    grid-column: 1 / -1;
}

.checkout-field span {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    border: 1px solid #dfe5df;
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    font: inherit;
    font-size: 14px;
    min-height: 44px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-field textarea {
    resize: vertical;
    min-height: 104px;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.checkout-payment {
    border-top: 1px solid #f0f0f0;
    margin-top: 22px;
}

.checkout-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkout-pay-btn {
    width: 100%;
    min-height: 58px;
    border: 1px solid #dfe8df;
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-pay-btn span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.checkout-pay-btn small {
    color: #777;
    font-size: 11px;
    font-weight: 700;
}

.checkout-pay-btn:hover:not(:disabled) {
    border-color: var(--primary-green);
    box-shadow: 0 5px 16px rgba(27, 94, 32, 0.11);
    transform: translateY(-1px);
}

.checkout-pay-btn.is-selected {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.checkout-pay-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.checkout-pay-btn--bkash span {
    color: #c2185b;
}

.checkout-pay-btn--cod span {
    color: var(--primary-green);
}

.checkout-method-empty {
    grid-column: 1 / -1;
    border-radius: 8px;
    background: #fff7e6;
    color: #8a6400;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
}

.checkout-save-state {
    margin: 12px 0 0;
    color: #777;
    font-size: 12px;
    font-weight: 600;
}

.checkout-recovery {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    background: #edf5ee;
    border: 1px solid rgba(27, 94, 32, 0.15);
}

.checkout-recovery__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-green);
    margin-bottom: 0.35rem;
}

.checkout-recovery__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-recovery__id {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-dark);
    background: #fff;
    border: 1px dashed rgba(27, 94, 32, 0.25);
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
}

.checkout-recovery__copy {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 6px;
    background: var(--primary-green);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-recovery__copy:hover {
    background: var(--light-green);
}

.checkout-recovery__hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.45;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

.checkout-item img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #f4f6f4;
    object-fit: cover;
}

.checkout-item__body {
    min-width: 0;
}

.checkout-item h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-item p {
    margin: 3px 0 0;
    color: #777;
    font-size: 12px;
}

.checkout-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.checkout-item__meta > span {
    color: var(--primary-green);
    font-size: 13px;
    font-weight: 800;
}

.checkout-item__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8e2;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-item__qty button {
    width: 28px;
    height: 28px;
    border: 0;
    background: #f7f9f7;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
}

.checkout-item__qty strong {
    min-width: 30px;
    text-align: center;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 800;
}

.checkout-total-box {
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-total-box > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    color: #666;
    font-size: 13px;
}

.checkout-total-box strong {
    color: var(--text-dark);
    text-align: right;
}

.checkout-grand-total {
    border-top: 1px dashed #dfe8df;
    padding-top: 12px;
    color: var(--text-dark) !important;
    font-weight: 800;
}

.checkout-grand-total strong {
    color: var(--primary-green);
    font-size: 20px;
}

.checkout-empty {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 42px 18px;
    text-align: center;
    background: #fff;
}

.checkout-empty__icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #edf4ed;
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.checkout-empty h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 800;
}

.checkout-empty p {
    margin: 6px 0 18px;
    color: #777;
}

@media (max-width: 991.98px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 575.98px) {
    .checkout-wrap {
        padding: 12px 0 34px;
    }

    .checkout-head {
        flex-direction: column;
        margin-bottom: 16px;
    }

    .checkout-shop-link {
        width: 100%;
    }

    .checkout-details,
    .checkout-summary {
        padding: 14px;
    }

    .checkout-field-grid,
    .checkout-payment-grid {
        grid-template-columns: 1fr;
    }

    .checkout-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .checkout-item img {
        width: 64px;
        height: 64px;
    }

    .checkout-item__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

.pd-page {
    background: #fff;
    min-height: 60vh;
    overflow-x: clip;
}

.pd-page .container-lg {
    width: min(100%, 1180px);
    max-width: 1180px;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 0 0;
    font-size: 13px;
    color: #999;
}

.pd-breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.pd-breadcrumb a:hover {
    text-decoration: underline;
}

.pd-breadcrumb i {
    font-size: 10px;
    color: #ccc;
}

.pd-breadcrumb span {
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

.pd-body {
    padding: 18px 0 48px;
    max-width: 100%;
    overflow-x: clip;
}

.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    gap: clamp(22px, 4vw, 44px);
    align-items: start;
    max-width: 100%;
}

.pd-gallery {
    position: sticky;
    top: 90px;
    min-width: 0;
    width: 100%;
}

.pd-gallery__inner {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    min-width: 0;
}

.pd-gallery__inner--single {
    grid-template-columns: 1fr;
}

.pd-main-img-wrap {
    position: relative;
    background: #f4f6f4;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.25s ease;
}

.pd-main-img.is-swapping {
    opacity: 0.55;
}

.pd-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e53935;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    letter-spacing: .3px;
}

.pd-share {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: #444;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

.pd-share:hover {
    background: var(--primary-green);
    color: #fff;
    box-shadow: 0 2px 12px rgba(27, 94, 32, .3);
}

.pd-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    max-height: min(560px, 70vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
}

.pd-thumbs::-webkit-scrollbar {
    width: 4px;
}

.pd-thumbs::-webkit-scrollbar-thumb {
    background: rgba(27, 94, 32, 0.25);
    border-radius: 4px;
}

.pd-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f4f6f4;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-thumb.is-active {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(27, 94, 32, .15);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.pd-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-top: 2px;
}

.pd-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 6px;
}

.pd-name {
    font-size: clamp(20px, 3.2vw, 28px);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.25;
    color: var(--text-dark);
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.pd-sku {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 14px;
}

.pd-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pd-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.pd-price-old {
    font-size: 17px;
    color: #bbb;
    text-decoration: line-through;
}

.pd-price-off {
    font-size: 13px;
    font-weight: 700;
    color: #e53935;
    background: rgba(229, 57, 53, .08);
    padding: 3px 10px;
    border-radius: 20px;
}

.pd-desc {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    padding: 0.75rem 0.875rem;
    background: #f8faf8;
    border-radius: 8px;
    border-left: 3px solid var(--primary-green);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.pd-variations {
    margin-bottom: 18px;
}

.pd-var-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.pd-var-label span {
    font-weight: 400;
    color: var(--primary-green);
}

.pd-var-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 160px));
    gap: 8px;
    align-items: stretch;
    max-width: 100%;
}

.pd-var-btn {
    border: 1.5px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    text-align: center;
    min-width: 0;
    max-width: 180px;
    min-height: 48px;
    overflow: hidden;
}

.pd-var-btn:hover {
    border-color: var(--primary-green);
    background: #f5f9f5;
}

.pd-var-btn.is-selected {
    border-color: var(--primary-green);
    background: #edf4ed;
    box-shadow: 0 0 0 2px rgba(27, 94, 32, .12);
}

.pd-var-btn-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-var-btn-val {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #999;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-var-stock {
    font-size: 13px;
    min-height: 20px;
    margin-top: 8px;
    color: var(--primary-green);
    font-weight: 600;
}

.pd-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    min-width: 0;
}

.pd-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.pd-qty-btn {
    width: 42px;
    height: 44px;
    border: none;
    background: #f7f7f7;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.pd-qty-btn:hover {
    background: #eee;
}

.pd-qty-input {
    width: 54px;
    height: 44px;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    outline: none;
    -moz-appearance: textfield;
}

.pd-qty-input::-webkit-inner-spin-button,
.pd-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-cart-btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--primary-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    font-family: inherit;
    min-width: 0;
    white-space: nowrap;
}

.pd-cart-btn:hover {
    background: var(--light-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(27, 94, 32, .2);
}

.pd-cart-btn:active {
    transform: translateY(0);
}

.pd-cart-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pd-cart-btn.is-added {
    background: var(--accent-orange);
    transform: none;
    box-shadow: none;
}

.pd-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.pd-meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-right: 6px;
}

.pd-tags,
.pd-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pd-tag,
.pd-cat-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-green);
    background: #edf4ed;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all .2s;
}

.pd-tag:hover,
.pd-cat-link:hover {
    background: var(--primary-green);
    color: #fff;
}

.pd-desc-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #f0f0f0;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pd-desc-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text-dark);
}

.pd-desc-content {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pd-desc-content p,
.pd-desc-content li,
.pd-desc-content div,
.pd-desc-content span {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pd-desc-content p {
    margin: 0 0 12px;
}

.pd-desc-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.pd-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.pd-desc-content ul,
.pd-desc-content ol {
    padding-left: 20px;
    margin: 0 0 12px;
}

.pd-more-products {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #f0f0f0;
    max-width: 100%;
    overflow: hidden;
}

.pd-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pd-more-title {
    margin: 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.pd-more-subtitle {
    margin: 3px 0 0;
    color: #777;
    font-size: 13px;
}

.pd-more-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pd-more-nav {
    width: 36px;
    height: 36px;
    border: 1px solid #dfe8df;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pd-more-nav:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}

.pd-more-nav.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.pd-more-swiper {
    width: 100%;
    overflow: hidden;
    padding: 2px 2px 8px;
}

.pd-more-slide {
    height: auto;
    min-width: 0;
}

.pd-more-slide .product-card {
    height: 100%;
}

@media (max-width: 991.98px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pd-gallery {
        position: static;
    }

    .pd-gallery__inner {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pd-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        order: 2;
        padding-bottom: 4px;
        padding-right: 0;
    }

    .pd-main-img-wrap {
        order: 1;
        aspect-ratio: 4 / 3;
        max-height: min(440px, 62vh);
    }

    .pd-body {
        padding: 12px 0 40px;
    }

    .pd-name {
        font-size: 20px;
    }

    .pd-price {
        font-size: 24px;
    }

    .pd-thumb {
        width: 64px;
        height: 64px;
    }

    .pd-var-grid {
        grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    }

    .pd-breadcrumb span {
        max-width: 140px;
    }

    .pd-desc-section {
        margin-top: 28px;
        padding-top: 20px;
    }

    .pd-more-products {
        margin-top: 30px;
        padding-top: 22px;
    }
}

@media (max-width: 575.98px) {
    .pd-body {
        padding: 8px 0 30px;
    }

    .pd-main-img-wrap {
        aspect-ratio: 1 / 1;
        max-height: min(330px, 78vw);
        border-radius: 10px;
    }

    .pd-name {
        font-size: 18px;
    }

    .pd-price {
        font-size: 22px;
    }

    .pd-price-old {
        font-size: 15px;
    }

    .pd-var-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .pd-var-btn {
        width: 100%;
        max-width: none;
        padding: 9px 10px;
    }

    .pd-action-row {
        flex-wrap: wrap;
    }

    .pd-qty {
        width: 100%;
    }

    .pd-qty-btn {
        width: 48px;
        height: 46px;
    }

    .pd-qty-input {
        flex: 1;
        width: auto;
        height: 46px;
    }

    .pd-cart-btn {
        height: 46px;
        font-size: 14px;
    }

    .pd-desc-section {
        margin-top: 24px;
        padding-top: 16px;
    }

    .pd-more-products {
        margin-top: 26px;
        padding-top: 18px;
    }

    .pd-more-head {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .pd-more-title {
        font-size: 17px;
    }

    .pd-more-nav {
        width: 34px;
        height: 34px;
    }
}
/* Mobile only */
@media (max-width: 640px) {
    .page-main.checkout-page {
        padding: 10px;
    }
}
