/*
 * Farm Basket Theme - Main Stylesheet
 *
 * All custom CSS is defined here. No inline or internal CSS is used.
 */

/* =============================================
   1. CSS Custom Properties
   ============================================= */
:root {
    --primary: #0D3B26;
    --secondary: #3D6B51;
    --color1: #C89D54;
    --color2: #FAF9F3;
    --font-primary: 'Lora', serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
}

/* =============================================
   2. Base Styles
   ============================================= */
body {
    background-color: var(--color2);
    color: #1F2937;
    font-family: var(--font-secondary), sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary), serif;
    color: var(--primary);
}

/* Font utilities - explicit fallbacks so fonts render exactly like the reference design */
.font-serif {
    font-family: var(--font-primary), serif !important;
}

.font-sans {
    font-family: var(--font-secondary), sans-serif !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-extrabold {
    font-weight: 800 !important;
}

.bg-primary {
    background-color: var(--primary);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-color1 {
    color: var(--color1);
}

.text-color2 {
    color: var(--color2);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-color1 {
    background-color: var(--color1);
}

.bg-color2 {
    background-color: var(--color2);
}

/* Standard text/overlay utilities - explicit fallbacks (used by Export/hero sections) */
.text-white {
    color: #ffffff !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

@media (min-width: 1024px) {
    .lg\:text-primary {
        color: var(--primary) !important;
    }

    .lg\:text-gray-500 {
        color: #6b7280 !important;
    }

    .lg\:text-gray-600 {
        color: #4b5563 !important;
    }
}

/* =============================================
   3. Glassmorphism
   ============================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =============================================
   4. Navigation Link Underline Effect
   ============================================= */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color1);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =============================================
   5. Custom Logo Sizing
   ============================================= */
.custom-logo-link img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .custom-logo-link img {
        height: 80px;
    }
}

footer .custom-logo-link img {
    height: 48px;
}

/* =============================================
   6. Scroll Reveal Animations
   ============================================= */
.reveal-element,
.reveal-element-left,
.reveal-element-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-element {
    transform: translateY(30px);
}

.reveal-element-left {
    transform: translateX(-35px);
}

.reveal-element-right {
    transform: translateX(35px);
}

.reveal-element.revealed,
.reveal-element-left.revealed,
.reveal-element-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* =============================================
   6. Animation Delay Classes
   ============================================= */
.delay-75 {
    transition-delay: 75ms;
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-150 {
    transition-delay: 150ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-225 {
    transition-delay: 225ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-375 {
    transition-delay: 375ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Animate.css delay overrides */
.anim-delay-200 {
    animation-delay: 0.2s;
}

.anim-delay-400 {
    animation-delay: 0.4s;
}

.anim-delay-600 {
    animation-delay: 0.6s;
}

.anim-delay-800 {
    animation-delay: 0.8s;
}

.anim-delay-1s {
    animation-delay: 1s;
}

/* =============================================
   7. Grid Background Overlay
   ============================================= */
.grid-bg-overlay {
    background-image: radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* =============================================
   8. Globe Container
   ============================================= */
.globe-container {
    width: 100%;
    height: 420px;
}

/* =============================================
   9. WooCommerce Overrides
   ============================================= */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease !important;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--secondary) !important;
    opacity: 1 !important;
}

.woocommerce .price {
    color: var(--primary) !important;
    font-family: var(--font-primary), serif;
    font-weight: 700;
}

.woocommerce .star-rating span {
    color: var(--color1) !important;
}

.woocommerce .onsale {
    background-color: var(--color1) !important;
    color: var(--primary) !important;
    font-weight: 700;
}

.woocommerce ul.products li.product .price {
    font-size: 1.1rem;
}

.woocommerce div.product .product_title {
    font-family: var(--font-primary), serif;
    color: var(--primary);
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary) !important;
}

/* =============================================
   10. Shop Page – Full-width Layout
   ============================================= */

.shop-page {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px 100px;
    background: var(--color2);
}

@media (min-width: 640px) {
    .shop-page {
        padding: 32px 32px 100px;
    }
}

@media (min-width: 1024px) {
    .shop-page {
        padding: 48px 48px 60px;
    }
}

/* ---------- Promo Banner ---------- */
.shop-promo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
}

.shop-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13, 59, 38, 0.9), transparent);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 32px;
}

.shop-promo-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 8px;
}

