/* Products Page Styles */
.layout-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    margin-top: 1.25rem;
}

/* Two-column layout for products + filters */
.products-layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
    padding: 1rem;
}

.filters-sidebar h3 {
    margin-top: 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filters-toggle-icon {
    display: none;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.filters-sidebar.collapsed .filters-toggle-icon {
    transform: rotate(-90deg);
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.category-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .35rem .5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

.category-filter-item label {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

.category-count {
    color: #6b7280;
    font-weight: 600;
}

@media (max-width: 900px) {
    .products-layout { 
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .filters-sidebar { 
        position: relative; 
        top: 0;
        max-width: 100%;
        overflow-x: auto;
    }
    .filters-sidebar h3 {
        cursor: pointer;
    }
    .filters-toggle-icon {
        display: inline-block;
    }
    .filters-sidebar.collapsed .category-filters {
        display: none;
    }
    .main-products,
    .main-admin {
        max-width: 100%;
        overflow-x: auto;
    }
    .product-row-summary {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .product-row-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.main-products,
.main-cart,
.main-reservations,
.main-admin {
    width: 100%;
}

/* Products Grid */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-header h2 {
    margin: 0;
    font-size: 1.75rem;
}

/* Make top nav flexible so the Login button can sit on the right */
.site-header .site-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.site-header .site-nav .nav-spacer {
    flex: 1;
}

.site-header .site-nav .nav-login-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: .25rem .5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: .95rem;
}

.site-header .site-nav .nav-login-btn:hover {
    color: var(--accent);
    text-decoration: underline;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Header actions (admin button + cart) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sort-select:hover {
    border-color: var(--accent);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-login-btn {
    background: transparent;
    border: 1px solid var(--muted);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.cart-wrapper {
    position: relative;
}

.cart-icon-btn {
    position: relative;
    border: none;
    background: transparent;
    color: var(--accent);
    padding: 0.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cart-popup {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 480px;
    max-width: calc(100vw - 2rem);
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(20,30,60,0.12);
    padding: 0.75rem;
    display: none;
    z-index: 30;
    max-height: calc(100vh - 200px);
    overflow: hidden;
    flex-direction: column;
}

/* Inline Availability (experiment) */
.availability-inline {
    display: block;
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.availability-inline-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom: .75rem;
}
.availability-inline-title {
    font-size:1.1rem;
    font-weight:700;
    color: var(--text);
}
.inline-dismiss {
    border:none;
    background:transparent;
    color:#6b7280;
    font-size:1.1rem;
    cursor:pointer;
}
.availability-inline-items {
    display:flex;
    flex-direction:column;
    gap:.75rem;
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.cart-popup-items {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-shrink: 1;
    min-height: 0;
}

.cart-popup-item {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #f3f4f6;
    word-break: break-word;
}

.cart-popup-summary { 
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.cart-popup-actions { 
    text-align: right;
    flex-shrink: 0;
}
.close-popup { background: transparent; border: none; cursor: pointer; }

/* Admin login modal */
.admin-login-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    z-index: 40;
}

.admin-login-card {
    background: var(--card);
    padding: 1rem;
    border-radius: 8px;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 12px 30px rgba(20,30,60,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-login-card input {
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.cart-link:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.cart-icon {
    width: 20px;
    height: 20px;
}

#cart-count {
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.5rem;
    width: 100%;
}

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

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

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(20, 30, 60, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Products page notice */
#products-page-note {
    border-left: 4px solid var(--accent);
    background: #f1f6ff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #0b3a82;
}
#products-page-note a { color: var(--accent); text-decoration: underline; }
#products-page-note strong { font-weight: 700; }
#products-page-note em { font-style: italic; }
#products-footer {
    margin-top: 1rem;
    max-height: 300px;
    overflow: hidden;
}
#products-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-height: 300px;
}
@media (max-width: 800px) {
    #products-footer .footer-grid { 
        grid-template-columns: 1fr; 
        max-height: none;
    }
}
#products-footer .footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
#products-footer .footer-right {
    display: flex;
    flex-direction: column;
}
#products-footer .footer-section {
    background: transparent;
    border: none;
    padding: 0;
}
#products-footer .footer-title {
    margin: 0 0 .35rem 0;
    font-size: 0.95rem;
    color: #111827;
    font-weight: 600;
}
#products-footer .footer-note {
    border-left: 4px solid #2563eb;
    background: #f1f6ff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-y: auto;
    max-height: 260px;
}
#products-footer .footer-note a { color: #1d4ed8; text-decoration: underline; }
#products-footer .footer-address, 
#products-footer .footer-hours,
#products-footer .footer-contact {
    white-space: normal;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #374151;
}
#products-footer .footer-contact a { 
    color: #1d4ed8; 
    text-decoration: underline; 
    font-size: 0.85rem;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(20, 30, 60, 0.12);
}

/* Sold out state */
.product-card.sold-out {
    opacity: 0.7;
}

.product-card.sold-out:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(20, 30, 60, 0.04);
}

.sold-out-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(220, 38, 38, 0.95);
    color: white;
    font-size: 2rem;
    font-weight: 900;
    padding: 1rem 3rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.1em;
    text-align: center;
    border: 4px solid white;
}

.product-card.sold-out .reserve-btn,
.product-card.sold-out .qty-btn,
.product-card.sold-out .qty-input {
    opacity: 0.5;
    cursor: not-allowed;
}


.product-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s ease;
}

.product-image-container:hover .image-carousel-controls {
    background: rgba(0, 0, 0, 0.3);
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Product Info */
.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-top { 
    display: flex; 
    flex-direction: column; 
    gap: .5rem; 
    min-height: 165px; /* fixed height for name + variant area */
}

.product-stats { 
    display: flex; 
    flex-direction: column; 
    gap: .5rem; 
    margin-bottom: .75rem; 
}

/* Ensure card action buttons sit at the bottom for uniform height */
.product-actions {
    display: flex;
    gap: .5rem;
    margin-top: auto; /* push to bottom */
}
.product-actions .btn-secondary,
.product-actions .reserve-btn {
    flex: 1;
    width: auto; /* override full-width reserve button in this context */
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #111;
    line-height: 1.3;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    line-clamp: 2;
    max-height: 2.6em;
}
.product-name.open-details { cursor: pointer; }
.product-name.open-details:hover { text-decoration: underline; }

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 0.5rem;
    min-height: 32px;
    display: flex;
    align-items: flex-end;
    gap: .4rem;
    flex-wrap: wrap;
}

.product-price .retail-price {
    text-decoration: line-through;
    color: #6b7280;
    font-weight: 600;
    font-size: 1rem;
    margin-right: .5rem;
    line-height: 1.1;
}

.product-price .our-price {
    color: var(--accent);
    font-weight: 700;
    line-height: 1.1;
}

/* Quantity Controls */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.qty-btn {
    background: var(--accent);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #1d4ed8;
}

.qty-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input {
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.qty-available {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 0.5rem 0;
}

/* Inline Variant Selector - Pill Style */
.inline-variant-selector-pills {
    margin-bottom: 0;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.variant-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.variant-pill {
    padding: 0.4rem 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 20px;
    background: white;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.variant-pill:hover:not(.disabled):not(.selected) {
    border-color: var(--accent);
    background: #eff6ff;
    transform: translateY(-1px);
}

.variant-pill.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.variant-pill.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Dimmed state for groups awaiting selection (e.g., sizes until color selected) */
.variant-group.dimmed {
    opacity: 0.6;
}

/* Legacy dropdown style - keeping for backwards compatibility */
/* Legacy .variant-select removed - now using pill buttons */

/* Reserve Button */
.reserve-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.reserve-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.reserve-btn:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

/* Cart Page */
.empty-cart {
    text-align: center;
    padding: 2rem;
}

.empty-cart p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: transparent;
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: none;
    transform: none;
}

.btn-primary.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ==============================
   Product Details Modal (Public)
   ============================== */
.product-details-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    padding: 1rem;
}

.product-details-content {
    background: #fff;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(20,30,60,0.2);
    display: flex;
    flex-direction: column;
}

.pd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.pd-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    padding: 1rem;
    overflow: auto;
}

@media (max-width: 900px) {
    .pd-body { grid-template-columns: 1fr; }
}

.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.pd-main-image-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 66%;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}
.pd-main-image-wrap img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; object-fit: contain;
}

