/*
    Kadir & Sons - Shop Redesign
    Aesthetic: Modern Heritage Retail
*/

/* Override boilerplate base: set 1rem = 16px (browser standard) */
html { font-size: 16px; }

:root {
    --kadir-charcoal: #2b2928;
    --kadir-yellow: #fceb04;
    --kadir-yellow-hover: #e6d600;
    --kadir-bg-soft: #f8f8f7;
    --kadir-text-muted: #6b7280;
    --kadir-border: #e5e7eb;
}

/* ============================================
   MOBILE MENU REDESIGN
   ============================================ */

/* ---- Categories tab: dark-background overrides ---- */
/* shop_sidebar.php uses light colors designed for desktop white bg.
   These overrides scope to #categories-tab (mobile menu only). */

#categories-tab .shop-sidebar-cat h2 {
    color: #fceb04;
    border-bottom-color: rgba(252,235,4,0.4);
}
#categories-tab .shop-sidebar-cat .cat-parent {
    border-bottom-color: rgba(255,255,255,0.07);
}
#categories-tab .shop-sidebar-cat .all-products-link {
    color: rgba(255,255,255,0.8);
}
#categories-tab .shop-sidebar-cat .all-products-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
#categories-tab .shop-sidebar-cat .all-products-link.active {
    background: rgba(252,235,4,0.12);
    color: #fceb04;
}
#categories-tab .shop-sidebar-cat .cat-toggle {
    color: rgba(255,255,255,0.8);
}
#categories-tab .shop-sidebar-cat .cat-toggle:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
#categories-tab .shop-sidebar-cat .cat-toggle.active {
    background: rgba(252,235,4,0.12);
    color: #fceb04;
}
#categories-tab .shop-sidebar-cat .cat-toggle .arrow {
    color: rgba(255,255,255,0.25);
}
#categories-tab .shop-sidebar-cat .cat-toggle.active .arrow {
    color: #fceb04;
}
#categories-tab .shop-sidebar-cat .sub-list a {
    color: rgba(255,255,255,0.55);
}
#categories-tab .shop-sidebar-cat .sub-list a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
#categories-tab .shop-sidebar-cat .sub-list a.active {
    background: #fceb04;
    color: #2b2928;
    font-weight: 700;
}
#categories-tab .shop-sidebar-sort h3 {
    color: rgba(255,255,255,0.4);
    border-top-color: rgba(255,255,255,0.07);
    border-bottom-color: rgba(252,235,4,0.4);
}
#categories-tab .shop-sidebar-sort a {
    color: rgba(255,255,255,0.7);
}
#categories-tab .shop-sidebar-sort a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
#categories-tab .shop-sidebar-sort a.active {
    background: rgba(252,235,4,0.12);
    color: #fceb04;
    font-weight: 700;
}

/* Hide top contact bar on mobile — too cramped */
@media (max-width: 768px) {
    .top-bar { display: none !important; }
}

/* Mobile menu panel */
.mobile-menu {
    background: #1a1917 !important;
}

/* Menu header: brand name + close button */
.mm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mm-brand {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fceb04;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.mm-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.mm-close:hover { color: #fceb04; }

/* Tab buttons */
.mobile-menu-tabs .tab-button {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.75rem;
    flex: 1;
    padding: 14px 12px;
    background: #242220;
    color: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-transform: uppercase;
}
.mobile-menu-tabs .tab-button.active {
    color: #fceb04;
    border-bottom-color: #fceb04;
    background: #1a1917;
}
.mobile-menu-tabs .tab-button:hover:not(.active) {
    color: rgba(255,255,255,0.7);
    background: #1e1c1b;
}

/* Menu list */
.mobile-menu .tab-content ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.mobile-menu .tab-content li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Menu links — override boilerplate .block.py-2 */
.mobile-menu .tab-content a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 20px !important;
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s, padding-left 0.15s;
}
.mobile-menu .tab-content a svg {
    flex-shrink: 0;
    color: rgba(255,255,255,0.35);
    transition: color 0.15s;
}
.mobile-menu .tab-content a:hover {
    color: #fceb04 !important;
    background: rgba(252,235,4,0.05);
    padding-left: 26px !important;
}
.mobile-menu .tab-content a:hover svg {
    color: #fceb04;
}

/* Divider between account links and nav links */
.mm-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 0;
    border: none !important;
}