.shop-promo-title {
    color: #fff;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    max-width: 280px;
    margin: 0 0 12px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .shop-promo-title {
        font-size: 24px;
        max-width: 320px;
    }
}

.shop-promo-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0 0 16px;
    max-width: 360px;
    line-height: 1.5;
}

.shop-promo-text strong {
    font-weight: 700;
}

.shop-promo-cta {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 999px;
    align-self: flex-start;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shop-promo-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.shop-promo-cta:active {
    transform: scale(0.95);
}

.shop-promo-bg {
    height: 220px;
    width: 100%;
    background: linear-gradient(to bottom right, rgba(61, 107, 81, 0.3), rgba(13, 59, 38, 0.2));
}

@media (min-width: 768px) {
    .shop-promo-bg {
        height: 280px;
    }
}

/* ---------- Layout: Sidebar + Grid ---------- */
.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .shop-layout {
        flex-direction: row;
    }
}

/* ---------- Sidebar ---------- */
.shop-sidebar {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .shop-sidebar {
        width: 240px;
    }
}

.shop-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .shop-sidebar-inner {
        position: sticky;
        top: 100px;
    }
}

.shop-widget {
    margin-bottom: 0;
}

.shop-widget-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
    margin: 0 0 12px;
}

.shop-cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.shop-cat-item:hover {
    background: #f3f4f6;
    color: #374151;
}

.shop-cat-item.active {
    background: rgba(13, 59, 38, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.shop-cat-item i {
    font-size: 12px;
    opacity: 0.5;
}

.shop-cat-item.active i {
    opacity: 1;
}

.shop-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.shop-filter-item:hover {
    color: #111827;
}

.shop-checkbox {
    border-radius: 4px;
    border: 1px solid #d1d5db;
    accent-color: var(--primary);
}

/* ---------- Main Content ---------- */
.shop-main {
    flex: 1;
    min-width: 0;
}

/* ---------- Category Checkbox Filter ---------- */
.shop-cat-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-cat-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.shop-cat-checkbox:hover {
    color: var(--primary);
}

.shop-cat-checkbox .shop-checkbox {
    border-radius: 4px;
    border: 1px solid #d1d5db;
    accent-color: var(--primary);
}

/* Product grid loading state */
.shop-grid.shop-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.shop-grid.shop-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250, 249, 243, 0.3);
    z-index: 2;
}

/* ---------- Sort Bar ---------- */
.shop-sortbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.shop-result-count {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.shop-count-number {
    font-weight: 700;
    color: #374151;
}

.shop-ordering {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-order-label {
    font-size: 12px;
    color: #6b7280;
}

/* Hide default WooCommerce elements */
.archive.woocommerce-page .page-title {
    display: none;
}

.archive.woocommerce-page ul.products {
    display: none;
}

.archive.woocommerce-page .woocommerce-result-count,
.archive.woocommerce-page .woocommerce-ordering {
    display: none;
}

/* Sort dropdown */
.shop-ordering select.orderby {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 28px 6px 12px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.shop-ordering select.orderby:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13, 59, 38, 0.1);
}

/* ---------- Product Grid ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

/* ---------- Product Card ---------- */
.shop-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shop-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card Image */
.shop-card-image {
    position: relative;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    padding: 8px;
    box-sizing: border-box;
}

.shop-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.shop-grid-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-grid-image {
    transform: scale(1.1);
}

/* Badges */
.shop-badge-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color1);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    line-height: 1;
}

.shop-badge-top {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    line-height: 1;
}

.shop-grid-cats {
    position: absolute;
    bottom: 8px;
    left: 8px;
}

.shop-grid-cats a {
    font-size: 10px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
}

.shop-grid-cats a:hover {
    color: var(--primary);
}

/* Card Body */
.shop-card-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 640px) {
    .shop-card-body {
        padding: 16px;
    }
}

.shop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.shop-card-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: #111827;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
}

@media (min-width: 640px) {
    .shop-card-title {
        font-size: 16px;
    }
}

.shop-card-title a {
    color: inherit;
    text-decoration: none;
}

.shop-card-title a:hover {
    color: var(--primary);
}

.shop-rating-badge {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 8px;
}

.shop-rating-badge i {
    color: #eab308;
    font-size: 12px;
}

