/* Tea Box Constructor — constructor.css (supplementary styles) */
/* Critical mobile styles are inline in the template with !important */

:root {
    --white:      #FEFCF9;
    --cream:      #F7F2EA;
    --beige:      #E0D5C3;
    --matcha:     #7A9E7E;
    --emerald:    #2D5A3D;
    --deep-green: #1A3A25;
    --gold:       #C4A265;
    --warm-gray:  #7A756C;
    --rose:       #C17878;
}

/* Smooth scrolling */
.tbc-constructor {
    scroll-behavior: smooth;
}

/* Product card hover */
.product-card:hover {
    box-shadow: 0 4px 16px rgba(45, 90, 61, 0.12);
    transform: translateY(-2px);
    transition: all 0.2s;
}

/* Box shape hover */
.box-shape:hover {
    border-color: #7A9E7E;
    box-shadow: 0 4px 16px rgba(45, 90, 61, 0.10);
}

/* Size card hover */
.size-card:hover {
    border-color: #7A9E7E;
    box-shadow: 0 2px 12px rgba(45, 90, 61, 0.10);
}

/* Color dot hover */
.color-dot:hover {
    transform: scale(1.1);
}

/* Button hover states */
.t4y-qty-btn:hover {
    background: #F0F7F2;
    border-color: #2D5A3D;
}

/* Products grid — 2 columns */
.products-grid {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 4px;
}
.products-grid::-webkit-scrollbar { width: 5px; }
.products-grid::-webkit-scrollbar-track { background: #E0D5C3; border-radius: 99px; }
.products-grid::-webkit-scrollbar-thumb { background: #2D5A3D; border-radius: 99px; }

/* Compact product card for 2-col layout */
.product-card img {
    height: 120px !important;
    width: 100% !important;
    object-fit: cover !important;
    aspect-ratio: unset !important;
}
.product-card .prod-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1A3A25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.1em;
}

/* Step 2: hide sidebar, full width for main */
.layout-step-2 .con-sidebar {
    display: none !important;
}
.layout-step-2 .con-main {
    width: 100% !important;
    flex: 1 !important;
}

/* Sidebar sticky on desktop (steps 1, 3, 4) */
@media (min-width: 769px) {
    .con-sidebar {
        position: sticky;
        top: 20px;
    }
}

/* Sticky bar — compact one-line layout */
.t4y-sticky-bar {
    height: 52px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.sticky-price {
    flex-shrink: 0;
}
.sticky-fill-wrap {
    flex: 1;
}
.sticky-btns {
    flex-shrink: 0;
}
.t4y-sticky-bar .t4y-btn {
    min-height: 36px !important;
    padding: 8px 16px !important;
    font-size: 0.88rem !important;
}

/* Filter panel */
.tbc-filter-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1600;
    padding: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.tbc-filter-panel.open {
    right: 0;
}
.tbc-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
    display: none;
}
.tbc-filter-overlay.open {
    display: block;
}
.tbc-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #E0D5C3;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.tbc-filter-head strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #1A3A25;
}
.tbc-filter-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7A756C;
    line-height: 1;
    padding: 4px;
}
.tbc-filter-body {
    padding: 16px 20px;
    flex: 1;
}
.tbc-filter-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1A3A25;
    margin-bottom: 4px;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.tbc-filter-item:hover {
    background: #F0F7F2;
}
.tbc-filter-item.active {
    background: #2D5A3D;
    color: #fff;
    font-weight: 600;
}
.tbc-filter-item.tbc-filter-sub {
    padding-left: 28px;
    font-size: 0.85rem;
    color: #4A7A5A;
}
.tbc-filter-item.tbc-filter-sub.active {
    color: #fff;
}
.tbc-filter-section {
    margin-bottom: 4px;
}
.tbc-filter-parent-label {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1A3A25;
    margin-bottom: 0;
    transition: background 0.15s;
    font-weight: 600;
}
.tbc-filter-parent-label:hover {
    background: #F0F7F2;
}
.tbc-filter-parent-label.active {
    background: #2D5A3D;
    color: #fff;
}
.tbc-filter-subs {
    padding-left: 8px;
    margin-bottom: 4px;
}
.tbc-filter-divider {
    height: 1px;
    background: #E0D5C3;
    margin: 8px 0;
}

/* Hide sticky bar on mobile when filter panel is open */
.filter-open .t4y-sticky-bar {
    z-index: 1400;
}

/* Search + filter row */
.tbc-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.tbc-search-row .tbc-search {
    flex: 1;
    margin-bottom: 0 !important;
}
.tbc-filter-btn {
    flex-shrink: 0;
    padding: 10px 14px !important;
    min-height: auto !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    white-space: nowrap;
}

/* Active filter indicator on button */
.tbc-filter-btn.has-filter {
    background: #2D5A3D !important;
    color: #fff !important;
    border-color: #2D5A3D !important;
}

/* Playfair Display import hint — should be enqueued via wp_enqueue_style in PHP */
