/*
Theme Name: Namjai
Theme URI: http://localhost:8080
Author: Namjai
Description: Custom theme for Namjai Thai food brand website
Version: 1.0.0
Text Domain: namjai
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red-primary: #8C1C13;
    --red-dark: #6B1510;
    --red-light: #A52018;
    --gold: #C8973A;
    --gold-light: #D4AF6B;
    --beige: #FDF6EE;
    --beige-dark: #F5EAD8;
    --olive: #4A4A1E;
    --olive-light: #6B6B30;
    --text-dark: #2C1810;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --border-color: #E8DDD0;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: var(--beige);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    padding-top: 70px;
}

/* When admin bar is visible, add its height too */
.admin-bar body {
    padding-top: 102px;
}

/* Force Noto Sans Thai everywhere */
*, *::before, *::after,
.elementor-widget-container, .elementor-widget-container *,
.elementor-heading-title,
.elementor-text-editor, .elementor-text-editor *,
h1, h2, h3, h4, h5, h6,
p, a, span, li, td, th, label, input, button, select, textarea {
    font-family: 'Noto Sans Thai', sans-serif !important;
}

/* Restore Dashicons — must come after, specificity wins */
#wpadminbar *::before,
#wpadminbar *::after,
.dashicons,
.dashicons-before::before {
    font-family: dashicons !important;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--red-primary);
    padding-left: 16px;
    border-left: 5px solid var(--red-primary);
    margin-bottom: 30px;
}

/* ===== HEADER ===== */
.site-header {
    background-color: var(--red-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Sit below admin bar when logged in */
.admin-bar .site-header {
    top: 32px;
}

.site-header .container {
    max-width: 100%;
    padding: 0 32px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-logo img {
    height: 52px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 6px;
    align-items: center;
}

.main-nav ul li a {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    background-color: rgba(255,255,255,0.15);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Icons */
.header-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    text-decoration: none;
}

.header-icon:hover { background: rgba(255,255,255,0.15); }

.header-icon img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Mobile menu toggle (hamburger) — hidden on desktop, shown at the mobile breakpoint below */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle-bars,
.mobile-menu-toggle-bars::before,
.mobile-menu-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu-toggle-bars {
    position: relative;
}

.mobile-menu-toggle-bars::before,
.mobile-menu-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
}

.mobile-menu-toggle-bars::before { top: -7px; }
.mobile-menu-toggle-bars::after { top: 7px; }

.mobile-menu-toggle.active .mobile-menu-toggle-bars { background: transparent; }
.mobile-menu-toggle.active .mobile-menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active .mobile-menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Cart count badge */
.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #fff;
    color: var(--red-primary);
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Language switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.lang-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.lang-item:hover img,
.lang-item.lang-active img { opacity: 1; }

.lang-sep {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    line-height: 1;
}

/* ── Search overlay ── */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-overlay-inner {
    width: 100%;
    max-width: 680px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 40px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    transform: translateY(-10px);
    transition: transform 0.2s;
}

.search-overlay.active .search-overlay-inner {
    transform: translateY(0);
}

.search-form {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Noto Sans Thai', sans-serif;
    color: #1a0a00;
    background: transparent;
    padding: 6px 0;
}

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

/* Hide the browser's built-in search-clear icon — the custom .search-close
   button already covers that job, so the native one is a redundant duplicate. */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-input::-ms-clear { display: none; width: 0; height: 0; }

.search-submit {
    background: var(--red-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: #fff;
    transition: background 0.2s;
}

.search-submit:hover { background: #6B1510; }

.search-close {
    /* Hidden per request — click-outside and Escape still close the overlay
       (wired in header.php), so this duplicate visible × isn't needed. */
    display: none;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.search-close:hover { background: #f0f0f0; }

/* Float LINE icon */
.float-line {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    z-index: 999;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}
.float-line:hover { transform: scale(1.1); }

/* ===== HERO / MAIN BANNER ===== */
.hero-section {
    background-color: var(--beige);
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: 480px;
}

.hero-image-wrap {
    position: relative;
}

.hero-image-wrap img.hero-main-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 0 0 120px 0;
}

.hero-since-badge {
    position: absolute;
    bottom: 30px;
    right: -10px;
    width: 110px;
    opacity: 0.9;
}

.hero-flower {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 80px;
    opacity: 0.7;
}

.hero-content {
    padding: 40px 30px 40px 0;
}

.hero-content h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.hero-content h1 span {
    color: var(--red-primary);
}

.hero-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.hero-stars span {
    color: var(--gold);
    font-size: 22px;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 420px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--red-primary);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--red-dark);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--red-primary);
    color: var(--red-primary);
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--red-primary);
    color: var(--white);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 60px 0;
    background-color: var(--beige);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(140,28,19,0.12);
}

.product-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 14px;
}

.product-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.4;
}

.product-card .btn-outline {
    font-size: 12px;
    padding: 7px 18px;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 60px 0;
    background-color: var(--beige-dark);
}

.blog-slider-wrap {
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 18px;
}

.blog-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

.blog-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.blog-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--red-primary);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.blog-nav button:hover {
    background: var(--red-primary);
}

.blog-nav button img {
    width: 16px;
    filter: none;
    transition: filter 0.3s;
}

.blog-nav button:hover img {
    filter: brightness(0) invert(1);
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    background-color: var(--olive);
    padding: 50px 0;
}