.shop-rating-badge span {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.shop-card-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.shop-price {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

@media (min-width: 640px) {
    .shop-price {
        font-size: 18px;
    }
}

.shop-price ins {
    text-decoration: none;
}

.shop-price del {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
    margin-right: 6px;
}

.shop-add-btn {
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    font-size: 14px;
}

.shop-add-btn:hover {
    background: var(--secondary);
}

.shop-add-btn:active {
    transform: scale(0.9);
}

/* ---------- Pagination ---------- */
.shop-pagination-wrap {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.shop-pagination-wrap nav.woocommerce-pagination {
    margin: 0;
}

.shop-pagination-wrap nav.woocommerce-pagination ul {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    margin: 0;
    padding: 0;
}

.shop-pagination-wrap nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
    float: none;
}

.shop-pagination-wrap nav.woocommerce-pagination ul li a,
.shop-pagination-wrap nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: none;
    text-decoration: none;
    transition: background 0.2s ease;
}

.shop-pagination-wrap nav.woocommerce-pagination ul li a:hover {
    background: rgba(13, 59, 38, 0.08);
}

.shop-pagination-wrap nav.woocommerce-pagination ul li span.current {
    background: var(--primary);
    color: #fff;
}

.shop-pagination-wrap nav.woocommerce-pagination ul li a.next,
.shop-pagination-wrap nav.woocommerce-pagination ul li a.prev {
    font-size: 0;
}

.shop-pagination-wrap nav.woocommerce-pagination ul li a.next::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
}

.shop-pagination-wrap nav.woocommerce-pagination ul li a.prev::after {
    content: '\f060';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
}

/* ---------- Empty / No Products ---------- */
.shop-empty {
    text-align: center;
    padding: 80px 20px;
}

.shop-empty-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 24px;
}

.shop-empty-title {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--primary);
    margin: 0 0 8px;
}

.shop-empty-text {
    color: #6b7280;
    margin: 0 0 24px;
}

.shop-empty-btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
}

.shop-empty-btn:hover {
    background: var(--secondary);
}

/* ---------- Load More Button ---------- */
.shop-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.shop-loadmore-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 40px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.shop-loadmore-btn:hover {
    background: var(--primary);
    color: #fff;
}

.shop-loadmore-btn:active {
    transform: scale(0.96);
}

.shop-loadmore-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.shop-loadmore-spinner {
    font-size: 18px;
}

/* ---------- Off-canvas Cart Sidebar ---------- */
.cart-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.cart-sidebar-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.cart-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.cart-sidebar-close:hover {
    color: var(--primary);
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #9ca3af;
}

.cart-sidebar-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.cart-sidebar-empty p {
    font-size: 15px;
    margin: 0;
}

.cart-sidebar-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color2);
    border-radius: 10px;
    position: relative;
}

.cart-sidebar-item-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-sidebar-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.cart-sidebar-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-sidebar-item-name:hover {
    color: var(--primary);
}

.cart-sidebar-item-meta {
    font-size: 13px;
    color: #6b7280;
}

.cart-sidebar-item-qty {
    font-weight: 600;
}

.cart-sidebar-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-sidebar-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #9ca3af;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-sidebar-item-remove:hover {
    color: #ef4444;
}

.cart-sidebar-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.cart-sidebar-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.cart-sidebar-total {
    font-family: var(--font-primary);
    color: var(--primary);
    font-size: 18px;
}

.cart-sidebar-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cart-sidebar-checkout:hover {
    background: var(--secondary);
    color: #fff;
}

.cart-sidebar-checkout:active {
    transform: scale(0.97);
}

body.cart-sidebar-open {
    overflow: hidden;
}

/* ---------- Mobile Bottom Nav ---------- */
.shop-mobile-nav {
    display: none;
}

@media (max-width: 767px) {
    .shop-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
        z-index: 50;
        justify-content: space-around;
        align-items: center;
        padding: 8px 16px;
        border-top: 1px solid #f3f4f6;
    }

    .shop-page {
        padding-bottom: 80px;
    }
}

.shop-mobile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.shop-mobile-link:hover {
    color: var(--primary);
}

.shop-mobile-link.active {
    background: rgba(13, 59, 38, 0.1);
    color: var(--primary);
    border-radius: 999px;
    padding: 4px 16px;
}

.shop-mobile-link i {
    font-size: 14px;
}

.shop-mobile-link span {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
}

/* =============================================
   11. Utility Classes
   ============================================= */
.fb-m-0 {
    margin: 0;
}

.fb-p-0 {
    padding: 0;
}

.fb-settings-form {
    max-width: 700px;
    margin-top: 20px;
}

/* =============================================
   11. Admin Settings Page
   ============================================= */