/* Cart link with badge */
.mm-cart-link {
    position: relative;
}
.mm-cart-badge {
    margin-left: auto;
    background: #fceb04;
    color: #2b2928;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.mx-navbar .nav-link {
   
   font-weight: 400; 
    font-size: 13px;

    text-transform: uppercase;
}
/* --- Product Detail Typography --- */
.product-title-main {
    font-size: 1.75rem;
}
.product-price-large {
    font-size: 1.6rem;
}
.description-title {
    font-size: 1.25rem;
}

/* --- Product Cards Typography --- */
.card-price {
    font-size: 1.1rem;
}

/* --- Shop Header / Collection Header --- */
.bar {
    background-image: linear-gradient(45deg, rgb(252,235,4) 0%, rgb(252,235,4) 80%,rgb(72, 77, 92) 80%, rgb(72, 77, 92) 89%,rgb(39,15,55) 89%, rgb(39,15,55) 96%,rgb(0,0,0) 76%, rgb(0,0,0) 88%,rgb(0,0,0) 88%, rgb(0,0,0) 100%);
}
.collection-header {
    background: var(--kadir-charcoal);
    padding: 28px 0;
    text-align: left;
    /* border-bottom: 4px solid var(--kadir-yellow); */
    background-image: linear-gradient(45deg, rgb(252,235,4) 0%, rgb(252,235,4) 80%,rgb(72, 77, 92) 80%, rgb(72, 77, 92) 89%,rgb(39,15,55) 89%, rgb(39,15,55) 96%,rgb(0,0,0) 76%, rgb(0,0,0) 88%,rgb(0,0,0) 88%, rgb(0,0,0) 100%);
}
.collection-description {
    color: black;
    max-width: 600px;
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.collection-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: black;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.collection-header .breadcrumb {
    color: black;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.collection-header .breadcrumb a {
    color: black;
    text-decoration: none;
    transition: color 0.2s;
}

.collection-header .breadcrumb a:hover {
    color: var(--kadir-yellow);
}

/* --- Control Bar --- */
.shop-control-bar {
    background: #fff;
   
    border-radius: 10px;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.shop-control-info {
    font-size: 0.95rem;
    color: var(--kadir-text-muted);
}

.shop-control-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.kadir-select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232b2928' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--kadir-border);
    border-radius: 6px;
    padding: 8px 35px 8px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.kadir-select:hover {
    border-color: var(--kadir-yellow);
}

/* --- Sidebar Refinement --- */
@media (min-width: 768px) {
.desktop-categories-sidebar {
    width: 20%;
    flex: 0 0 20%;
    max-width: 20%;
    margin-top: 80px;
}
.logo img{
    max-width: 90%;
}
    .desktop-categories-sidebar + div {
        width: 80%;
        flex: 0 0 80%;
        max-width: 80%;
    }
}
.shop-sidebar-curated {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    top: 20px;
}

.sidebar-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--kadir-charcoal);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--kadir-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--kadir-text-muted);
    transition: color 0.2s;
    font-weight: 500;
}

.sidebar-category-item {
    border-bottom: 1px solid var(--kadir-bg-soft);
}

.sidebar-category-item:last-child {
    border-bottom: none;
}

.sidebar-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.sidebar-category-header span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--kadir-text-muted);
    transition: color 0.2s;
}

.sidebar-category-header:hover span, .sidebar-category-header.active span {
    color: var(--kadir-charcoal);
    font-weight: 700;
}

.subcategory-list {
    display: none;
    padding: 0 0 10px 15px;
    list-style: none;
    margin: 0;
}

.sidebar-category-item.open .subcategory-list {
    display: block;
}

.subcategory-link {
    display: block;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--kadir-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.subcategory-link:hover, .subcategory-link.active {
    color: var(--kadir-charcoal);
    font-weight: 700;
}

.cat-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
    color: #9ca3af;
}

.sidebar-category-item.open .cat-chevron {
    transform: rotate(90deg);
}