.partners-section .section-title {
    color: var(--gold-light);
    border-left-color: var(--gold-light);
    text-align: center;
    border-left: none;
    padding-left: 0;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.partner-logo {
    background: var(--white);
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.partner-logo:hover { transform: scale(1.05); }

.partner-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* ===== HOME HERO (Elementor widgets) ===== */
.home-hero {
    background: #FDF6EE;
    overflow: hidden;
}

.home-hero-left {
    position: relative;
    overflow: hidden;
    min-height: 580px;
}

.home-hero-left img {
    width: 100%;
    height: auto;
    display: block;
}

.home-hero-right {
    position: relative;
    padding: 52px 56px;
    background-color: #F4EDE2;
    overflow: hidden;
    display: flex;
}

.home-hero-right > .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.elementor-element-hrotitl .elementor-heading-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #000000;
    margin: 0;
}

.elementor-element-hrostar img {
    height: 32px;
    width: auto;
    filter: brightness(0);
    display: block;
}

.home-hero-stars-old {
    color: #C8973A;
    font-size: 12px;
    letter-spacing: 5px;
    line-height: 1;
}

.elementor-element-hrodesc .elementor-widget-container p {
    font-size: 14px;
    color: #444;
    line-height: 1.85;
    margin: 0 0 12px;
}

.elementor-element-hrodesc .elementor-widget-container p:last-child {
    margin-bottom: 0;
}

.elementor-element-herobtn .elementor-button {
    display: inline-block;
    background: transparent;
    color: #1a0a00 !important;
    border: 1.5px solid #1a0a00;
    padding: 11px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    margin-top: 4px;
}

.elementor-element-herobtn .elementor-button:hover {
    background: #1a0a00;
    color: #fff !important;
}

.elementor-element.elementor-element-hrosinc {
    text-align: right;
}

.elementor-element.elementor-element-hrosinc img {
    width: 250px;
    height: auto;
    opacity: 0.85;
    pointer-events: none;
}

/* ===== HOME CATEGORIES ===== */
.home-cats {
    background: #F0E6D880;
    padding: 0 0 60px;
}

.home-section-title {
    font-size: 30px;
    font-weight: 700;
    color: #1a0a00;
    background: #F0E6D880;
    padding: 40px 40px 32px;
    margin: 0;
    text-align: left;
    width: 100%;
}

.home-cats-inner {
    width: 100%;
    padding: 0;
    background: #ffffff;
}

.home-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1px;
    background: #F0E6D880;
}

.home-cat-card {
    border: 1px solid #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-cat-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-cat-img-wrap img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

.home-cat-card:hover .home-cat-img-wrap img { transform: scale(1.05); }

.home-cat-body {
    padding: 14px 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.home-cat-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a0a00;
    margin: 0;
    text-align: center;
}

.home-cat-btn {
    display: inline-block;
    border: 1.5px solid #1a0a00;
    color: #1a0a00 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 24px;
    border-radius: 24px;
    transition: all 0.2s;
    background: transparent;
}

.home-cat-btn:hover {
    background: #8C1C13;
    border-color: #8C1C13;
    color: #fff !important;
}

@media (max-width: 768px) {
    .home-section-title {
        font-size: 24px;
        padding: 28px 24px 20px;
    }

    .home-cat-card {
        padding: 24px 16px;
    }

    .home-cat-img-wrap {
        height: 160px;
    }

    .home-cat-img-wrap img {
        max-height: 160px;
    }

    .home-cat-name {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .home-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-cat-card {
        padding: 16px 10px;
    }

    .home-cat-img-wrap {
        height: 110px;
    }

    .home-cat-img-wrap img {
        max-height: 110px;
    }

    .home-cat-name {
        font-size: 15px;
    }

    .home-cat-btn {
        font-size: 12px;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .home-cat-card {
        padding: 20px 16px;
    }
}

/* ===== HOME PROMO ===== */
.home-promo {
    background: #F5EAD8;
    padding: 56px 0;
}

.home-promo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

.home-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-promo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.home-promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none;
}

.home-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,10,0,0.75) 0%, rgba(26,10,0,0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    gap: 6px;
}

.home-promo-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-promo-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.home-promo-link {
    display: inline-block;
    background: #8C1C13;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 20px;
    align-self: flex-start;
    margin-top: 8px;
    transition: background 0.2s;
}

.home-promo-link:hover { background: #6B1510; }

.home-promo-arrow {
    display: none;
}

/* ===== HOME BLOG SLIDER ===== */
.home-blog {
    background: #fff;
    padding-bottom: 56px;
}

/* heading bar — beige เหมือน หมวดหมู่สินค้า, ชิดกับ section บน */
.home-blog-header {
    background: #f0e6d8;
    padding: 40px 40px 32px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.home-blog-title {
    font-size: 30px;
    font-weight: 700;
    color: #1a0a00;
    margin: 0;
    font-family: 'Sarabun', sans-serif;
}

/* slider area on white */
.home-blog-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 0;
}

/* Remove bottom gap of categories so blog header sits flush */
.home-cats {
    padding-bottom: 0;
}

/* ===== HOME PARTNERS ===== */
.home-partners {
    background-color: #4A4A1E;
    /* background-image set via PHP in functions.php (namjai_partner_bg_css) */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    padding: 52px 0;
}

.home-partners-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.home-partners-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 40px;
    text-align: center;
}

.home-partners-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.home-partners-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 20px;
    align-items: center;
    animation: home-partners-scroll 30s linear infinite;
}

.home-partners-viewport:hover .home-partners-track {
    animation-play-state: paused;
}

@keyframes home-partners-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 10px)); }
}

.home-partner-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.home-partner-logo:hover { transform: scale(1.05); }

.home-partner-logo img {
    max-width: 75%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ===== ELEMENTOR FULLWIDTH OVERRIDE ===== */
/* Force stretched sections and full-width layouts to actually fill viewport */
.elementor-section.elementor-section-stretched {
    width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    position: relative !important;
}
.elementor-section.elementor-section-full_width > .elementor-container,
.elementor-section.elementor-section-stretched > .elementor-container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.elementor-section.elementor-section-full_width .elementor-column > .elementor-widget-wrap,
.elementor-section.elementor-section-stretched .elementor-column > .elementor-widget-wrap {
    padding: 0 !important;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #0F0F0E;
    color: #fff;
    padding: 56px 0 0;
    font-family: 'Noto Sans Thai', sans-serif;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 48px;
    align-items: start;
}

/* Heading style for all footer columns */
.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

/* Col 1 – Product categories */
.footer-products { }

.footer-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.footer-cat-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-cat-grid ul li {
    margin-bottom: 10px;
}

.footer-cat-grid ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-cat-grid ul li a:hover { color: #fff; }

.footer-certs {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
}

.footer-certs img {
    height: 48px;
    width: auto;
}

/* Col 2 – Customer help */
.footer-help ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-help ul li {
    margin-bottom: 12px;
}

.footer-help ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-help ul li a:hover { color: #fff; }

/* Col 3 – Company info */
.footer-company-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.footer-company-info { flex: 1; }

.footer-company-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 6px;
}

.footer-logo-wrap img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-social a img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}

.footer-social a:hover img { opacity: 0.75; }

/* ===== SHOP PAGE ===== */
.shop-hero {
    width: 100%;
    line-height: 0;
}
.shop-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.shop-body {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 48px 72px;
    background: #FAF5EE;
    min-height: 600px;
}

/* ── Sidebar ── */
.shop-cat-heading {
    font-size: 17px;
    font-weight: 700;
    color: #8C1C13;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.shop-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-cat-list li { margin-bottom: 0; }

.shop-cat-list li a {
    display: block;
    padding: 9px 0;
    font-size: 15px;
    color: #2C1810;
    text-decoration: none;
    transition: color 0.2s;
}

.shop-cat-list li a:hover,
.shop-cat-list li.active a {
    color: #8C1C13;
    font-weight: 600;
}

/* ── Product grid: 3 cols ── */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    align-content: start;
}

/* ── Product card ── */
.shop-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s;
    height: 100%;
}