.farm-basket-settings-form h2 {
    margin: 0;
    padding: 0;
}

/* =============================================
   12. Single Product Page – Brand Aligned
   ============================================= */

/* ── Page Wrapper ── */
.sp-wrap {
    background: var(--color2);
    min-height: 100vh;
    padding: 0;
}
.sp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}
@media (min-width: 640px) {
    .sp-container { padding: 32px 32px 80px; }
}
@media (min-width: 1024px) {
    .sp-container { padding: 48px 48px 80px; }
}

/* ── Breadcrumb ── */
.sp-breadcrumb {
    margin-bottom: 28px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}
.sp-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}
.sp-breadcrumb a:hover {
    color: var(--primary);
}
.sp-bc-sep {
    margin: 0 8px;
    color: #d1d5db;
}
.sp-bc-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

/* ── Grid ── */
.sp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 1024px) {
    .sp-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}

/* ── Gallery ── */
.sp-gallery {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}
.sp-gallery-inner {
    position: relative;
    background: #efece4;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e8e4da;
}
.sp-gallery-inner .woocommerce-product-gallery {
    border-radius: 28px;
}
.sp-gallery-inner .woocommerce-product-gallery .flex-viewport {
    border-radius: 28px 28px 0 0;
}
.sp-gallery-inner .woocommerce-product-gallery img {
    width: 100%;
    object-fit: contain;
}
.sp-gallery-inner .woocommerce-product-gallery .flex-control-thumbs {
    padding: 12px 40px;
    gap: 8px;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sp-gallery-inner .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}
.sp-gallery-inner .woocommerce-product-gallery .flex-control-thumbs li {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 72px;
}
.sp-gallery-inner .woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.25s ease, opacity 0.25s ease;
    opacity: 0.7;
    cursor: pointer;
    width: 100%;
    height: 72px;
    object-fit: cover;
}
.sp-gallery-inner .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: var(--primary);
    opacity: 1;
}

/* Thumbnail slider arrows */
.sp-gallery-thumbs-wrap {
    position: relative;
}
.sp-thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e8e4da;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary);
    font-size: 14px;
    line-height: 1;
    padding: 0;
}
.sp-thumb-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(13, 59, 38, 0.2);
}
.sp-thumb-arrow--prev {
    left: 6px;
}
.sp-thumb-arrow--next {
    right: 6px;
}

/* Sale badge */
.sp-badge-sale {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(13, 59, 38, 0.2);
}

/* Gallery zoom trigger */
.sp-gallery-inner .woocommerce-product-gallery__trigger {
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.92) !important;
    top: 16px !important;
    right: 16px !important;
    font-size: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sp-gallery-inner:hover .woocommerce-product-gallery__trigger {
    opacity: 1;
}
.sp-gallery-inner .woocommerce-product-gallery__trigger::before {
    border-color: var(--primary) !important;
}
.sp-gallery-inner .woocommerce-product-gallery__trigger::after {
    background: var(--primary) !important;
}

/* ── Product Info ── */
.sp-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Category label */
.sp-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--secondary);
}

/* Title */
.sp-title {
    font-family: var(--font-primary);
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .sp-title { font-size: 36px; }
}

/* Rating */
.sp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-stars {
    display: flex;
    gap: 2px;
}
.sp-star {
    width: 16px;
    height: 16px;
    fill: #d1d5db;
}
.sp-star--on { fill: #eab308; }
.sp-rating-num {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}
.sp-rating-count {
    font-size: 12px;
    color: #9ca3af;
}

/* Price */
.sp-info .price {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}
.sp-info .price del {
    font-size: 15px;
    color: #9ca3af;
    font-weight: 400;
    margin-right: 8px;
}
.sp-info .price ins {
    text-decoration: none;
}

/* Description */
.sp-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    max-width: 480px;
}
.sp-desc p { margin: 0; }

/* Divider */
.sp-divider {
    border: none;
    border-top: 1px solid #e8e4da;
    margin: 6px 0 2px;
}

/* ── Cart Area ── */
.sp-cart-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sp-cart-area .woocommerce-notices-wrapper {
    display: none;
}

/* Quantity */
.sp-cart-area .quantity {
    display: inline-flex;
    align-items: center;
    background: #f5f5f0;
    border-radius: 999px;
    padding: 4px;
    border: 1px solid #e8e4da;
}
.sp-cart-area .quantity input[type="number"] {
    width: 44px;
    padding: 6px 2px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
}
.sp-cart-area .quantity input::-webkit-inner-spin-button,
.sp-cart-area .quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sp-cart-area .qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
}
.sp-cart-area .qty-btn:hover {
    background: #e8e4da;
    color: #0a2e1e;
}