/* --- Product Card - Premium Heritage --- */
.kadir-product-card {
    background: #fff;
    border: 1px solid #dfd7d7;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.07); */
    height: 100%;
    display: flex;
    flex-direction: column;
    /* box-shadow: 0 10px 10px -10px rgba(0,0,0,0.25),0 18px 36px -18px rgba(0,0,0,0.27); */
}

.kadir-product-card:hover {
    transform: translateY(-4px);
    
}

.card-image-wrap {
    position: relative;
    padding-top: 100%; /* Square ratio */
    overflow: hidden;
   
}

.card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s ease;
}

.kadir-product-card:hover .card-image-wrap img {
    transform: scale(1.08);
}

.card-content {
    padding: 20px 20px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-brand {
    font-size: 8px;
    color: #303030;
    text-transform: uppercase;
    line-height: 1;
}

.card-title {
    font-size: 0.95rem;
    color: var(--kadir-charcoal);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    margin-bottom: 10px;
    font-weight: 550;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #dfd7d7;;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--kadir-charcoal);
}

.card-price .currency {
    font-size: 0.9rem;
    margin-right: 2px;
}

.btn-kadir-add {
    background: transparent;
    color: var(--kadir-charcoal);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 2px solid var(--kadir-charcoal);
    cursor: pointer;
}

.btn-kadir-add:hover {
    background: var(--kadir-charcoal);
    color: var(--kadir-yellow);
    border-color: var(--kadir-charcoal);
}

.btn-kadir-add svg {
    width: 20px;
    height: 20px;
}

/* --- Stock Badge --- */
.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stock-in { color: #10b981; }
.stock-out { color: #ef4444; }

/* --- Product Detail Page --- */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.product-gallery-wrap {
    background: #fff;
    border: 1px solid var(--kadir-border);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.product-info-wrap {
    padding: 0;
}

.product-brand-tag {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--kadir-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.product-title-main {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--kadir-charcoal);
    line-height: 1.2;
    margin-bottom: 20px;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--kadir-charcoal);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--kadir-bg-soft);
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--kadir-bg-soft);
    font-size: 0.95rem;
}

.product-meta-label {
    font-weight: 700;
    color: var(--kadir-charcoal);
}

.product-meta-value {
    color: var(--kadir-text-muted);
}

/* --- Buy Box --- */
.buy-box {
    background: #fff;
    border: 1px solid var(--kadir-border);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.qty-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qty-label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.kadir-qty-input {
    width: 80px !important;
    text-align: center;
    font-weight: 700;
    border-radius: 6px;
}

.btn-kadir-primary {
    background: var(--kadir-charcoal);
    color: var(--kadir-yellow);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 30px;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    width: 100%;
    cursor: pointer;
}

.btn-kadir-primary:hover {
    background: var(--kadir-yellow);
    color: var(--kadir-charcoal);
}

.btn-kadir-whatsapp {
    background: #25D366;
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-kadir-whatsapp:hover {
    opacity: 0.9;
    color: #fff;
}

/* --- Description & Value Props --- */
.product-description-card {
    background: #fff;
    border: 1px solid var(--kadir-border);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
}

.description-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--kadir-yellow);
    display: inline-block;
}

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.value-prop-item {
    background: #fff;
    border: 1px solid var(--kadir-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.2s;
}

.value-prop-item:hover {
    transform: translateY(-5px);
}

.value-prop-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kadir-bg-soft);
    border-radius: 50%;
}

.value-prop-item h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.value-prop-item p {
    font-size: 0.85rem;
    color: var(--kadir-text-muted);
    margin: 0;
}