.shop-card:hover { transform: translateY(-4px); }

.shop-card-img-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
}

.shop-card-img-link img {
    width: auto;
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.13));
    transition: filter 0.25s;
}

.shop-card:hover .shop-card-img-link img {
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.2));
}

.shop-card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    flex: 1;
}

.shop-card-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a0a00;
    line-height: 1.4;
    text-decoration: none;
}

.shop-card-size {
    font-size: 14px;
    color: #555;
}

.shop-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #8C1C13;
    margin: 4px 0 12px;
}

.shop-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #2C1810;
    color: #2C1810;
    background: transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 36px;
    border-radius: 30px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.01em;
    margin-top: auto;
}

.shop-card-btn:hover {
    background: #8C1C13;
    border-color: #8C1C13;
    color: #fff;
}

.shop-card-btn::after {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.shop-card-btn.product_type_external::after {
    content: none;
}

.shop-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    color: #888;
    font-size: 16px;
}

.shop-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 48px;
}

.shop-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #D0C0B0;
    color: #2C1810;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.shop-page-num.active,
.shop-page-num:hover {
    background: #8C1C13;
    border-color: #8C1C13;
    color: #fff;
}

/* ===== SINGLE PRODUCT (PDP) ===== */
.pdp-page { background: #FAF5EE; }

.pdp-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #FAF5EE;
    min-height: 560px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 48px;
}

/* Image col */
.pdp-image-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-right: 48px;
}

.pdp-img-frame {
    width: 100%;
    max-width: 100%;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 56px;
    box-sizing: border-box;
}

.pdp-img-frame img {
    width: 60%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* Placeholder logo used on products with no real photo yet — shrink it
   within the same frame instead of filling it edge-to-edge */
img[src*="Namjai_Symbol"] {
    padding: 15%;
    box-sizing: border-box;
}

.pdp-img-frame:hover img {
    transform: scale(1.4);
}

/* Info col */
.pdp-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 16px;
}

.pdp-title {
    font-size: 42px;
    font-weight: 800;
    color: #8C1C13;
    margin-bottom: 16px;
    line-height: 1.25;
}

.pdp-price {
    font-size: 32px;
    font-weight: 700;
    color: #8C1C13;
    margin-bottom: 10px;
}

.pdp-size {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
}

.pdp-divider {
    height: 1px;
    background: rgba(0,0,0,0.12);
    margin-bottom: 24px;
}

/* Variation selector (size, etc.) */
.pdp-variation-row {
    margin-bottom: 16px;
}
.pdp-variation-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 6px;
}
.pdp-variation-select {
    width: 100%;
    max-width: 280px;
    padding: 10px 14px;
    border: 1px solid #D0C0B0;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: #2C1810;
}

/* Qty + add to cart row */
.pdp-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pdp-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #b0a090;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 48px;
}

.qty-btn {
    background: none;
    border: none;
    width: 40px;
    height: 100%;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    line-height: 1;
}

.qty-btn:hover { background: #f0e8dc; }

.qty-input {
    width: 52px;
    height: 100%;
    text-align: center;
    border: none;
    border-left: 1.5px solid #b0a090;
    border-right: 1.5px solid #b0a090;
    font-size: 16px;
    font-family: 'Noto Sans Thai', sans-serif;
    outline: none;
    background: #fff;
    -moz-appearance: textfield;
}

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

.pdp-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #8C1C13;
    color: #fff;
    border: none;
    padding: 0 28px;
    height: 48px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans Thai', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.pdp-add-btn:hover { background: #6B1510; }

.pdp-add-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
}

/* Category row */
.pdp-cat-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}

.pdp-cat-label {
    color: #8C1C13;
    font-weight: 600;
}

.pdp-cat-links a {
    color: #1a0a00;
    text-decoration: none;
    font-weight: 400;
}

.pdp-cat-links a:hover { color: #8C1C13; }

/* ── Tabs (inside right info col) ── */
.pdp-tabs-wrap {
    margin-top: 28px;
}

.pdp-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E0D0BC;
    margin-bottom: 20px;
}

.pdp-tab-btn {
    font-size: 22px;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 700;
    padding: 16px 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: #8C1C13;
    opacity: 0.45;
    transition: opacity 0.2s;
    position: relative;
}

.pdp-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s;
}

.pdp-tab-btn.active { opacity: 1; }
.pdp-tab-btn.active::after { background: #8C1C13; }

.pdp-tab-pane { display: none; }
.pdp-tab-pane.active { display: block; }

.pdp-tab-content {
    font-size: 14px;
    line-height: 1.85;
    color: #2C1810;
    padding-right: 4px;
}

.pdp-tab-content p { margin-bottom: 10px; }
.pdp-tab-content strong { color: #1a0a00; }

.pdp-tab-content img {
    float: none;
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 0 16px 0;
}


.pdp-recipe-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a0a00;
    margin-bottom: 10px;
}

.pdp-recipe-list {
    padding-left: 20px;
    margin: 0;
}

.pdp-recipe-list li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.75;
    color: #2C1810;
}

/* ── Related products ── */
.pdp-related {
    background: #F4EDE2;
    padding: 64px 0 72px;
}