/* Add to cart button */
.sp-cart-area .single_add_to_cart_button {
    width: 100%;
    max-width: 400px;
    padding: 18px 32px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--font-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(13, 59, 38, 0.15);
    letter-spacing: 0.01em;
}
.sp-cart-area .single_add_to_cart_button:hover {
    background: #0a2e1e;
    transform: scale(0.97);
    box-shadow: 0 10px 28px rgba(13, 59, 38, 0.2);
}
.sp-cart-area .single_add_to_cart_button:active {
    transform: scale(0.94);
}
.sp-cart-area .single_add_to_cart_button.loading {
    opacity: 0.75;
    pointer-events: none;
}
.sp-cart-area .single_add_to_cart_button.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fbSpinner 0.6s linear infinite;
    display: inline-block;
}

/* Variations */
.sp-cart-area .variations { border: none; margin-bottom: 6px; }
.sp-cart-area .variations tr {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.sp-cart-area .variations td { display: block; padding: 0; border: none; }
.sp-cart-area .variations td.label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
}
.sp-cart-area .variations select {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    background: #fff;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.sp-cart-area .variations select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 59, 38, 0.12);
}
.sp-cart-area .variations .reset_variations {
    font-size: 12px;
    color: var(--primary);
    text-decoration: underline;
    margin-top: 4px;
    display: inline-block;
}
.sp-cart-area .single_variation_wrap { margin-top: 10px; }
.sp-cart-area .single_variation_wrap .woocommerce-variation-price { margin-bottom: 10px; }
.sp-cart-area .single_variation_wrap .woocommerce-variation-availability { margin-bottom: 10px; }

/* Grouped product */
.sp-cart-area .grouped_form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sp-cart-area .grouped_form .woocommerce-grouped-product-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e4da;
}
.sp-cart-area .grouped_form .woocommerce-grouped-product-list-item__quantity { flex-shrink: 0; }
.sp-cart-area .grouped_form .woocommerce-grouped-product-list-item__label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.sp-cart-area .grouped_form .woocommerce-grouped-product-list-item__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* Product meta */
.sp-cart-area .product_meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
}
.sp-cart-area .product_meta a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.sp-cart-area .product_meta a:hover { text-decoration: underline; }

/* ── Social Proof ── */
.sp-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}
.sp-avatars {
    display: flex;
    align-items: center;
}
.sp-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    border: 2px solid var(--color2);
    margin-right: -8px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.sp-avatar:hover { transform: scale(1.15); z-index: 1; }
.sp-avatar-more {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8e4da;
    border: 2px solid var(--color2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.sp-avatar-more:hover { transform: scale(1.15); }
.sp-social-text {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}

/* ── Feature Icons ── */
.sp-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8e4da;
}
.sp-feat {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sp-feat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.sp-feat-icon svg { width: 15px; height: 15px; }
.sp-feat-icon--purple { background: #f5f3ff; color: #7c3aed; }
.sp-feat-icon--orange { background: #fff7ed; color: #ea580c; }
.sp-feat-icon--green { background: #f0fdf4; color: #16a34a; }
.sp-feat-text {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* ── Tabs ── */
.sp-extras { margin-top: 48px; }
.sp-extras .woocommerce-tabs {
    background: #fff;
    border: 1px solid #e8e4da;
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 48px;
}
@media (min-width: 768px) {
    .sp-extras .woocommerce-tabs { padding: 40px; }
}
.sp-extras .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    margin: 0 0 28px;
    padding: 0;
    border-bottom: 2px solid #f5f5f0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sp-extras .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
.sp-extras .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.sp-extras .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
}
.sp-extras .woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary);
}
.sp-extras .woocommerce-tabs .panel {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}
.sp-extras .woocommerce-tabs .panel h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px;
}
.sp-extras .woocommerce-tabs .panel p { margin: 0 0 12px; }

/* Reviews */
.sp-extras .woocommerce-tabs #reviews #comments ol.commentlist { padding: 0; list-style: none; }
.sp-extras .woocommerce-tabs #reviews #comments ol.commentlist li {
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f0;
}
.sp-extras .woocommerce-tabs #reviews #comments ol.commentlist li img.avatar {
    border-radius: 50%;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f5f5f0;
}
.sp-extras .woocommerce-tabs #reviews #comments ol.commentlist .comment-text {
    margin-left: 56px;
    border: none;
    padding: 0;
}
.sp-extras .woocommerce-tabs #reviews #comments ol.commentlist .star-rating {
    font-size: 12px;
    color: #eab308;
}
.sp-extras .woocommerce-tabs #reviews #comments ol.commentlist .description p { margin: 4px 0 0; }