/* Glide Overrides */
.glide__bullet {
    width: 60px !important;
    height: 60px !important;
    border-radius: 4px !important;
    background: #fff !important;
    border: 1px solid var(--kadir-border) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.glide__bullet--active {
    border-color: var(--kadir-yellow) !important;
    border-width: 2px !important;
}

/* --- Pagination --- */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.page-link {
    padding: 8px 14px;
    border: 1px solid var(--kadir-border);
    border-radius: 6px;
    color: var(--kadir-charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.page-link:hover {
    border-color: var(--kadir-yellow);
    color: var(--kadir-charcoal);
}
.page-link.active {
    background: var(--kadir-charcoal);
    color: var(--kadir-yellow);
    border-color: var(--kadir-charcoal);
}

/* --- Footer --- */
.footer-kadir {
    background: #2b2928;
    color: #fff;
    padding: 64px 0 40px;
}
.footer-heading {
    color: #fceb04;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.footer-text {
    color: #9ca3af;
    line-height: 1.7;
}
.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 5px 0;
}
.footer-link:hover {
    color: #fceb04;
}
.footer-link-highlight {
    color: #fceb04;
    font-weight: 700;
    text-decoration: none;
}
.footer-link-highlight:hover {
    color: #e6d600;
}
.footer-social-link {
    color: #9ca3af;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.footer-social-link:hover {
    color: #fceb04;
}
.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    border-top: 1px solid #4a4745;
    padding-top: 24px;
    margin-top: 40px;
}

/* --- WhatsApp Button --- */
.btn-kadir-whatsapp {
    background: #25D366;
    border: none;
}
.btn-kadir-whatsapp:hover {
    background: #1da851;
}

/* ============================================
   PRODUCT PAGE REDESIGN
   ============================================ */

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--kadir-charcoal);
    color: var(--kadir-yellow);
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 24px;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb-link {
    color: var(--kadir-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-link:hover {
    color: var(--kadir-charcoal);
}
.breadcrumb-sep {
    color: var(--kadir-text-muted);
    display: flex;
    align-items: center;
}
.breadcrumb-current {
    color: var(--kadir-charcoal);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: 55% 45%;
        gap: 60px;
    }
}

/* Gallery */
.product-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--kadir-border);
}

.gallery-image-wrap {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}

.gallery-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-image-wrap:hover .gallery-main-image {
    transform: scale(1.1);
}

.gallery-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(43, 41, 40, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.gallery-image-wrap:hover .gallery-zoom-hint {
    opacity: 1;
}

/* Mobile Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}
.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--kadir-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-dot.active {
    background: var(--kadir-charcoal);
    transform: scale(1.2);
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}
.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}
.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--kadir-bg-soft);
    border-radius: 4px;
}
.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--kadir-border);
    border-radius: 4px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid var(--kadir-border);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--kadir-charcoal);
    border-width: 2px;
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    position: relative;
}
.product-info-inner {
    position: sticky;
    top: 120px;
}
.product-brand {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--kadir-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    border-left: 3px solid var(--kadir-yellow);
    padding-left: 10px;
}
.product-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--kadir-charcoal);
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
}
.star {
    color: var(--kadir-border);
}
.star.filled {
    color: #f59e0b;
}
.rating-text {
    font-size: 0.85rem;
    color: var(--kadir-text-muted);
}

/* Price */
.product-price-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--kadir-bg-soft);
}
.price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--kadir-charcoal);
}
.price-discount {
    color: #dc2626;
}
.price-original {
    font-size: 1.25rem;
    color: var(--kadir-text-muted);
    text-decoration: line-through;
}
.price-save {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Product Meta */
.product-meta {
    margin-bottom: 24px;
}
.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--kadir-bg-soft);
}
.meta-label {
    font-weight: 600;
    color: var(--kadir-charcoal);
    font-size: 0.9rem;
}
.meta-value {
    color: var(--kadir-text-muted);
    font-size: 0.9rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--kadir-text-muted);
}
.trust-badge svg {
    color: var(--kadir-charcoal);
    flex-shrink: 0;
}

/* Buy Box */
.buy-box {
    background: #fff;
    border: 1px solid var(--kadir-border);
    border-radius: 12px;
    padding: 24px;
}
.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.qty-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--kadir-charcoal);
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--kadir-border);
    border-radius: 8px;
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--kadir-bg-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: var(--kadir-charcoal);
    color: var(--kadir-yellow);
}
.qty-btn:focus-visible {
    outline: 2px solid var(--kadir-yellow);
    outline-offset: -2px;
}
.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--kadir-border);
    border-right: 1px solid var(--kadir-border);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input:focus {
    outline: none;
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    padding: 16px 24px;
    background: var(--kadir-charcoal);
    color: var(--kadir-yellow);
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}
.btn-add-cart:hover:not(:disabled) {
    background: var(--kadir-yellow);
    color: var(--kadir-charcoal);
}
.btn-add-cart:focus-visible {
    outline: 3px solid var(--kadir-yellow);
    outline-offset: 2px;
}
.btn-add-cart:disabled,
.btn-add-cart.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* WhatsApp Button */
.btn-whatsapp {
    width: 100%;
    padding: 14px 24px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    transition: all 0.2s;
}
.btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
}
.btn-whatsapp:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 2px;
}