.pdp-related-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.pdp-related-title {
    font-size: 32px;
    font-weight: 800;
    color: #8C1C13;
    margin-bottom: 40px;
    text-align: center;
}

.pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* ── Section 3: Contact banner (full-width image + overlay) ── */
.pdp-contact-banner {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-color: #1a0a00;
    display: flex;
    align-items: center;
}

.pdp-contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26,10,0,0.82) 0%, rgba(26,10,0,0.55) 60%, rgba(26,10,0,0.1) 100%);
}

.pdp-contact-content {
    position: relative;
    z-index: 1;
    padding: 64px 80px;
    max-width: 640px;
    color: #fff;
}

.pdp-contact-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.pdp-contact-sub {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}

.pdp-contact-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin-bottom: 32px;
}

.pdp-contact-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pdp-contact-btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 30px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.pdp-contact-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.pdp-contact-btn-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #8C1C13;
    border-radius: 30px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.pdp-contact-btn-red:hover { background: #6B1510; color: #fff; }
.pdp-contact-btn-red svg { flex-shrink: 0; }

/* ===== WOOCOMMERCE ===== */
.woo-wrapper { font-family: 'Noto Sans Thai', sans-serif; }

/* Shop grid */
.woocommerce .products { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 20px; margin: 0 !important; }
@media(max-width:900px){ .woocommerce .products { grid-template-columns: repeat(2,1fr); } }

.woocommerce ul.products li.product {
    background: #fff; border-radius: 12px; border: 1px solid #F0E8DC;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06); padding: 20px 16px !important;
    text-align: center; transition: transform .3s, box-shadow .3s; margin: 0 !important; float: none !important; width: auto !important;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(140,28,19,.12); }

.woocommerce ul.products li.product img { border-radius: 8px; width: 130px !important; height: 130px !important; object-fit: contain; margin: 0 auto 12px !important; }

.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; font-weight: 600; color: #2C1810; padding: 0 0 10px !important; }

.woocommerce ul.products li.product .price { color: #8C1C13 !important; font-size: 16px !important; font-weight: 700; }

.woocommerce ul.products li.product .button,
.woocommerce .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button {
    background: #8C1C13 !important; color: #fff !important; border-radius: 6px !important;
    font-family: 'Noto Sans Thai', sans-serif !important; font-size: 13px !important; font-weight: 600 !important;
    padding: 8px 20px !important; border: none !important; transition: background .3s !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce .single_add_to_cart_button:hover { background: #6B1510 !important; }

/* Product single */
.woocommerce div.product .woocommerce-product-gallery { border-radius: 12px; overflow: hidden; }
.woocommerce div.product .product_title { font-size: 28px !important; font-weight: 700; color: #2C1810; }
.woocommerce div.product p.price { color: #8C1C13 !important; font-size: 26px !important; font-weight: 700; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 15px; line-height: 1.7; color: #555; }

/* Shop page title */
.woocommerce-products-header__title,
.woocommerce .woocommerce-breadcrumb { font-family: 'Noto Sans Thai', sans-serif; }

/* ===== VIDEO ARCHIVE ===== */
.video-archive-page {
    background: #FAF5EE;
    min-height: 60vh;
    padding-bottom: 64px;
}

.video-archive-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 48px 0;
}

.video-archive-title {
    font-size: 32px;
    font-weight: 800;
    color: #8C1C13;
    margin-bottom: 32px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .video-archive-inner { padding: 20px; }
}

.video-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 28px;
}

.video-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 0;
    background: #2C1810;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.video-card:hover .video-card-thumb img { transform: scale(1.04); }

.video-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.25s;
    background: rgba(0,0,0,0.15);
}

/* White card overlapping the bottom of the thumbnail, always visible */
.video-card-title-overlay {
    position: relative;
    z-index: 1;
    max-width: 90%;
    margin: -32px auto 0;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
    padding: 22px 16px;
    text-align: center;
}

.video-card-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #8C1C13;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.video-card-title-overlay p {
    margin: 0;
    color: #2C1810;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C1810, #8C1C13);
}

.video-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 48px;
    padding-bottom: 16px;
}

.video-page-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #D0C0B0;
    color: #2C1810;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.video-page-dot.active,
.video-page-dot:hover {
    background: #8C1C13;
    border-color: #8C1C13;
    color: #fff;
}

/* ===== VIDEO DETAIL ===== */
.video-detail-page {
    background: #FAF5EE;
}

.video-detail-wrap {
    background: #FAF5EE;
    padding: 48px 0 56px;
}

.video-detail-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 900px) {
    .video-detail-inner {
        grid-template-columns: 1fr;
        padding: 0 24px;
        gap: 28px;
    }
    .video-embed-col {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Left: embed */
.video-embed-col {}

.video-embed-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 0;
    overflow: hidden;
}

.video-embed-frame.is-short {
    aspect-ratio: 9/16;
    max-width: 100%;
    margin: 0;
}

.video-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-embed-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-cover-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0,0,0,0.2);
    transition: background 0.2s;
}

.video-cover-play:hover {
    background: rgba(0,0,0,0.35);
    color: #fff;
}

/* Right: info */
.video-info-col {}

.video-detail-title {
    font-size: 44px;
    font-weight: 800;
    color: #8C1C13;
    line-height: 1.25;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .video-detail-title { font-size: 26px; }
}

.video-detail-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0D0BC;
}

.video-detail-content {
    font-size: 15px;
    line-height: 1.85;
    color: #2C1810;
}

.video-detail-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #8C1C13;
    margin: 20px 0 10px;
}

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

.video-detail-content li { margin-bottom: 6px; }

/* Share buttons */
.video-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.video-share-label {
    font-size: 14px;
    color: #888;
    font-weight: 600;
}

.video-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

