:root {
    --sod-primary: #2563EB;
    --sod-text: #171717;
    --sod-text-light: #6B7280;
    --sod-border: #E5E7EB;
    --sod-bg: #FFFFFF;
    --sod-danger: #E4232E;
    --sod-radius: 8px;
}

html, body { max-width: 100%; }

body, .site-main, .content-area {
    background: var(--sod-bg);
    color: var(--sod-text);
}

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

.sod-section {
    padding: 32px 0;
}

.sod-section h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--sod-text);
}

.sod-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sod-section-header h2 { margin-bottom: 0; }

/* Promo tiles */
.sod-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sod-promo-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--sod-border);
    border-radius: var(--sod-radius);
    padding: 16px;
    color: var(--sod-text);
    text-decoration: none;
}

.sod-promo-tile strong { font-size: 0.85rem; }
.sod-promo-tile span { font-size: 0.75rem; color: var(--sod-primary); font-weight: 600; }

/* Deal of the day */
.sod-deal-card {
    background: #fff;
    border: 1px solid var(--sod-border);
    border-radius: var(--sod-radius);
    overflow: hidden;
}

.sod-deal-card__label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 16px 0;
    font-weight: 700;
}

.sod-deal-card__save {
    background: var(--sod-primary);
    color: #fff;
    border-radius: 999px;
    width: 56px; height: 56px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 0.65rem; text-align: center;
}

.sod-deal-card__body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px 20px;
}

.sod-deal-card__image { flex-shrink: 0; width: 120px; }
.sod-deal-card__image img { width: 100%; height: auto; border-radius: 6px; }
.sod-deal-card__info h3 { font-size: 1rem; margin: 0 0 4px; }
.sod-deal-card__price { font-size: 1.1rem; font-weight: 700; color: var(--sod-primary); }

/* On Sale countdown */
.sod-countdown {
    font-size: 0.82rem;
    color: var(--sod-text-light);
    background: #F3F4F6;
    border-radius: 999px;
    padding: 6px 14px;
}

.sod-countdown__time { font-weight: 700; color: var(--sod-text); }

/* Tabs */
.sod-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid var(--sod-border);
    margin-bottom: 20px;
}

.sod-tab {
    background: none;
    border: none;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sod-text-light);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.sod-tab.is-active { color: var(--sod-primary); border-bottom-color: var(--sod-primary); }
.sod-panel { display: none; }
.sod-panel.is-active { display: block; }

/* Product grid overrides (Storefront default ul.products) */
.sod-product-grid.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sod-product-grid.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}

.sod-compare-link a { font-size: 0.75rem; color: var(--sod-text-light); }
/* Style YITH's own native compare button (we no longer add a duplicate one) */
ul.products li.product .compare.button {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--sod-text-light);
    background: none;
    border: none;
    padding: 4px 0;
    text-decoration: underline;
}

ul.products li.product .compare.button:hover { color: var(--sod-primary); }

/* Keep each product card self-contained as a column */
.sod-product-grid.products li.product,
.sod-product-slider.products li.product {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.sod-card-media,
.sod-card-image-link {
    width: 100%;
}

.sod-product-grid.products,
.sod-product-slider.products {
    align-items: start;
}

/* Hide ugly native horizontal-scroll arrows/scrollbars on tabs and category row */
.sod-tabs,
.sod-cat-circles {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sod-tabs::-webkit-scrollbar,
.sod-cat-circles::-webkit-scrollbar {
    display: none;
    height: 0;
}

/* Reasonable site title size on mobile */
#masthead {
    margin-bottom: 16px !important;
}

.site-title.beta,
.site-branding .site-title a {
    font-size: 1.6rem !important;
}

@media (max-width: 480px) {
    .site-title.beta,
    .site-branding .site-title a {
        font-size: 1.3rem !important;
    }
}

/* Category tiles — rectangular image cards, 2 per row */
.sod-cat-marquee-wrap {
    margin-top: 8px;
}

.sod-cat-tiles.sod-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
}

.sod-cat-tiles.sod-marquee-track .sod-cat-tile {
    flex: 0 0 auto;
    width: 150px;
}

.sod-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #F9FAFB;
    border-radius: var(--sod-radius);
    padding: 14px 10px;
    text-decoration: none;
    color: var(--sod-text);
    text-align: center;
}