/* Share Row */
.share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--kadir-bg-soft);
}
.share-label {
    font-size: 0.85rem;
    color: var(--kadir-text-muted);
    font-weight: 600;
}
.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--kadir-charcoal);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--kadir-border);
    transition: all 0.2s;
}
.share-btn:hover {
    border-color: var(--kadir-charcoal);
    background: var(--kadir-charcoal);
    color: #fff;
}

/* Accordion */
.product-details-section {
    margin-bottom: 48px;
}
.accordion-item {
    border: 1px solid var(--kadir-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}
.accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}
.accordion-header:hover {
    background: var(--kadir-bg-soft);
}
.accordion-header:focus-visible {
    outline: 2px solid var(--kadir-yellow);
    outline-offset: -2px;
}
.accordion-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--kadir-charcoal);
}
.accordion-icon {
    color: var(--kadir-text-muted);
    transition: transform 0.3s;
}
.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.accordion-content.open {
    max-height: 1000px;
}
.accordion-inner {
    padding: 0 24px 24px;
}
.prose {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--kadir-charcoal);
}
.prose p {
    margin-bottom: 12px;
}
.prose p:last-child {
    margin-bottom: 0;
}
.shipping-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shipping-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--kadir-charcoal);
    font-size: 0.95rem;
}
.shipping-list svg {
    flex-shrink: 0;
    color: var(--kadir-charcoal);
}
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table th,
.info-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--kadir-bg-soft);
    text-align: left;
}
.info-table th {
    font-weight: 600;
    color: var(--kadir-charcoal);
    width: 40%;
}
.info-table td {
    color: var(--kadir-text-muted);
}

/* Related Products */
.related-products {
    margin-bottom: 48px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--kadir-charcoal);
    margin: 0;
}
.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--kadir-charcoal);
    text-decoration: none;
    transition: color 0.2s;
}
.section-link:hover {
    color: var(--kadir-yellow);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}
.related-card {
    background: #fff;
    border: 1px solid var(--kadir-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.related-card-link {
    text-decoration: none;
    display: block;
}
.related-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}
.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s;
}
.related-card:hover .related-card-image img {
    transform: scale(1.08);
}
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.related-card-content {
    padding: 16px;
}
.related-card-brand {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--kadir-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.related-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--kadir-charcoal);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.related-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-now {
    font-size: 1rem;
    font-weight: 800;
    color: var(--kadir-charcoal);
}
.price-was {
    font-size: 0.85rem;
    color: var(--kadir-text-muted);
    text-decoration: line-through;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-modal.open {
    display: flex;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: var(--kadir-yellow);
}
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 16px;
    border-radius: 50%;
    transition: all 0.2s;
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}

/* Mobile Floating CTA */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 100;
    align-items: center;
    gap: 16px;
}
@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
    }
    .product-info-inner {
        position: static;
    }
    .product-grid {
        padding-bottom: 80px;
    }
}
.mobile-cta-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-add-cart-mobile {
    flex: 1;
    padding: 14px 20px;
    background: var(--kadir-charcoal);
    color: var(--kadir-yellow);
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-add-cart-mobile:hover:not(:disabled) {
    background: var(--kadir-yellow);
    color: var(--kadir-charcoal);
}
.btn-add-cart-mobile:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-main-image,
    .related-card-image img,
    .thumbnail-item,
    .accordion-icon,
    .accordion-content {
        transition: none;
    }
}

/* Mobile HUD */
@media (max-width: 768px) {
    .product-main-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-title-main { font-size: 1.375rem; }
    .collection-header h1 { font-size: 1.5rem; }
    .value-prop-grid { grid-template-columns: 1fr; }
    .product-gallery-wrap { position: static; }
    #top-bar { width: 95%; }
    .product-title { font-size: 1.5rem; }
    .gallery-zoom-hint { display: none; }
    .trust-badges { flex-direction: column; gap: 8px; }
    .trust-badge { font-size: 0.75rem; }
    .accordion-header { padding: 16px 20px; }
    .accordion-inner { padding: 0 20px 20px; }
    .section-title { font-size: 1.25rem; }
}