.video-share-btn:hover { opacity: 0.85; color: #fff; }
.video-share-line { background: #06C755; }
.video-share-fb   { background: #1877F2; }
.video-share-yt   { background: #FF0000; }

/* Related products in video page */
.video-related-products {
    background: #F4EDE2;
    padding: 56px 0;
}

.video-section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.video-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #8C1C13;
    margin-bottom: 32px;
    text-align: center;
}

.video-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Related videos */
.video-related-videos {
    background: #FAF5EE;
    padding: 56px 0 64px;
}

.video-grid-sm {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .video-products-grid { grid-template-columns: repeat(3, 1fr); }
    .video-grid-sm { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .video-section-inner { padding: 0 20px; }
    .video-products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .video-grid-sm { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Cart & Checkout */
.woocommerce-cart table.cart td, .woocommerce-cart table.cart th { font-family: 'Noto Sans Thai', sans-serif; }
.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout #order_review_heading { color: #8C1C13; font-weight: 700; }

/* Category filter */
.woocommerce .widget_product_categories ul li a { color: #2C1810; font-family: 'Noto Sans Thai', sans-serif; }
.woocommerce .widget_product_categories ul li a:hover { color: #8C1C13; }

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { color: #8C1C13; font-family: 'Noto Sans Thai', sans-serif; }

/* ===== BLOG ARCHIVE ===== */
.blog-archive-page {
    background: #FAF5EE;
    min-height: 60vh;
}

.blog-archive-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 48px 80px;
}

.blog-archive-title {
    font-size: 36px;
    font-weight: 800;
    color: #8C1C13;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-grid-sm {
    grid-template-columns: repeat(3, 1fr);
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #2C1810;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }

.blog-card-no-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #2C1810, #8C1C13);
}

.blog-card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 14px 18px;
    background: linear-gradient(transparent, rgba(20,6,4,0.85));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-card-title-overlay p {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BLOG DETAIL ===== */
.blog-detail-page {
    background: #FAF5EE;
}

.blog-detail-banner {
    width: 100%;
    margin-bottom: 32px;
}

.blog-detail-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-detail-wrap {
    padding: 48px 0 56px;
}

.blog-detail-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.blog-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: #8C1C13;
    line-height: 1.3;
    margin-bottom: 16px;
}

.blog-detail-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E0D0BC;
}

.blog-detail-content {
    font-size: 15px;
    line-height: 1.9;
    color: #2C1810;
}

.blog-detail-content h2,
.blog-detail-content h3 {
    font-weight: 700;
    color: #8C1C13;
    margin: 28px 0 12px;
}

.blog-detail-content h2 { font-size: 22px; }
.blog-detail-content h3 { font-size: 18px; }

.blog-detail-content p { margin-bottom: 16px; }

.blog-detail-content ul,
.blog-detail-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.blog-detail-content li { margin-bottom: 6px; }

/* Blog archive cards — natural image size, no forced ratio, no rounded corners */
.blog-archive-page .blog-card {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
}
.blog-archive-page .blog-card-thumb {
    border-radius: 0;
    aspect-ratio: unset;
    height: auto;
}
.blog-archive-page .blog-card-thumb img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: fill;
}

/* ===== CONTACT PAGE ===== */
.contact-page { background: #FAF5EE; }

.contact-hero {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}
.contact-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.contact-philosophy {
    background: #6B1B14;
    padding: 64px 24px;
    text-align: center;
}

.contact-philosophy-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-philosophy-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 32px;
}

.contact-philosophy-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.contact-philosophy-logos img {
    height: 90px;
    width: auto;
}

.contact-philosophy-text {
    color: #F5EAE0;
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
}

.contact-philosophy-text p {
    margin: 0 0 16px;
}

.contact-philosophy-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-philosophy-title { font-size: 22px; }
    .contact-philosophy-logos img { height: 64px; }
}

.contact-main { padding: 60px 0 80px; }

.contact-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-row--form {
    gap: 0;
    align-items: stretch;
}

.contact-row--form .contact-form-box {
    border-radius: 0;
}

.contact-row--form .contact-product-wrap {
    height: 100%;
    overflow: hidden;
}

.contact-row--form .contact-product-wrap img {
    height: 100%;
    object-fit: cover;
}

/* ── Info Box ── */
.contact-info-box { margin-bottom: 48px; }

.contact-company-name {
    font-size: 20px;
    font-weight: 800;
    color: #8C1C13;
    margin-bottom: 4px;
}

.contact-office-label {
    font-size: 15px;
    font-weight: 700;
    color: #2C1810;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #E0D0BC;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: #2C1810;
    line-height: 1.6;
}
.contact-info-list li a {
    color: inherit;
    text-decoration: none;
}
.contact-info-list li a:hover {
    color: #8C1C13;
    text-decoration: underline;
}
.contact-info-list li img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Form Box ── */
.contact-form-box {
    background: #F0E6D8;
    padding: 32px;
    border-radius: 12px;
}

.contact-form-title {
    font-size: 22px;
    font-weight: 800;
    color: #8C1C13;
    margin-bottom: 24px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2C1810;
}
.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D0C0B0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Noto Sans Thai', sans-serif;
    color: #2C1810;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #8C1C13;
}
.contact-form-group textarea { resize: vertical; }

.contact-form-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}
.contact-form-consent a { color: #8C1C13; }

.contact-submit {
    align-self: flex-start;
    padding: 12px 48px;
    background: #8C1C13;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Sans Thai', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-submit:hover { background: #6e1510; }

.contact-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
}
.contact-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-map-wrap img,
.contact-product-wrap img {
    width: 100%;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-map-wrap {
    height: 320px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== BLOG SLIDER ===== */
.nj-blog-slider { width: 100%; }

.nj-blog-slider__title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    color: #2C1810;
    margin: 0 0 20px;
}

.nj-blog-slider__wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

.nj-blog-slider__viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.nj-blog-slider__track {
    display: flex;
    gap: 20px;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.nj-blog-slider__item {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
}

/* card */
.nj-blog-slide-card {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: #2C1810;
}
.nj-blog-slide-card img {
    display: block;
    width: 100%;
    height: auto;
}
.nj-blog-slide-card__no-img {
    width: 100%;
    padding-top: 66.67%;
    background: #3a2010;
}
.nj-blog-slide-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 16px 16px;
    background: linear-gradient(to top, rgba(44,24,16,0.85) 0%, transparent 100%);
}
.nj-blog-slide-card__overlay p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
}
.nj-blog-slide-card:hover img { opacity: 0.88; }

/* nav buttons */
.nj-blog-slider__btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #8C1C13;
    background: #fff;
    color: #8C1C13;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.nj-blog-slider__btn:hover { background: #8C1C13; color: #fff; }
.nj-blog-slider__prev { margin-right: 12px; }
.nj-blog-slider__next { margin-left: 12px; }

@media (max-width: 1023px) {
    .nj-blog-slider__item { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 639px) {
    .nj-blog-slider__item { flex: 0 0 100%; }

    .nj-blog-slider__wrap {
        position: relative;
    }

    .nj-blog-slider__btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        font-size: 22px;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
    .nj-blog-slider__prev { left: 8px; }
    .nj-blog-slider__next { right: 8px; }
}

/* ===== SUSTAINABILITY ARCHIVE ===== */
.sustain-archive-page {
    background: #FAF5EE;
    padding: 56px 0 72px;
    min-height: 60vh;
}

.sustain-archive-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.sustain-archive-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    color: #8C1C13;
    margin: 0 0 36px;
}

/* detail page reuses blog-detail-page styles */
.sustain-detail-page {
    background: #FAF5EE;
}

/* ===== 404 PAGE ===== */
.notfound-page {
    width: 100%;
}

.notfound-banner {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
}

.notfound-banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 420px;
}

.notfound-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notfound-content {
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.notfound-code {
    font-size: clamp(72px, 12vw, 120px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 8px;
}

.notfound-msg {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 28px;
}

.notfound-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #8C1C13;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s;
    font-family: 'Noto Sans Thai', sans-serif;
}
.notfound-btn:hover { background: #6e1510; color: #fff; }

/* ===== LOGIN / REGISTER PAGE ===== */
.auth-page {
    background: #FAF5EE;
    padding: 64px 0 80px;
    min-height: 60vh;
}

.auth-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.auth-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 2px 16px rgba(44,24,16,0.07);
}

.auth-box-title {
    font-size: 22px;
    font-weight: 800;
    color: #8C1C13;
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #F0E6D8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2C1810;
}

.auth-form-group .required { color: #8C1C13; }

.auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D8C8B8;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Noto Sans Thai', sans-serif;
    color: #2C1810;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.auth-input:focus {
    outline: none;
    border-color: #8C1C13;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: #8C1C13;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Sans Thai', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.auth-btn:hover { background: #6e1510; }

.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-top: -4px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-forgot {
    color: #8C1C13;
    text-decoration: none;
    font-size: 13px;
}
.auth-forgot:hover { text-decoration: underline; }

.auth-register-desc {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F0E6D8;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* WooCommerce notice overrides inside auth-page */
.auth-page .woocommerce-error,
.auth-page .woocommerce-message,
.auth-page .woocommerce-info {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    list-style: none;
}
.auth-page .woocommerce-error { background: #fdecea; color: #c62828; border-left: 4px solid #c62828; }
.auth-page .woocommerce-message { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }

@media (max-width: 860px) {
    .auth-inner { grid-template-columns: 1fr; padding: 0 24px; }
    .auth-box { padding: 28px 22px; }
}

/* Contact page responsive */
@media (max-width: 900px) {
    .contact-inner {
        gap: 40px;
        padding: 0 24px;
    }
    .contact-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
@media (max-width: 600px) {
    .contact-form-row { grid-template-columns: 1fr; }
    .contact-main { padding: 40px 0 60px; }
}

/* ===== ELEMENTOR OVERRIDES ===== */
/* Remove default Elementor section padding */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

/* Make hero image stretch full height */
.elementor-column .elementor-widget-html > .elementor-widget-container {
    line-height: 0;
}

/* Fix Elementor content_position:middle → flex center (Elementor uses non-standard value) */
.elementor-column.elementor-v-align-middle > .elementor-widget-wrap,
.elementor-column[data-settings*='"content_position":"middle"'] > .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero section: fullwide 50/50 two-col */
.elementor-section-stretched .elementor-col-50 > .elementor-widget-wrap {
    height: 100%;
}

/* Product & Blog card hover */
.elementor-widget-html div[style*="background:#fff"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(140,28,19,0.14) !important;
    transition: all 0.3s ease;
}

/* Remove Elementor default body padding */
.elementor-page .elementor-section-wrap,
.elementor-page #content {
    padding: 0 !important;
}

/* Fix Google Fonts loading */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;600;700;800&display=swap');

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .shop-product-grid { grid-template-columns: repeat(2, 1fr); }
    .pdp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 28px; }
    .hero-image-wrap img.hero-main-img { border-radius: 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px 40px; }
    .footer-company-top { flex-direction: column-reverse; }
    .footer-logo-wrap img { width: 70px; height: 70px; }
    .shop-body { grid-template-columns: 1fr; padding: 20px; }
    .shop-card-btn { padding: 10px 20px; }
    .shop-sidebar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .shop-cat-heading { margin-bottom: 0; margin-right: 8px; border-bottom: none; }
    .shop-cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
    .shop-cat-list li { border-bottom: none; }
    .shop-cat-list li a { padding: 6px 12px; border-radius: 20px; border: 1px solid #ccc; font-size: 13px; }
    .shop-product-grid { grid-template-columns: repeat(2, 1fr); }
    .pdp-wrap { grid-template-columns: 1fr; padding: 20px; }
    .pdp-info-col { padding: 32px 20px; }
    .pdp-cta { grid-template-columns: 1fr; }
    .pdp-cta-img { min-height: 200px; }
    .pdp-contact-content { padding: 20px; }
    .pdp-related-grid { grid-template-columns: repeat(2, 1fr); }
    .pdp-related-inner { padding: 0 20px; }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-account-btn {
        display: none;
    }

    .site-header .container {
        padding: 0 10px;
    }

    .header-inner {
        gap: 8px;
    }

    .header-left {
        gap: 4px;
    }

    .site-logo img {
        height: 34px;
    }

    .header-actions {
        gap: 0;
    }

    .lang-switch {
        margin-left: 2px;
        gap: 2px;
    }

    .lang-item img {
        width: 20px;
        height: 20px;
    }

    .main-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background-color: var(--red-primary);
        box-shadow: 0 8px 16px rgba(0,0,0,0.25);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 8px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 24px; }

    .site-header .container {
        padding: 0 6px;
    }

    .site-logo img {
        height: 28px;
    }

    .header-icon {
        width: 30px;
        height: 30px;
    }

    .header-icon img {
        width: 18px;
        height: 18px;
    }

    .lang-item img {
        width: 18px;
        height: 18px;
    }
}

/* =================================================================
   Cart Drawer
   ================================================================= */
.cdr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.cdr-overlay.cdr-open {
    opacity: 1;
    visibility: visible;
}
.cdr {
    position: fixed;
    top: 0; right: 0;
    width: 380px;
    max-width: 100vw;
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.cdr.cdr-open { transform: translateX(0); }

/* Head */
.cdr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.cdr-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}
.cdr-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #555;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background .15s;
}
.cdr-close:hover { background: #f3f3f3; color: #111; }

/* Body — scrollable items */
.cdr-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}
.cdr-empty {
    text-align: center;
    color: #888;
    margin-top: 48px;
    font-size: 15px;
}

/* Cart item */
.cdi {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cdi:last-child { border-bottom: none; }
.cdi-img {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    display: block;
}
.cdi-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.cdi-info {
    flex: 1;
    min-width: 0;
}
.cdi-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    line-height: 1.35;
    margin-bottom: 4px;
}
.cdi-name:hover { color: #c0392b; }
.cdi-price {
    font-size: 14px;
    font-weight: 600;
    color: #c0392b;
}
.cdi-qty {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.cdi-rm {
    flex-shrink: 0;
    font-size: 18px;
    color: #bbb;
    text-decoration: none;
    line-height: 1;
    padding: 2px 4px;
    transition: color .15s;
    align-self: flex-start;
    margin-top: 2px;
}
.cdi-rm:hover { color: #c0392b; }

/* Footer */
.cdr-foot {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.cdr-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #1a1a1a;
}
#cdrTotal { color: #c0392b; }
.cdr-btn {
    display: block;
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
    margin-bottom: 8px;
}
.cdr-btn:last-child { margin-bottom: 0; }
.cdr-btn:hover { opacity: .85; }
.cdr-btn-cart {
    border: 2px solid #c0392b;
    color: #c0392b;
    background: #fff;
}
.cdr-btn-checkout {
    background: #c0392b;
    color: #fff;
    border: 2px solid #c0392b;
}

@media (max-width: 480px) {
    .cdr { width: 100vw; }
}

/* =================================================================
   Cart Page — full layout
   ================================================================= */

/* Page wrapper */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 48px auto;
    padding: 0 24px;
}

/* Page title */
.woocommerce-cart h1.entry-title,
.woocommerce-cart .woocommerce-cart-form + h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* ── Cart table ── */
.woocommerce-cart table.shop_table {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 32px;
    width: 100%;
}

.woocommerce-cart table.shop_table thead th {
    background: #8C1C13;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 14px 20px;
    border: none;
    text-transform: uppercase;
}

.woocommerce-cart table.shop_table tbody tr {
    border-bottom: 1px solid #f3f3f3;
    transition: background .15s;
}
.woocommerce-cart table.shop_table tbody tr:hover { background: #fafafa; }
.woocommerce-cart table.shop_table tbody tr:last-child { border-bottom: none; }

.woocommerce-cart table.shop_table td {
    padding: 18px 20px;
    vertical-align: middle;
    border: none;
    font-size: 15px;
    color: #1a1a1a;
}

/* Product image */
.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Product name */
.woocommerce-cart table.shop_table td.product-name a {
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
}
.woocommerce-cart table.shop_table td.product-name a:hover { color: #8C1C13; }

/* Price & subtotal */
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
    font-weight: 600;
    color: #8C1C13;
}

/* Quantity input */
.woocommerce-cart table.shop_table td.product-quantity .qty {
    width: 64px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    background: #fff;
}

/* Remove button */
.woocommerce-cart table.shop_table td.product-remove a.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #999 !important;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
    background: #8C1C13;
    color: #fff !important;
}

/* Update cart row */
.woocommerce-cart table.shop_table td.actions {
    background: #fafafa;
    padding: 16px 20px;
}
.woocommerce-cart table.shop_table td.actions .coupon input.input-text {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 180px;
    margin-right: 8px;
}
.woocommerce-cart table.shop_table td.actions .coupon .button,
.woocommerce-cart table.shop_table td.actions [name="update_cart"] {
    height: 42px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #8C1C13;
    background: #fff;
    color: #8C1C13;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.woocommerce-cart table.shop_table td.actions .coupon .button:hover,
.woocommerce-cart table.shop_table td.actions [name="update_cart"]:hover {
    background: #8C1C13;
    color: #fff;
}

/* ── Cart collaterals (totals) ── */
.woocommerce-cart .cart-collaterals {
    display: flex;
    justify-content: flex-end;
}
.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 28px;
}
.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a !important;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.woocommerce-cart .cart_totals table {
    width: 100%;
    border: none;
    border-collapse: collapse;
}
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #f3f3f3;
    font-size: 14px;
    vertical-align: middle;
}
.woocommerce-cart .cart_totals table th { color: #666; font-weight: 500; }
.woocommerce-cart .cart_totals table td { color: #1a1a1a; font-weight: 600; text-align: right; }
.woocommerce-cart .cart_totals table tr.order-total th,
.woocommerce-cart .cart_totals table tr.order-total td {
    font-size: 17px;
    font-weight: 700;
    color: #8C1C13;
    border-bottom: none;
    padding-top: 14px;
}

/* Checkout button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    padding: 14px;
    background: #8C1C13;
    color: #fff !important;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 20px;
    transition: background .15s, opacity .15s;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #6B1510;
}

/* Empty cart */
.woocommerce-cart .woocommerce-info {
    background: #fff;
    border-left: 4px solid #8C1C13;
    border-radius: 8px;
    padding: 20px 24px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .woocommerce-cart .woocommerce { margin: 24px auto; }
    .woocommerce-cart table.shop_table thead { display: none; }
    .woocommerce-cart table.shop_table,
    .woocommerce-cart table.shop_table tbody,
    .woocommerce-cart table.shop_table tr {
        display: block;
        width: 100%;
    }
    .woocommerce-cart table.shop_table td { display: block; width: auto; padding: 10px 16px; }
    .woocommerce-cart .cart-collaterals .cart_totals { max-width: 100%; }
}

/* Woo page wrapper */
.woo-page-wrap {
    background: #f8f5f0;
    min-height: 60vh;
    padding: 48px 0 64px;
}
.woo-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Fix WooCommerce cart 2-col layout inside container */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.woocommerce-cart .woocommerce::after,
.woocommerce-cart .woocommerce::before { display: none; }

/* Cart form + totals — side by side */
.woocommerce-cart .woocommerce-cart-form { width: 100%; }
.woocommerce-cart .cart-collaterals {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    float: none !important;
}
.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
    max-width: 420px;
}

/* =================================================================
   Cart & Checkout (WooCommerce Blocks) — brand colors only,
   structure/layout is the default block markup, untouched.
   ================================================================= */

/* Cart */
.wc-block-cart-items__header-product,
.wc-block-cart-items__header-total {
    color: #8C1C13;
}
.wc-block-components-product-name {
    color: #2C1810 !important;
}
.wc-block-components-product-name:hover {
    color: #8C1C13 !important;
}
.wc-block-cart-item__remove-link.wc-block-cart-item__remove-link {
    color: #8C1C13;
}
.wc-block-components-quantity-selector {
    border-color: #D0C0B0;
}
.wc-block-components-quantity-selector__button:hover {
    color: #8C1C13;
}
.wc-block-cart__submit-button.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button.wc-block-components-checkout-place-order-button {
    background-color: #8C1C13;
    color: #fff;
}
.wc-block-cart__submit-button.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button.wc-block-components-checkout-place-order-button:hover {
    background-color: #6B1510;
    color: #fff;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    color: #8C1C13;
}
.wc-block-cart .wc-block-components-panel__button,
.wc-block-cart h2,
.wc-block-cart h3 {
    color: #8C1C13;
}

/* Cart line items: keep a small product thumbnail, but hide the
   short-description text that WooCommerce Blocks renders under the name */
.wc-block-cart-item__image {
    max-width: 64px;
}
.wc-block-cart-item__image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}
.wc-block-components-product-metadata {
    display: none !important;
}

/* Checkout order-summary items: same — small thumbnail, no description */
.wc-block-components-order-summary-item__image {
    max-width: 48px;
}
.wc-block-components-order-summary-item__image img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}
.wc-block-components-order-summary-item__description {
    display: none !important;
}

/* Checkout */
.wc-block-checkout__form h2,
.wc-block-checkout__sidebar h2,
.wc-block-checkout .wc-block-components-checkout-step__title {
    color: #8C1C13;
}
.wc-block-checkout .wc-block-components-checkout-step__description a,
.wc-block-checkout a {
    color: #8C1C13;
}
.wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    color: #8C1C13;
}

/* Constrain width — the blocks default to full-bleed (alignwide) */
.wp-block-woocommerce-checkout.alignwide,
.wp-block-woocommerce-cart.alignwide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 56px;
    box-sizing: border-box;
}

/* Even top/bottom spacing around each input field */
.wc-block-components-text-input,
.wc-block-components-address-form__country,
.wc-block-components-address-form__state {
    margin-top: 0;
    margin-bottom: 24px;
}

/* =================================================================
   Order Received (Thank You) page — classic template
   ================================================================= */
.woocommerce-order-received .woocommerce {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.woocommerce-order-received .woocommerce-notice.woocommerce-thankyou-order-received {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F4EDE2;
    border-left: 5px solid #8C1C13;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 32px;
    font-size: 17px;
    font-weight: 700;
    color: #2C1810;
}
.woocommerce-order-received .woocommerce-notice.woocommerce-thankyou-order-received::before {
    content: '\2713';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8C1C13;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-order-received ul.woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 40px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    gap: 24px;
}
.woocommerce-order-received ul.woocommerce-order-overview li {
    flex: 1 1 auto;
    min-width: 140px;
    font-size: 13px;
    color: #888;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce-order-received ul.woocommerce-order-overview li strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #8C1C13;
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
    font-size: 20px;
    font-weight: 800;
    color: #8C1C13;
    margin: 0 0 16px;
}

.woocommerce-order-received table.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}
.woocommerce-order-received table.woocommerce-table--order-details th,
.woocommerce-order-received table.woocommerce-table--order-details td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    text-align: left;
}
.woocommerce-order-received table.woocommerce-table--order-details thead th {
    background: #8C1C13;
    color: #fff;
    font-weight: 600;
}
.woocommerce-order-received table.woocommerce-table--order-details tfoot th,
.woocommerce-order-received table.woocommerce-table--order-details tfoot td {
    font-weight: 700;
    color: #2C1810;
}
.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td {
    color: #8C1C13;
    font-size: 16px;
    border-bottom: none;
}

.woocommerce-order-received .woocommerce-customer-details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
}
.woocommerce-order-received .woocommerce-customer-details address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: #2C1810;
    border: none;
    padding: 0;
}
.woocommerce-order-received .woocommerce-customer-details--email,
.woocommerce-order-received .woocommerce-customer-details--phone {
    font-size: 14px;
    color: #555;
}

@media (max-width: 640px) {
    .woocommerce-order-received .woocommerce { padding: 32px 20px 48px; }
    .woocommerce-order-received ul.woocommerce-order-overview { gap: 16px 32px; }
}

/* ===== CATALOG PAGE ===== */
.catalog-page {
    background: #FAF5EE;
    min-height: 60vh;
    padding-bottom: 64px;
}

.catalog-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 48px 0;
}

.catalog-title {
    font-size: 32px;
    font-weight: 800;
    color: #8C1C13;
    margin-bottom: 16px;
}

.catalog-intro {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 640px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: 32px;
}

.catalog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white, #fff);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.catalog-card img {
    display: block;
    width: 100%;
    aspect-ratio: 300 / 424;
    object-fit: cover;
}

.catalog-card-label {
    display: block;
    text-align: center;
    padding: 14px 12px;
    font-weight: 700;
    color: #8C1C13;
}

@media (max-width: 768px) {
    .catalog-inner { padding: 20px; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