.sod-cat-tile__img {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #fff;
}

.sod-cat-tile__name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Product slider */
.sod-slider-nav { display: flex; gap: 8px; }

.sod-slider-arrow {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--sod-border);
    background: #fff;
    cursor: pointer;
}

.sod-slider-arrow:hover { background: var(--sod-primary); color: #fff; border-color: var(--sod-primary); }

.sod-product-slider.products {
    display: flex !important;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}

.sod-product-slider.products li.product {
    flex: 0 0 auto !important;
    width: 200px !important;
    margin: 0 !important;
    float: none !important;
}

@media (max-width: 768px) {
    .sod-product-grid.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .sod-product-slider.products li.product { width: 150px !important; }
}
/* ---------- Footer ---------- */
.sod-footer {
    background: #F9FAFB;
    border-top: 1px solid var(--sod-border);
    margin-top: 32px;
}

.sod-footer-accordion {
    border-bottom: 1px solid var(--sod-border);
}

.sod-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sod-text);
    cursor: pointer;
}

.sod-accordion-chevron {
    transition: transform 0.2s;
}

.sod-accordion-toggle.is-open .sod-accordion-chevron {
    transform: rotate(180deg);
}

.sod-accordion-panel {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 16px;
}

.sod-accordion-panel.is-open {
    display: flex;
}

.sod-accordion-panel a {
    color: var(--sod-text-light);
    font-size: 0.9rem;
}

.sod-accordion-panel a:hover {
    color: var(--sod-primary);
}

.sod-footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
}

.sod-footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--sod-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sod-text);
}

.sod-footer-socials a:hover {
    background: var(--sod-primary);
    color: #fff;
    border-color: var(--sod-primary);
}

.sod-footer-contact {
    text-align: center;
    padding-bottom: 16px;
}

.sod-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sod-footer-icon {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.sod-footer-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--sod-primary);
}

.sod-footer-contact p {
    font-size: 0.85rem;
    color: var(--sod-text-light);
    margin: 0;
}

.sod-footer-contact a {
    color: var(--sod-text);
    font-weight: 600;
}

.sod-footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--sod-text-light);
    padding: 16px 0;
    border-top: 1px solid var(--sod-border);
}
/* Product titles use the brand accent color, matching reference */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title a,
ul.products li.product h2 a {
    color: var(--sod-primary) !important;
    font-size: 0.95rem;
    font-weight: 700;
}

ul.products li.product a.woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title {
    text-decoration: underline;
}
/* ---------- New Arrivals — self-scrolling marquee ---------- */
.sod-new-arrivals { overflow: hidden; }

.sod-marquee-wrap {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.sod-marquee-wrap::-webkit-scrollbar {
    display: none;
}

.sod-marquee-track.products {
    display: flex !important;
    gap: 16px;
    width: max-content;
}

.sod-marquee-track.products li.product {
    flex: 0 0 auto !important;
    width: 190px !important;
    margin: 0 !important;
    float: none !important;
}

@keyframes sod-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .sod-marquee-track.products {
        animation: none;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .sod-marquee-track.products li.product {
        width: 145px !important;
    }
}
/* ---------- See More Products button ---------- */
.sod-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.sod-load-more-btn {
    background: var(--sod-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 220px;
}

.sod-load-more-btn:hover { opacity: 0.9; }
.sod-load-more-btn:disabled { opacity: 0.6; cursor: default; }
/* ---------- Product card image + quick-action pill (cart + wishlist) ---------- */
.sod-card-media {
    position: relative;
    display: block;
}

.sod-card-image-link {
    display: block;
}

.sod-card-image-link img {
    width: 100%;
    height: auto;
    display: block;
}

.sod-card-quick-actions {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    padding: 10px 20px;
    gap: 34px;
    z-index: 2;
}

.sod-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--sod-text);
    background: none;
    border: none;
    padding: 0;
}

.sod-quick-btn:hover { color: var(--sod-primary); }

.sod-quick-btn--wishlist {
    position: relative;
}