.pd-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.pd-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}
.pd-prev-btn {
    left: 10px;
}
.pd-next-btn {
    right: 10px;
}

.pd-thumbs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.pd-thumb {
    width: 64px; height: 64px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-thumb.active { border-color: var(--accent); }

.pd-info { display: flex; flex-direction: column; gap: 1rem; }
.pd-price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.pd-price .retail { text-decoration: line-through; color: #6b7280; font-weight: 600; font-size: 1rem; margin-right:.5rem; }

.pd-section { display: flex; flex-direction: column; gap: .5rem; }
.pd-section-title { font-weight: 700; color: var(--text); }
.pd-options { display: flex; gap: .5rem; flex-wrap: wrap; }

.option-btn {
    padding: .5rem .75rem;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}
.option-btn:hover { border-color: var(--accent); }
.option-btn[aria-pressed="true"], .option-btn.selected { border-color: var(--accent); background: #eff6ff; color: #1d4ed8; }
.option-btn.unavailable { opacity: .5; cursor: not-allowed; text-decoration: line-through; }

.pd-availability { 
    padding: .75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    color: #92400e;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
}

.pd-availability.in-stock {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.pd-qty-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .5rem;
}

.pd-qty-row label {
    min-width: 70px;
    font-weight: 600;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-table th {
    background: #f3f4f6;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cart-table tr:hover {
    background: #f9fafb;
}

.cart-table .qty-input {
    width: 70px;
    max-width: 70px;
}

.cart-summary {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.summary-line.total {
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #111;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.checkout-section {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
}

.checkout-section h3 {
    margin-top: 0;
}

.warning {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 1rem;
    border-radius: 4px;
    color: #991b1b;
    margin-bottom: 1rem;
}

.warning p {
    margin: 0;
}

.error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 1rem;
    border-radius: 4px;
    color: #991b1b;
}

.error p {
    margin: 0;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #059669;
    background: #f0fdf4;
    color: #166534;
}

/* Confirmation Panel */
.confirmation-panel {
    background: var(--card);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(20, 30, 60, 0.12);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.confirmation-header h2 {
    color: #10b981;
    margin: 0;
    font-size: 2rem;
}

.confirmation-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.confirmation-code {
    text-align: center;
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #86efac;
}

.confirmation-code h3 {
    margin: 0 0 0.5rem 0;
    color: #166534;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-display {
    font-size: 2rem;
    font-weight: bold;
    color: #059669;
    margin: 0;
    letter-spacing: 0.1em;
    font-family: 'Courier New', monospace;
}

.confirmation-details h3,
.confirmation-items h3,
.confirmation-totals {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: var(--text);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
}

.detail-row.highlight {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    font-weight: 600;
}

.detail-row .label {
    color: #6b7280;
    font-weight: 500;
}

.detail-row .value {
    color: var(--text);
    font-weight: 600;
}

.conf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.conf-item-name {
    flex: 1;
    font-weight: 500;
}

.conf-item-qty {
    margin: 0 1rem;
    color: #6b7280;
}

.conf-item-price {
    font-weight: 600;
    color: var(--text);
}

.confirmation-totals {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.total-row.total {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text);
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #e5e7eb;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.confirmation-actions .btn-primary,
.confirmation-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.confirmation-actions .btn-primary {
    background: #10b981;
    color: white;
    border: none;
    cursor: pointer;
}

.confirmation-actions .btn-primary:hover {
    background: #059669;
}

.confirmation-actions .btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.confirmation-actions .btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Print styles for confirmation */
@media print {
    .site-header,
    .site-footer,
    .confirmation-actions {
        display: none !important;
    }
    
    .confirmation-panel {
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .confirmation-header h2 {
        color: black;
    }
    
    .code-display {
        color: black;
    }
}

/* Availability Modal */
.availability-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.availability-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.availability-modal-content h2 {
    margin: 0 0 1rem 0;
    color: #d97706;
    font-size: 1.5rem;
}

.availability-modal-content > p {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
}

.availability-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.availability-item.out-of-stock {
    border-color: #dc2626;
    background: #fef2f2;
}

.availability-item.insufficient {
    border-color: #f59e0b;
    background: #fffbeb;
}

.availability-item.increased-stock {
    border-color: #10b981;
    background: #f0fdf4;
}

.availability-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.availability-item-name {
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.availability-item-status {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
}

.availability-item-status.out-of-stock {
    background: #dc2626;
    color: white;
}

.availability-item-status.insufficient {
    background: #f59e0b;
    color: white;
}

.availability-item-status.increased {
    background: #10b981;
    color: white;
}

.availability-item-info {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.availability-item-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.availability-qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.25rem;
}

.availability-qty-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.availability-qty-btn:hover {
    background: var(--accent);
}

.availability-qty-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.availability-qty-display {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.availability-update-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.availability-update-btn:hover {
    background: #059669;
}

.availability-remove-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.availability-remove-btn:hover {
    background: #b91c1c;
}

.availability-restore-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    flex: 1;
}

.availability-restore-btn:hover {
    background: #059669;
}

.availability-keep-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    flex: 1;
}

.availability-keep-btn:hover {
    background: #4b5563;
}

.availability-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.availability-actions .btn-primary {
    padding: 0.75rem 2rem;
}

/* Reservations Page */
.search-section {
    margin-bottom: 2rem;
}

.search-section input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.reservations-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reservation-card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.reservation-card:hover {
    box-shadow: 0 6px 20px rgba(20, 30, 60, 0.08);
}

.reservation-card.reservation-completed {
    opacity: 0.75;
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reservation-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Courier New', monospace;
}

.reservation-date {
    color: var(--muted);
    font-size: 0.95rem;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.picked-up {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.reservation-items {
    margin: 1rem 0;
}

.reservation-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.reservation-item:last-child {
    border-bottom: none;
}

.pickup-deadline {
    background: #fef3c7;
    border-left: 4px solid #d97706;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #92400e;
}

.reservation-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.reservation-actions button {
    flex: 1;
}


/* Admin Panel */
.login-section {
    max-width: 400px;
    margin: 3rem auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    margin: 0;
}

.admin-search {
    flex: 1;
    display: flex;
    justify-content: center;
}

.admin-search input {
    width: 100%;
    max-width: 480px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
}

.admin-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Inline product list */
.products-list-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-row {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-row-new {
    border: 2px dashed var(--accent);
    background: #f0f9ff;
}

.product-row-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem;
    gap: 1rem;
}

.product-row-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.product-row-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-row-info {
    flex: 1;
    min-width: 0;
}

.product-row-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #111;
}

.product-row-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.product-row-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit, .btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
}

.btn-delete {
    background: #dc2626;
    color: white;
}

.btn-delete:hover {
    background: #b91c1c;
}

.btn-edit svg, .btn-delete svg {
    flex-shrink: 0;
}

/* Inline edit form */
.product-row-edit {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.product-edit-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.edit-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.edit-form-grid .form-group {
    margin-bottom: 0;
}

.edit-form-grid input {
    width: 100%;
}

/* Image selection display */
.edit-images-selected {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    min-height: 100px;
}

.selected-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.selected-image-item:hover {
    border-color: #d1d5db;
}

.selected-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.selected-image-item .image-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    opacity: 0;
}

.selected-image-item:hover .image-remove-btn {
    opacity: 1;
}

.selected-image-item .image-remove-btn:hover {
    background: rgba(185, 28, 28, 1);
    transform: scale(1.1);
}

.no-images-msg {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-select-images {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-images-existing,
.edit-images-previews {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.image-upload-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.image-upload-actions button {
    flex: 1;
}

.edit-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel {
    background: #6b7280;
    color: white;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #4b5563;
}

/* Legacy admin tabs (hide if present) */
.admin-tabs {
    display: none;
}

.tab-content {
    display: none;
}

.product-form {
    max-width: 500px;
}

/* Remove old products list styling - now using inline */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-item {
    display: none; /* Old style - hidden */
}

/* Image upload preview grid */
.image-upload-previews {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}

.image-preview-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.image-preview-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 2px solid #e5e7eb;
}

.image-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}

.image-remove-btn:hover { background: #dc2626; }

.image-upload-progress {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    backdrop-filter: blur(2px);
}

.edit-btn {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: #2563eb;
}

.delete-btn {
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: #b91c1c;
}

/* Responsive */
@media (max-width: 880px) {
    .layout-full {
        grid-template-columns: 1fr;
    }

    .cart-table {
        font-size: 0.9rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .site {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   IMAGE GALLERY MODAL STYLES
   ============================================ */

/* Modal overlay */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal content container */
.gallery-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.gallery-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--heading);
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-icon:hover {
    background: #f3f4f6;
}

/* Gallery body - scrollable */
.gallery-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Upload section */
.gallery-upload-section {
    margin-bottom: 2rem;
}

.gallery-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.gallery-upload-label:hover {
    border-color: var(--accent);
    background: #eff6ff;
}

.gallery-upload-label svg {
    color: #9ca3af;
}

.gallery-upload-label:hover svg {
    color: var(--accent);
}

.gallery-upload-label span {
    font-weight: 600;
    color: var(--heading);
}

.gallery-upload-label small {
    color: var(--muted);
    font-size: 0.875rem;
}

.gallery-upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 6px;
}

/* Upload file item styling */
.upload-file-item {
    display: flex;
    align-items: stretch;
    flex-direction: column; /* default vertical layout; overridden when preview exists */
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* Horizontal layout only when image preview is present */
.upload-file-item.has-preview {
    flex-direction: row;
    align-items: center;
}

/* Preview icon styling */
.upload-file-item .file-preview {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    overflow: hidden;
}

.upload-file-item .file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure name input expands while meta stays to the right */

@media (max-width: 640px) {
    .upload-file-item.has-preview {
        flex-direction: row;
        align-items: flex-start;
    }
    .upload-file-item .file-preview {
        width: 48px;
        height: 48px;
    }
}

.upload-file-item:last-of-type {
    margin-bottom: 0;
}

.upload-file-item .file-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
        flex: 1;
        min-width: 0;
}

.upload-file-item .file-name-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
}

.upload-file-item .file-name-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.upload-file-item .file-name-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.upload-file-item .file-extension {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    padding: 0 0.25rem;
}

.upload-file-item .file-meta {
    display: flex;
    align-items: center;
        gap: 0.75rem;
        flex: 1;
        min-width: 0;
}

.upload-file-item .file-size {
    font-size: 0.875rem;
    color: var(--muted);
    white-space: nowrap;
}

.upload-file-item .file-error {
    font-size: 0.875rem;
    color: #dc2626;
    font-weight: 500;
    flex: 1;
    min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
}

.upload-file-item .btn-retry-upload {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.upload-file-item .btn-retry-upload:hover {
    background: #d97706;
}

.upload-file-item .btn-remove-pending {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.upload-file-item .btn-remove-pending:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-upload-all {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    font-size: 1rem;
}

.gallery-upload-progress .progress-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.gallery-upload-progress .progress-item:last-child {
    margin-bottom: 0;
}

.gallery-upload-progress .progress-bar {
    flex: 1;
        min-width: 80px;
        max-width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.gallery-upload-progress .progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.gallery-upload-progress .progress-status {
    font-size: 0.875rem;
    color: var(--muted);
    min-width: 50px;
    text-align: right;
    flex-shrink: 0;
}

/* Image grid */
.gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.gallery-section-header {
    grid-column: 1 / -1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.gallery-section-header:first-child {
    margin-top: 0;
}

.gallery-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    content-visibility: auto; /* Don't paint offscreen items */
    contain: content; /* Layout/paint containment for smoother scroll */
    contain-intrinsic-size: 160px; /* Reserve space to avoid layout shift */
}

.gallery-image-item:hover {
    border-color: #d1d5db;
    transform: scale(1.02);
}

.gallery-image-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-image-item .selection-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.gallery-image-item.selected .selection-badge {
    opacity: 1;
    transform: scale(1);
}

/* Image Library badges/actions */
.image-lib-item { cursor: default; }
.image-lib-item .image-lib-actions {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.image-lib-item .image-select { background: rgba(255,255,255,.9); padding: 4px 6px; border-radius: 6px; }
.image-lib-item .btn-small { padding: .25rem .5rem; font-size: .8rem; }
.image-lib-item .btn-danger { background: #ef4444; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.image-lib-item .btn-danger:hover { background: #dc2626; }
.usage-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(31,41,55,.9);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
}

/* Gallery footer */
.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Gallery Pagination Controls */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s ease;
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: #f3f4f6;
    border-color: var(--accent);
}

.pagination-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: #6b7280;
}

.pagination-info {
    margin-left: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.gallery-selection-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-selection-info span {
    font-weight: 600;
    color: var(--heading);
}

.gallery-max-info {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 400 !important;
}

.gallery-actions {
    display: flex;
    gap: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-controls {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }
    
    .sort-controls label {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .sort-select {
        flex: 1;
        min-width: 0;
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .cart-popup {
        right: -0.5rem;
        width: min(320px, calc(100vw - 1rem));
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .admin-search { order: 2; }
    .admin-header-actions { order: 3; }
    .admin-header h2 { order: 1; }

    .admin-header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .admin-header-actions button {
        flex: 1;
        min-width: 120px;
        font-size: 0.875rem;
        padding: 0.6rem 0.8rem;
    }
    
    .admin-header-actions button svg {
        width: 14px;
        height: 14px;
    }
    
    .gallery-modal {
        padding: 0.5rem;
    }

    .gallery-modal-content {
        max-height: 95vh;
    }

    .gallery-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .gallery-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .gallery-actions {
        width: 100%;
    }

    .gallery-actions button {
    /* Variant form stacks on mobile */
    .variant-form-row {
        grid-template-columns: 1fr;
    }

        flex: 1;
    }

    /* Mobile cart layout - switch to card view */
    .cart-table {
        display: block;
        overflow-x: visible;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: block;
    }

    .cart-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
        background: white;
    }

    .cart-table td {
        display: block;
        text-align: left;
        padding: 0.5rem 0;
        border: none;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 100px;
        color: #6b7280;
    }

    .cart-table .quantity-control {
        display: inline-flex;
        margin-left: 0;
    }

    .cart-table .btn-danger {
        width: 100%;
        margin-top: 0.5rem;
    }

    .checkout-section {
        padding: 1rem;
    }

    .confirmation-panel {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .admin-header-actions button {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
    
    .gallery-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    .gallery-header h3 {
        font-size: 1.25rem;
    }
    
    /* Smaller cart card styling */
    .cart-table td::before {
        width: 80px;
        font-size: 0.875rem;
    }

    .cart-table td {
        font-size: 0.9rem;
    }

    .cart-summary {
        padding: 1rem;
    }

    .summary-line {
        font-size: 0.9rem;
    }

    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Availability modal mobile */
    .availability-modal {
        padding: 0.5rem;
    }
    
    .availability-modal-content {
        padding: 1rem;
        max-height: 90vh;
    }
    
    .availability-modal-content h2 {
        font-size: 1.25rem;
    }
    
    .availability-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .availability-item-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .availability-qty-control {
        width: 100%;
        justify-content: center;
    }
    
    .availability-update-btn,
    .availability-remove-btn {
        width: 100%;
    }
    
    .confirmation-panel {
        padding: 1rem;
    }
    
    .confirmation-header h2 {
        font-size: 1.5rem;
    }
    
    .code-display {
        font-size: 1.5rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions .btn-primary,
    .confirmation-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .conf-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .conf-item-qty {
        margin: 0;
    }
}

/* Multi-select Category Dropdown */
.category-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-selected {
    min-height: 42px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    transition: border-color 0.2s;
}

.multiselect-selected:hover {
    border-color: #9ca3af;
}

.multiselect-selected:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.multiselect-placeholder {
    color: #9ca3af;
    font-size: 0.95rem;
}

.multiselect-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-remove {
    background: none;
    border: none;
    color: #1e40af;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background 0.15s;
}

.badge-remove:hover {
    background: rgba(30, 64, 175, 0.15);
}

.multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.multiselect-search {
    padding: 0.65rem 0.75rem;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
    outline: none;
}

.multiselect-search:focus {
    background: #f9fafb;
}

.multiselect-options {
    overflow-y: auto;
    max-height: 240px;
}

.multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f3f4f6;
}

.multiselect-option:last-child {
    border-bottom: none;
}

.multiselect-option:hover {
    background: #f9fafb;
}

.multiselect-option input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
}

.multiselect-option span {
    flex: 1;
    font-size: 0.95rem;
}

.multiselect-empty {
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Scrollbar styling for dropdown */
.multiselect-options::-webkit-scrollbar {
    width: 8px;
}

.multiselect-options::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.multiselect-options::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.multiselect-options::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Toggle switch styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all 0.3s ease;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-slider {
    background-color: #10b981;
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.toggle-input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Setting state badge */
.setting-state-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.setting-state-badge.public {
    background: #dcfce7;
    color: #166534;
}
.setting-state-badge.private {
    background: #fee2e2;
    color: #991b1b;
}

/* Settings page grid */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .settings-grid { grid-template-columns: 1fr; }
}

.category-list .category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .6rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    margin-bottom: .5rem;
}

.category-row .name-view {
    font-weight: 600;
}

/* Business Hours Schedule Styles */
.hours-day-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.hours-day-label {
    font-weight: 600;
    min-width: 90px;
    font-size: 0.9rem;
    color: #374151;
}

.hours-input {
    padding: 0.4rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100px;
    flex-shrink: 0;
}

.hours-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.hours-separator {
    font-size: 0.85rem;
    color: #6b7280;
}

.hours-closed-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    margin-left: auto;
    font-size: 0.85rem;
    color: #6b7280;
    user-select: none;
}

.hours-closed-checkbox {
    cursor: pointer;
}

@media (max-width: 600px) {
    .hours-day-row {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .hours-day-label {
        width: 100%;
        min-width: auto;
    }
    .hours-closed-label {
        margin-left: 0;
    }
}

.category-row .name-edit {
    width: 100%;
    padding: .45rem .55rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.row-actions { display:flex; gap:.5rem; }

/* .category-row button styling defined later; closed above to free top-level email editor rules */
/* Email Template Editor Styles */
    .email-template-layout {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 1.5rem;
        align-items: start;
    }

    @media (max-width: 1100px) {
        .email-template-layout {
            grid-template-columns: 1fr;
        }
        .email-variables-sidebar {
            order: -1;
        }
    }

    .email-editor-area {
        flex: 1;
    }

    .email-textarea {
        font-family: 'Courier New', Courier, monospace;
        font-size: 0.9rem;
        line-height: 1.5;
        resize: vertical;
        min-height: 400px;
    }

    .email-variables-sidebar {
        position: sticky;
        top: 1rem;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1.25rem;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .variable-section {
        margin-bottom: 1.5rem;
    }

    .variable-section:last-of-type {
        margin-bottom: 0;
    }

    .variable-category {
        font-size: 0.95rem;
        font-weight: 700;
        color: #111827;
        margin: 0 0 0.5rem 0;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        font-size: 0.85rem;
    }

    .variable-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .variable-btn {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.15s ease;
        text-align: left;
        width: 100%;
    }

    .variable-btn:hover {
        border-color: var(--accent);
        background: #f0f9ff;
        transform: translateX(2px);
    }

    .variable-btn:active {
        transform: translateX(2px) scale(0.98);
    }

    .variable-btn code {
        font-family: 'Courier New', Courier, monospace;
        font-size: 0.85rem;
        font-weight: 600;
        color: #2563eb;
        background: #eff6ff;
        padding: 0.15rem 0.4rem;
        border-radius: 3px;
    }

    .variable-desc {
        font-size: 0.8rem;
        color: #6b7280;
        line-height: 1.3;
    }

    .variable-copied {
        border-color: #10b981 !important;
        background: #f0fdf4 !important;
    }

    .variable-copied code {
        color: #059669 !important;
        background: #d1fae5 !important;
    }
    /* Note: end of email template variable styles */

.category-row .row-actions .btn-primary {
    background: transparent;
    color: var(--accent);
    border: none;
}

.category-row .row-actions .btn-primary:hover {
    text-decoration: underline;
}

.category-row .row-actions .btn-secondary {
    background: #6b7280;
    color: white;
}

.category-row .row-actions .btn-secondary:hover {
    background: #4b5563;
}

.category-row .row-actions .btn-danger {
    background: #dc2626;
    color: white;
}

.category-row .row-actions .btn-danger:hover {
    background: #b91c1c;
}

/* =============================
   Admin: Variant Editor styling
   ============================= */
.variant-row {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: .75rem;
    transition: box-shadow .2s ease, transform .2s ease;
}
.variant-row:hover { box-shadow: 0 6px 20px rgba(20,30,60,0.08); transform: translateY(-1px); }
.variant-row-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem 1rem;
}
.variant-row-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
}
.variant-row-info span:first-child {
    color: var(--text);
    font-weight: 600;
}
.variant-row-actions { display:flex; gap:.5rem; }
/* Collapsed edit panel container */
.variant-row-edit {
    padding: 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Variant Edit Form */
.variant-edit-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variant-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.variant-form-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Reduce width of size, color, quantity inputs in variant form */
.variant-form-col .form-group input[type="text"],
.variant-form-col .form-group input[type="number"],
.variant-form-col .variant-size-selector {
    max-width: 50%;
}

/* Variant image selector (radio buttons with product images) */
.variant-image-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    min-height: 80px;
}

.variant-image-option {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
}

.variant-image-option:hover {
    border-color: #d1d5db;
}

.variant-image-option.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.variant-image-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Form actions row */
.variant-form-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.variant-image-option img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Buttons for variant actions (match admin buttons) */
.btn-edit-variant, .btn-delete-variant {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-edit-variant { background: #3b82f6; color: #fff; }
.btn-edit-variant:hover { background: #2563eb; }
.btn-delete-variant { background: #dc2626; color: #fff; }
.btn-delete-variant:hover { background: #b91c1c; }

/* Make the summary row match the simple, clean look in the mock */
.variants-section .variant-row { box-shadow: none; }
.variants-section .variant-row:hover { box-shadow: none; transform:none; }
.variants-section .variant-row-summary { padding: .75rem .9rem; }
.variants-section .variant-row-info { color: #111827; gap: 1.25rem; }
.variants-section .variant-row-info span { font-weight: 500; }
.variants-section .variant-row-info span + span { color: #6b7280; font-weight: 500; }
.btn-secondary.btn-add-variant { background: #6b7280; color: #fff; }
.btn-secondary.btn-add-variant:hover { background: #4b5563; }

/* Size checkbox list for multi-select */
.size-quantity-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.size-qty-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.size-qty-row .size-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.size-qty-row .qty-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.size-qty-row .btn-remove-size {
    padding: 0.4rem 0.6rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.size-qty-row .btn-remove-size:hover {
    background: #b91c1c;
}

.btn-add-size {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-size:hover {
    background: #059669;
}

.btn-add-size:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.variant-size-checkboxes {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
}

.size-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f3f4f6;
}

.size-checkbox-label:last-child {
    border-bottom: none;
}

.size-checkbox-label:hover {
    background: #f9fafb;
}

.size-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.size-checkbox-label span {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text);
}

/* Scrollbar styling for size list */
.variant-size-checkboxes::-webkit-scrollbar {
    width: 8px;
}

.variant-size-checkboxes::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.variant-size-checkboxes::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.variant-size-checkboxes::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