/* ============================================
   Cart Drawer
   ============================================ */

/* Backdrop */
.cart-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 18, 0.55);
    z-index: 998;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.32s ease;
}
.cart-backdrop.visible {
    opacity: 1;
}

/* Drawer shell */
.cart-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 400px;
    max-width: 100vw;
    background: #fff;
    z-index: 999;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.open {
    transform: translateX(0);
}

/* Header */
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2b2928;
    padding: 18px 20px;
    border-bottom: 3px solid #fceb04;
    flex-shrink: 0;
}
.cart-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.cart-drawer-title svg { color: #fceb04; }
.cart-drawer-count {
    background: #fceb04;
    color: #2b2928;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.cart-drawer-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.75);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
    flex-shrink: 0;
}
.cart-drawer-close:hover {
    background: #fceb04;
    color: #2b2928;
    border-color: #fceb04;
}

/* Scrollable items area */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb #fff;
}
.cart-drawer-body::-webkit-scrollbar { width: 4px; }
.cart-drawer-body::-webkit-scrollbar-track { background: #fff; }
.cart-drawer-body::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

/* Cart item row */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0eee9;
    position: relative;
    transition: background 0.15s;
}
.cart-item:hover { background: #fafaf9; }
.cart-item:last-child { border-bottom: none; }

.cart-item-image {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: #f4f3f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-item-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2b2928;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-name:hover { color: #000; }
.cart-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-item-qty {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    background: #f4f3f0;
    padding: 2px 8px;
}
.cart-item-unit {
    font-size: 0.78rem;
    color: #9ca3af;
}
.cart-item-total {
    font-size: 0.9rem;
    font-weight: 800;
    color: #2b2928;
    margin-top: 2px;
}

/* Remove button */
.cart-item-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    border-radius: 50%;
    margin-top: 2px;
}
.cart-item-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Empty state */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    gap: 10px;
}
.cart-empty svg { color: #d1d5db; }
.cart-empty p {
    font-size: 1rem;
    font-weight: 700;
    color: #2b2928;
    margin: 0;
}
.cart-empty span {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Footer */
.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid #f0eee9;
    flex-shrink: 0;
    background: #fff;
}
.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cart-subtotal-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
}
.cart-subtotal-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2b2928;
    line-height: 1;
}
.cart-footer-note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0 0 16px;
}
.cart-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    background: #fceb04;
    color: #2b2928;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: 10px;
}
.cart-btn-primary:hover {
    background: #e6d600;
    color: #2b2928;
}
.cart-btn-secondary {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, color 0.15s;
}
.cart-btn-secondary:hover {
    border-color: #2b2928;
    color: #2b2928;
}

/* Mobile — bottom sheet */
@media (max-width: 480px) {
    .cart-drawer {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 88vh;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(105%);
        box-shadow: 0 -12px 48px rgba(0,0,0,0.22);
        transition: transform 0.44s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .cart-drawer.open {
        transform: translateY(0);
    }
    /* Drag handle pill */
    .cart-drawer::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.25);
        border-radius: 2px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }
}

/* ── Add-to-cart button states ──────────────────────────── */

/* Physical press */
.add-to-cart-btn:active:not(:disabled),
.btn-kadir-add:active:not(:disabled) {
    transform: scale(0.93) !important;
}

/* Success pop */
@keyframes atc-btn-pop {
    0%   { transform: scale(0.92); }
    55%  { transform: scale(1.07); }
    100% { transform: scale(1); }
}
.add-to-cart-btn.atc-success {
    animation: atc-btn-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    background: #2b2928 !important;
    color: #fceb04 !important;
    border-color: #2b2928 !important;
}

/* Cart nav badge bounce */
@keyframes badge-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.65); }
    75%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
#cart-item-count.badge-bounce {
    animation: badge-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Flying dot (created by JS, position set inline) */
.cart-fly-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #fceb04;
    border: 2.5px solid #2b2928;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 2px 8px rgba(252,235,4,0.5);
}