.sod-quick-btn--wishlist .yith-add-to-wishlist-button-block,
.sod-quick-btn--wishlist .yith-wcwl-add-to-wishlist-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.sod-quick-btn--wishlist .yith-wcwl-icon {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.sod-quick-btn--wishlist .yith-wcwl-add-to-wishlist-button__label {
    display: none !important;
}

@media (max-width: 480px) {
    .sod-card-quick-actions {
        padding: 8px 16px;
        gap: 26px;
    }
    .sod-quick-btn,
    .sod-quick-btn--wishlist .yith-add-to-wishlist-button-block {
        width: 22px;
        height: 22px;
    }
}
/* ---------- Fixes: category tile overflow + product image space reservation ---------- */
/* marker: sod-fix-overflow-and-lazyload */

.sod-cat-tiles {
    min-width: 0;
}

.sod-cat-tile {
    min-width: 0;
    overflow: hidden;
}

.sod-cat-tile__name {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.sod-product-grid.products,
.sod-marquee-track.products,
.sod-product-slider.products {
    min-width: 0;
}

.sod-product-grid.products li.product,
.sod-marquee-track.products li.product,
.sod-product-slider.products li.product {
    min-width: 0;
}

/* Reserve image space immediately so lazy-loaded images never leave a blank
   gap while they're still loading — the box is sized before the image arrives. */
.sod-card-image-link {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #F3F4F6;
}

.sod-card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 480px) {
    .sod-cat-tile {
        padding: 8px;
        gap: 8px;
    }
    .sod-cat-tile__img {
        width: 48px;
        height: 48px;
    }
    .sod-cat-tile__name {
        font-size: 0.78rem;
    }
}
/* ---------- Mobile: less side padding, bigger product images ---------- */
/* marker: sod-fix-mobile-padding */
@media (max-width: 480px) {
    .sod-container {
        padding: 0 8px;
    }
    .sod-product-grid.products {
        gap: 8px;
    }
}
/* ---------- Fix: WooCommerce's old float-clearfix pseudo-elements were being ---------- */
/* treated as real (invisible) grid items once we switched .products to CSS Grid, */
/* silently occupying the first cell and pushing every real product over by one. */
/* marker: sod-fix-clearfix-grid-item */
.sod-product-grid.products::before,
.sod-product-grid.products::after,
.sod-marquee-track.products::before,
.sod-marquee-track.products::after,
.sod-product-slider.products::before,
.sod-product-slider.products::after {
    content: none !important;
    display: none !important;
}
/* ---------- Custom Header ---------- */
#masthead.sod-header {
    background: #fff;
    border-bottom: 1px solid var(--sod-border);
    padding: 12px 16px 16px;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.sod-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sod-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    flex-shrink: 0;
}

.sod-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sod-text);
}

.sod-logo-spot {
    flex: 1;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sod-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.sod-site-icon {
    height: 34px;
    width: 34px;
    flex-shrink: 0;
    object-fit: contain;
}

.sod-site-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--sod-text);
    white-space: nowrap;
}

.sod-header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sod-header-icon {
    position: relative;
    color: var(--sod-text);
    display: flex;
}

.sod-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--sod-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sod-search-form {
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    border: 2px solid var(--sod-primary);
    border-radius: 999px;
    height: 42px;
    box-sizing: border-box;
    padding: 0 4px 0 18px;
    gap: 8px;
}

.sod-search-input,
.sod-search-input[type="search"],
.sod-search-input[type="text"] {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 0.95rem;
    background: transparent !important;
    background-color: transparent !important;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

.sod-search-submit {
    background: none;
    border: none;
    color: var(--sod-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
}

.sod-category-select {
    width: 100%;
    margin-top: 4px;
    height: 42px;
    box-sizing: border-box;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--sod-border);
    background: #F9FAFB;
    font-size: 0.9rem;
    color: var(--sod-text);
}

/* Desktop only — tighter header, smaller search bars, more room for products below. Mobile (below 769px) is untouched. */
@media (min-width: 769px) {
    #masthead.sod-header {
        padding-top: 6px;
        padding-bottom: 8px;
    }

    .sod-header-top {
        margin-bottom: 8px;
    }

    .sod-search-form,
    .sod-category-select {
        height: 34px;
    }

    .sod-search-input,
    .sod-search-input[type="search"],
    .sod-search-input[type="text"] {
        font-size: 0.85rem;
    }

    .sod-search-submit {
        width: 26px;
        height: 26px;
    }

    .sod-category-select {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}

/* Mobile slide-out menu */
.sod-mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.15);
    transition: left 0.25s ease;
    z-index: 999;
    padding: 24px 20px;
}