/* Review form */
.sp-extras .woocommerce-tabs #review_form_wrapper { margin-top: 28px; }
.sp-extras .woocommerce-tabs #review_form .comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 16px;
}
.sp-extras .woocommerce-tabs #review_form label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.sp-extras .woocommerce-tabs #review_form .stars { font-size: 18px; }
.sp-extras .woocommerce-tabs #review_form .comment-form-comment textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: #fff;
    font-family: var(--font-secondary);
    color: #1f2937;
    min-height: 120px;
}
.sp-extras .woocommerce-tabs #review_form .comment-form-comment textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 59, 38, 0.12);
}
.sp-extras .woocommerce-tabs #review_form .form-submit .submit {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    font-family: var(--font-secondary);
}
.sp-extras .woocommerce-tabs #review_form .form-submit .submit:hover {
    background: #0a2e1e !important;
    transform: scale(0.97);
}

/* ── Related & Upsells ── */
.sp-extras .related,
.sp-extras .upsells {
    padding-top: 8px;
    margin-bottom: 48px;
}
.sp-extras .related h2,
.sp-extras .upsells h2 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 24px;
}
.sp-extras .related ul.products,
.sp-extras .upsells ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (min-width: 640px) {
    .sp-extras .related ul.products,
    .sp-extras .upsells ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .sp-extras .related ul.products,
    .sp-extras .upsells ul.products { grid-template-columns: repeat(4, 1fr); }
}
.sp-extras .related ul.products li.product,
.sp-extras .upsells ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    list-style: none;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1023px) {
    .sp-gallery { position: static; }
    .sp-grid { gap: 28px; }
    .sp-title { font-size: 26px; }
    .sp-info .price { font-size: 24px; }
    .sp-breadcrumb { margin-bottom: 20px; }
    .sp-extras { margin-top: 36px; }
    .sp-extras .woocommerce-tabs ul.tabs li a { padding: 10px 16px; font-size: 13px; }
}

/* Mobile */
@media (max-width: 767px) {
    .sp-container { padding: 16px 16px 64px; }
    .sp-grid { gap: 20px; }
    .sp-breadcrumb { margin-bottom: 16px; font-size: 11px; }
    .sp-bc-sep { margin: 0 6px; }

    .sp-gallery-inner { border-radius: 20px; }
    .sp-gallery-inner .woocommerce-product-gallery .flex-control-thumbs { padding: 10px 36px; gap: 6px; }
    .sp-gallery-inner .woocommerce-product-gallery .flex-control-thumbs li { width: 56px; }
    .sp-gallery-inner .woocommerce-product-gallery .flex-control-thumbs li img { height: 56px; }

    .sp-title { font-size: 22px; }
    .sp-info .price { font-size: 22px; }
    .sp-info .price del { font-size: 13px; }
    .sp-desc { font-size: 13px; max-width: none; }

    .sp-cart-area .quantity input[type="number"] { width: 38px; }
    .sp-cart-area .single_add_to_cart_button { max-width: 100%; padding: 16px 24px; font-size: 14px; }
    .sp-cart-area .variations select { padding: 10px 14px; font-size: 12px; }

    .sp-extras { margin-top: 28px; }
    .sp-extras .woocommerce-tabs { padding: 20px 16px; border-radius: 18px; margin-bottom: 32px; }
    .sp-extras .woocommerce-tabs ul.tabs { margin-bottom: 18px; }
    .sp-extras .woocommerce-tabs ul.tabs li a { padding: 8px 12px; font-size: 12px; }
    .sp-extras .woocommerce-tabs .panel { font-size: 14px; }
    .sp-extras .woocommerce-tabs .panel h2 { font-size: 18px; }

    .sp-extras .related h2,
    .sp-extras .upsells h2 { font-size: 20px; margin-bottom: 16px; }
    .sp-extras .related ul.products,
    .sp-extras .upsells ul.products { gap: 10px; }

    .sp-features { gap: 12px; padding-top: 12px; }
}