.sod-mobile-menu.is-open {
    left: 0;
}

.sod-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sod-mobile-nav a {
    color: var(--sod-text);
    font-size: 1rem;
    font-weight: 600;
}

.sod-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    display: none;
}

.sod-menu-backdrop.is-open {
    display: block;
}
/* ---------- Mobile menu: category accordion ---------- */
.sod-mobile-menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sod-menu-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sod-text);
    padding: 4px 0 12px;
}

.sod-menu-plain-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--sod-border);
    color: var(--sod-text);
    font-size: 0.95rem;
}

.sod-menu-cat {
    border-bottom: 1px solid var(--sod-border);
}

.sod-menu-cat__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--sod-text);
    text-align: left;
    cursor: pointer;
}

.sod-menu-cat__toggle--link {
    text-decoration: none;
    display: block;
}

.sod-menu-cat__chevron {
    font-size: 0.7rem;
    color: var(--sod-text-light);
    transition: transform 0.2s;
}

.sod-menu-cat.is-open .sod-menu-cat__chevron {
    transform: rotate(180deg);
}

.sod-menu-cat__children {
    display: none;
    flex-direction: column;
    padding: 0 0 10px 14px;
    gap: 8px;
}

.sod-menu-cat.is-open .sod-menu-cat__children {
    display: flex;
}

.sod-menu-cat__children a {
    font-size: 0.88rem;
    color: var(--sod-text-light);
}

.sod-menu-cat__all {
    font-weight: 600;
    color: var(--sod-primary) !important;
}

.sod-menu-login {
    font-weight: 700;
    margin-top: 6px;
}
/* ---------- Mobile menu: search box (replaces old "Home" link) ---------- */
.sod-menu-search-form {
    display: flex;
    align-items: center;
    border: 2px solid var(--sod-primary);
    border-radius: 999px;
    padding: 4px 4px 4px 14px;
    gap: 6px;
    margin-bottom: 14px;
}

.sod-menu-search-input,
.sod-menu-search-input[type="search"] {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 0.9rem;
    min-width: 0;
}

.sod-menu-search-submit {
    background: none;
    border: none;
    color: var(--sod-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
}
#page, body {
    overflow: visible !important;
}

/* ---------- Tighter side spacing on mobile/tablet, matching reference ---------- */
/* marker: sod-tighten-container-padding */
@media (max-width: 768px) {
    .col-full {
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .col-full {
        margin-left: 8px !important;
        margin-right: 8px !important;
    }
}

/* Native WooCommerce shop/category grid (Storefront's default, not our custom homepage grid) */
@media (max-width: 768px) {
    ul.products:not(.sod-product-grid):not(.sod-marquee-track) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 0 !important;
        min-width: 0;
    }
    ul.products:not(.sod-product-grid):not(.sod-marquee-track) li.product {
        width: auto !important;
        margin: 0 !important;
        float: none !important;
        min-width: 0;
    }
    ul.products:not(.sod-product-grid):not(.sod-marquee-track)::before,
    ul.products:not(.sod-product-grid):not(.sod-marquee-track)::after {
        content: none !important;
        display: none !important;
    }
}
/* ---------- Small welcome banner with subtle Ghanaian-pattern background ---------- */
.sod-welcome-banner {
    padding: 14px 0;
}

.sod-welcome-banner__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sod-border);
    border-radius: 14px;
    padding: 14px;
    overflow: hidden;
    isolation: isolate;
    background-image: url('/wp-content/themes/storefront-child/assets/images/kente-pattern.svg');
    background-repeat: repeat;
    background-size: 110px 110px;
}

.sod-welcome-banner__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    padding: 22px 26px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sod-welcome-banner__headline {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1C1410;
    text-align: center;
    max-width: 680px;
    letter-spacing: -0.01em;
}

.sod-welcome-banner__content p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--sod-text);
    text-align: center;
    max-width: 620px;
    opacity: 0.85;
}

.sod-welcome-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sod-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 22px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.sod-welcome-banner__btn:hover {
    opacity: 0.9;
}
/* ---------- Fix: .sod-container padding was stacking with .col-full's ---------- */
/* margin (they're nested), compounding into more side-space than intended. */
/* marker: sod-fix-nested-container-padding */
@media (max-width: 768px) {
    .sod-container {
        padding: 0 6px;
    }
}