/* Very small phones */
@media (max-width: 479px) {
    .sp-container { padding: 12px 12px 48px; }
    .sp-title { font-size: 19px; }
    .sp-info .price { font-size: 20px; }
    .sp-cart-area .single_add_to_cart_button { padding: 14px 20px; font-size: 13px; }
    .sp-extras .related ul.products,
    .sp-extras .upsells ul.products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sp-badge-sale { width: 44px; height: 44px; font-size: 8px; top: 12px; left: 12px; }
}

/* =============================================
   13. My Account Page
   ============================================= */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* WooCommerce form field overrides for my-account */
.woocommerce-address-fields .form-row {
    padding: 0;
    margin: 0;
}
.woocommerce-address-fields .form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
    display: block;
}
.woocommerce-address-fields .form-row .input-text,
.woocommerce-address-fields .form-row select,
.woocommerce-address-fields .form-row textarea {
    width: 100%;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-secondary);
    color: #1f2937;
    box-sizing: border-box;
}
.woocommerce-address-fields .form-row .input-text:focus,
.woocommerce-address-fields .form-row select:focus,
.woocommerce-address-fields .form-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 59, 38, 0.1);
}
.woocommerce-address-fields .form-row .select2-selection {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 14px;
    min-height: 42px;
}
.woocommerce-address-fields .form-row .select2-selection:focus {
    border-color: var(--primary);
}
.woocommerce-address-fields .form-row .select2-selection__rendered {
    padding: 0;
    font-size: 14px;
}
.woocommerce-address-fields .form-row .select2-selection__arrow {
    top: 8px;
    right: 8px;
}
.woocommerce-address-fields h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px;
}

.acc-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .acc-wrap { padding: 0 48px; }
}
.acc-sidebar a.active-nav {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.acc-sidebar a.active-nav .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}
.acc-sidebar a:not(.active-nav):hover {
    background: #f5f5f0;
}
.acc-bento-card {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.acc-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.acc-card {
    background: #fff;
    border: 1px solid #e8e4da;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.acc-input {
    width: 100%;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.acc-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 59, 38, 0.1);
}
.acc-btn-primary {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-secondary);
}
.acc-btn-primary:hover {
    background: #0a2e1e;
    transform: scale(0.97);
}
.acc-btn-outline {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 32px;
    border-radius: 999px;
    border: 1.5px solid var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-secondary);
}
.acc-btn-outline:hover {
    background: rgba(13, 59, 38, 0.06);
}
.acc-order-card {
    border-left: 4px solid var(--secondary);
}
.acc-order-card--delivered {
    border-left-color: #d1d5db;
    opacity: 0.8;
}
.acc-order-card--delivered img {
    filter: grayscale(1);
}
.acc-status-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 10px;
    border-radius: 999px;
}
.acc-rating-star {
    color: #eab308;
}
.acc-empty-icon {
    width: 128px;
    height: 128px;
    background: #e8e4da;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}
.acc-empty-icon .material-symbols-outlined {
    font-size: 64px;
}
.acc-address-card--default {
    border: 2px solid var(--primary);
}
.acc-default-badge {
    background: var(--secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 999px;
}

/* Logout Modal */
.acc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.acc-modal--open {
    display: flex;
}
.acc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
}
.acc-modal-box {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: accModalIn 0.25s ease-out;
}
@keyframes accModalIn {
    from { transform: scale(0.92) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.acc-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.acc-modal-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}
.acc-modal-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.5;
}
.acc-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.acc-modal-actions .acc-btn-outline,
.acc-modal-actions .acc-btn-primary {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 20px;
}

/* WooCommerce notices inside my-account */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
    border: 1px solid #e8e4da;
    background: #fcfcf9;
}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
    display: none;
}
.woocommerce-message {
    border-left: 4px solid var(--secondary);
    color: #1f2937;
}
.woocommerce-info {
    border-left: 4px solid var(--color1);
    color: #1f2937;
}
.woocommerce-error {
    border-left: 4px solid #dc2626;
    color: #991b1b;
}
.woocommerce-message .button,
.woocommerce-info .button {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    float: right;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
    background: #0a2e1e;
}

/* =============================================
   13. Bulk Orders Page (Shop-style layout)
   ============================================= */