@media (max-width: 480px) {
    .sod-container {
        padding: 0 4px;
    }
}

/* Tighter spacing around Top Categories specifically */
.sod-top-categories {
    padding: 12px 0;
}

/* ---------- Single product page: Add to cart button ---------- */
button.single_add_to_cart_button,
a.single_add_to_cart_button {
    background: var(--sod-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

button.single_add_to_cart_button::before,
a.single_add_to_cart_button::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

button.single_add_to_cart_button:hover,
a.single_add_to_cart_button:hover {
    opacity: 0.9;
}

.quantity .qty {
    border-radius: 999px !important;
    border: 1px solid var(--sod-border) !important;
    padding: 12px 18px !important;
    text-align: center;
}
/* ---------- Single product: Add to Wishlist under the gallery ---------- */
.sod-single-wishlist {
    margin-top: 14px;
}

.sod-single-wishlist .yith-wcwl-add-to-wishlist-button-block {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sod-single-wishlist .yith-wcwl-icon {
    width: 20px !important;
    height: 20px !important;
}

.sod-single-wishlist .yith-wcwl-add-to-wishlist-button__label {
    font-size: 0.95rem;
    color: var(--sod-text-light);
}
/* ---------- Live search suggestions dropdown ---------- */
.sod-header-search {
    position: relative;
}

.sod-live-search-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid var(--sod-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1100;
}

.sod-live-search-results.is-open {
    display: block;
}

.sod-live-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--sod-border);
    text-decoration: none;
    color: var(--sod-text);
}

.sod-live-search-item:last-child {
    border-bottom: none;
}

.sod-live-search-item:hover {
    background: #F9FAFB;
}

.sod-live-search-item__img img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.sod-live-search-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sod-live-search-item__name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sod-live-search-item__price {
    font-size: 0.82rem;
    color: var(--sod-primary);
    font-weight: 700;
}

.sod-live-search-empty {
    padding: 14px;
    font-size: 0.85rem;
    color: var(--sod-text-light);
    text-align: center;
}
#sod-live-search-results-menu.is-open {
    position: static;
    margin-top: 8px;
    max-height: 240px;
    width: 100%;
}

/* ---------- Single product page: price colors ---------- */
.single-product .summary .price {
    font-size: 1.6rem;
}

.single-product .summary .price ins {
    text-decoration: none;
    color: var(--sod-danger);
    font-weight: 700;
}

.single-product .summary .price > .woocommerce-Price-amount,
.single-product .summary .price > .amount {
    color: var(--sod-danger);
    font-weight: 700;
}

.single-product .summary .price del {
    color: #171717;
    opacity: 1;
    font-size: 1.1rem;
    font-weight: 400;
    margin-left: 8px;
}
/* ---------- Single product gallery: smaller thumbnails, blue active indicator ---------- */
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 60px !important;
    margin-bottom: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border-bottom: 3px solid transparent;
    padding-bottom: 4px;
    opacity: 0.6;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
    border-bottom-color: var(--sod-primary);
}
/* ---------- Single product tabs: active tab uses the site's blue accent ---------- */
.woocommerce-tabs ul.tabs li.active a {
    color: var(--sod-primary) !important;
    border-bottom-color: var(--sod-primary) !important;
}
/* ---------- Fix: product tabs were sitting beside content (Storefront's ---------- */
/* default 2-column float layout), instead of stacked with content below. */
/* marker: sod-fix-tabs-layout */
woocommerce-tabs ul.tabs,
.woocommerce-tabs ul.tabs {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: none !important;
    border-bottom: 1px solid var(--sod-border) !important;
    gap: 24px;
}

.woocommerce-tabs ul.tabs li {
    display: inline-block !important;
    white-space: nowrap;
    border-bottom: none !important;
    flex-shrink: 0;
}