/* Promo secondary CTA */
.shop-promo-cta-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.shop-promo-cta-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* Sections below the product grid */
.bulk-section {
    margin-top: 48px;
}
.bulk-section-head {
    text-align: center;
    margin-bottom: 28px;
}
.bulk-section-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
}
@media (min-width: 768px) {
    .bulk-section-title {
        font-size: 32px;
    }
}
.bulk-section-sub {
    color: #6b7280;
    max-width: 560px;
    margin: 0 auto;
    font-size: 15px;
}

.bulk-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .bulk-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .bulk-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bulk-service-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bulk-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(13, 59, 38, 0.12);
}
.bulk-service-icon {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 12px;
}
.bulk-service-name {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
}
.bulk-service-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Inquiry form */
.bulk-inquiry {
    margin-top: 48px;
}
.bulk-inquiry-inner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    max-width: 840px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .bulk-inquiry-inner {
        padding: 40px 48px;
    }
}
.bulk-inquiry-head {
    text-align: center;
    margin-bottom: 28px;
}
.bulk-inquiry-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
}
.bulk-inquiry-sub {
    color: #6b7280;
    margin: 0;
    font-size: 15px;
}

.bulk-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}
.bulk-notice-success {
    background: rgba(61, 107, 81, 0.1);
    border: 1px solid rgba(61, 107, 81, 0.3);
    color: var(--secondary);
}
.bulk-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.bulk-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bulk-form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bulk-form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .bulk-form-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
.bulk-inquiry-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.bulk-inquiry-form input,
.bulk-inquiry-form select,
.bulk-inquiry-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: var(--color2);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bulk-inquiry-form input:focus,
.bulk-inquiry-form select:focus,
.bulk-inquiry-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 59, 38, 0.08);
}

.bulk-inquiry-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 24px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(13, 59, 38, 0.25);
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.bulk-inquiry-submit:hover {
    background: var(--secondary);
}
.bulk-inquiry-submit:active {
    transform: scale(0.98);
}
.bulk-inquiry-submit:disabled,
.bulk-inquiry-submit.bulk-inquiry-submitting {
    opacity: 0.6;
    cursor: default;
}

/* =============================================
   Enterprise Page Effects & Animations
   ============================================= */

/* Ken Burns slow zoom for hero imagery */
@keyframes fb-kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.14) translate(1.5%, -2%); }
}
.animate-kenburns {
    animation: fb-kenburns 24s ease-in-out infinite alternate;
    will-change: transform;
}

/* Floating decorative orbs / elements */
@keyframes fb-float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}
.animate-float-slow   { animation: fb-float-y 6s ease-in-out infinite; }
.animate-float-slower { animation: fb-float-y 9s ease-in-out 1.4s infinite; }

/* Card shine sweep on hover */
@keyframes fb-shine {
    0%        { transform: translateX(-140%) skewX(-18deg); }
    55%, 100% { transform: translateX(260%) skewX(-18deg); }
}
.card-shine { position: relative; overflow: hidden; }
.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-140%) skewX(-18deg);
    pointer-events: none;
    z-index: 2;
}
.card-shine:hover::before { animation: fb-shine 0.95s ease; }

/* Animated dashed journey connector */
@keyframes fb-draw {
    to { stroke-dashoffset: 0; }
}
.draw-line {
    stroke-dasharray: 7 9;
    stroke-dashoffset: 320;
    animation: fb-draw 2.8s ease-out 0.4s forwards;
}

/* Expanding ring pulse for interactive nodes */
@keyframes fb-ping-ring {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(2.05); opacity: 0; }
}
.icon-pulse { position: relative; }
.icon-pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid var(--color1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.icon-pulse:hover::after {
    opacity: 1;
    animation: fb-ping-ring 1.2s ease-out infinite;
}

/* Icon wiggle on group hover */
@keyframes fb-icon-wiggle {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-4px) rotate(-6deg); }
}
.group:hover .icon-wiggle { animation: fb-icon-wiggle 0.5s ease; }

/* Consistent icon chip */
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: rgba(61, 107, 81, 0.08);
    color: var(--secondary);
    flex-shrink: 0;
}

/* Staggered hero entrance (works with animate.css) */

/* Scroll progress bar */
#fb-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--color1), var(--secondary));
    z-index: 9999;
    border-radius: 0 999px 999px 0;
    box-shadow: 0 0 8px rgba(200, 157, 84, 0.5);
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-kenburns,
    .animate-float-slow,
    .animate-float-slower,
    .draw-line,
    .icon-pulse::after,
    .group:hover .icon-wiggle,
    .card-shine::before {
        animation: none !important;
    }
}