.woocommerce-tabs .panel {
    float: none !important;
    width: 100% !important;
    margin-top: 20px;
    margin-right: 0 !important;
}
/* ---------- Consistent round + blue buttons across cart, checkout, account ---------- */
/* marker: sod-round-blue-buttons */
.wc-proceed-to-checkout .checkout-button,
#place_order,
.woocommerce-cart-form button[name="update_cart"],
.woocommerce-form-coupon button[name="apply_coupon"],
.woocommerce-form-login button[type="submit"],
.woocommerce-form-register button[type="submit"],
.woocommerce-MyAccount-content .button,
a.button.wc-forward {
    background: var(--sod-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 14px 30px !important;
    font-weight: 700 !important;
}

.wc-proceed-to-checkout .checkout-button:hover,
#place_order:hover,
.woocommerce-cart-form button[name="update_cart"]:hover,
.woocommerce-form-coupon button[name="apply_coupon"]:hover,
.woocommerce-form-login button[type="submit"]:hover,
.woocommerce-form-register button[type="submit"]:hover,
.woocommerce-MyAccount-content .button:hover,
a.button.wc-forward:hover {
    opacity: 0.9;
}
/* ---------- Customer dashboard: colorful summary cards ---------- */
.sod-dash {
    margin-bottom: 30px;
}

.sod-dash-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 700px) {
    .sod-dash-cards { grid-template-columns: repeat(4, 1fr); }
}

.sod-dash-card {
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
}

.sod-dash-card__label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.sod-dash-card__value {
    font-size: 1.5rem;
    font-weight: 700;
}

.sod-dash-card--orange { background: linear-gradient(135deg, #FB923C, #EA580C); }
.sod-dash-card--purple { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.sod-dash-card--blue   { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.sod-dash-card--green  { background: linear-gradient(135deg, #34D399, #059669); }

.sod-dash-heading {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.sod-dash-orders {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sod-dash-order {
    border: 1px solid var(--sod-border);
    border-radius: 12px;
    padding: 16px;
}

.sod-dash-order__top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.sod-dash-order__number { font-weight: 700; }
.sod-dash-order__date { color: var(--sod-text-light); }
.sod-dash-order__total { font-weight: 700; color: var(--sod-primary); }

.sod-dash-progress {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.sod-dash-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.sod-dash-progress__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sod-border);
    display: block;
}

.sod-dash-progress__step.is-done .sod-dash-progress__dot {
    background: var(--sod-primary);
}

.sod-dash-progress__label {
    font-size: 0.7rem;
    color: var(--sod-text-light);
    white-space: nowrap;
}

.sod-dash-progress__step.is-done .sod-dash-progress__label {
    color: var(--sod-text);
    font-weight: 600;
}

.sod-dash-progress__line {
    flex: 1 1 auto;
    height: 2px;
    background: var(--sod-border);
    margin-bottom: 18px;
}

.sod-dash-progress__line.is-done {
    background: var(--sod-primary);
}

.sod-dash-order__status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sod-dash-order__status-badge--cancelled {
    background: #FEE2E2;
    color: #B91C1C;
}

.sod-dash-order__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sod-primary) !important;
}

/* ---------- Out of Stock badge on product cards ---------- */
.sod-card-oos-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(220, 38, 38, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 999px;
    z-index: 2;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ---------- "Added to cart" confirmation: clean toast instead of the ---------- */
/* default overlapping black box */
/* marker: sod-added-to-cart-toast */
.sod-card-media a.added_to_cart {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sod-primary);
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.sod-card-media a.added_to_cart.sod-toast-visible {
    opacity: 1 !important;
    pointer-events: auto;
}
/* ---------- Sticky header must sit below the WP admin bar when logged in ---------- */
/* (the admin bar is only visible to logged-in staff, never to real customers, */
/* but it's also fixed at the top and was overlapping our sticky header) */
body.admin-bar #masthead.sod-header {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar #masthead.sod-header {
        top: 46px !important;
    }
}

/* ---------- Recent purchases slide-in notification ---------- */
.sod-recent-purchase {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 999;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--sod-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    padding: 12px 34px 12px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.sod-recent-purchase.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.sod-recent-purchase__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.sod-recent-purchase__link:hover .sod-recent-purchase__product {
    text-decoration: underline;
}

.sod-recent-purchase__link.is-disabled {
    cursor: default;
    pointer-events: none;
}

.sod-recent-purchase__thumb {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--sod-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sod-recent-purchase__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sod-recent-purchase__text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--sod-text);
    padding-top: 4px;
}

.sod-recent-purchase__name,
.sod-recent-purchase__product {
    font-weight: 700;
}

.sod-recent-purchase__close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--sod-text-light);
    cursor: pointer;
    padding: 6px;
}

@media (max-width: 480px) {
    .sod-recent-purchase {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}