/**
 * Luxe Souvenir Indonesia - Store & Custom Previewer Styles
 * Modern, Lightweight, Responsive
 */

/* ==========================================================================
   1. GLOBAL & UTILITY STYLES
   ========================================================================== */
.badge-gold {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}
.badge-emerald {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
}
.badge-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

/* ==========================================================================
   2. NAVBAR CART TRIGGER
   ========================================================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    color: var(--text-heading);
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.cart-toggle-btn:hover {
    border-color: var(--leather-accent);
    color: var(--leather-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cart-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.cart-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    line-height: 1;
}

/* Floating Cart Button for Mobile */
.floating-cart-btn {
    position: fixed;
    bottom: 96px;
    right: 22px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.25s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.08);
    background: #1e293b;
}

.floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* ==========================================================================
   3. LIVE CUSTOM NAME BOX PREVIEW STUDIO
   ========================================================================== */
.box-studio-section {
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.box-studio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.5), transparent);
}

.studio-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px auto;
}

.studio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 119, 6, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.studio-title {
    font-size: 2.3rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.studio-title span {
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.studio-desc {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}

.studio-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Stage Canvas Area */
.studio-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.canvas-container {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16 / 11;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#boxCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-badge-live {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.canvas-badge-live .pulse-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.stage-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    width: 100%;
    max-width: 520px;
}

.btn-stage-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-stage-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-stage-primary {
    flex: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.btn-stage-primary:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

/* Studio Controls */
.studio-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-hint {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 500;
}

.control-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.control-input:focus {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.control-input::placeholder {
    color: #64748b;
}

/* Color & Foil Selectors */
.swatch-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.color-swatch-btn.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    color: #ffffff;
}

.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Font Selector */
.font-pill-group {
    display: flex;
    gap: 8px;
}

.font-pill-btn {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 9px 8px;
    color: #cbd5e1;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-pill-btn.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================================================
   4. CATALOG FILTER & SEARCH BAR
   ========================================================================== */
.catalog-toolbar {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.catalog-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.catalog-search-input {
    width: 100%;
    padding: 14px 48px 14px 46px;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    color: var(--text-heading);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.catalog-search-input:focus {
    outline: none;
    border-color: var(--leather-accent);
    box-shadow: 0 4px 18px rgba(154, 102, 52, 0.15);
}

.search-icon-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    display: none;
}

.category-tabs-wrapper {
    display: flex;
    gap: 8px 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 6px 0 10px;
    width: 100%;
}

.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.category-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    color: var(--text-body);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.category-tab-btn:hover {
    border-color: #20372b;
    color: #20372b;
    background: #f4f3ed;
    transform: translateY(-1px);
}

.category-tab-btn.active {
    background: #20372b;
    color: #ffffff;
    border-color: #20372b;
    box-shadow: 0 4px 14px rgba(32, 55, 43, 0.22);
}

.category-tab-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 700;
}

.category-tab-btn.active .category-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   5. CATALOG PRODUCT CARDS GRID
   ========================================================================== */
.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(154, 102, 52, 0.3);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 11px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f1f5f9;
    overflow: hidden;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-box img {
    transform: scale(1.05);
}

.product-content {
    padding: 18px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--leather-accent);
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: 2.7em;
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs-mini {
    list-style: none;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-specs-mini li {
    font-size: 0.76rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-specs-mini li svg {
    width: 13px;
    height: 13px;
    color: #16a34a;
    flex-shrink: 0;
}

.product-price-section {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.product-price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    font-family: var(--font-heading);
}

.product-price-old {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-moq-badge {
    font-size: 0.74rem;
    color: #16a34a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-card-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    color: var(--text-body);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-card-detail:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--text-heading);
}

.btn-card-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-card-cart:hover {
    background: var(--leather-accent);
    transform: translateY(-1px);
}

/* ==========================================================================
   Clean Luxury Badge Pill (Floating Capsule on Image)
   ========================================================================== */
.clean-badge-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(18, 30, 25, 0.08);
    pointer-events: none;
    transition: all 0.25s ease;
}

.clean-badge-pill.satuan {
    background: rgba(255, 255, 255, 0.94);
    color: #111916;
    border: 1px solid rgba(17, 25, 22, 0.08);
}

.clean-badge-pill.satuan .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 2.5px rgba(22, 163, 74, 0.18);
    display: inline-block;
    flex-shrink: 0;
}

.clean-badge-pill.moq {
    background: rgba(255, 255, 255, 0.94);
    color: #475569;
    border: 1px solid rgba(17, 25, 22, 0.08);
}

.clean-badge-pill.moq .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d97706;
    box-shadow: 0 0 0 2.5px rgba(217, 119, 6, 0.18);
    display: inline-block;
    flex-shrink: 0;
}

.clean-badge-pill.top-right {
    left: auto;
    right: 12px;
}

.product-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 8px;
}

.product-detail-pill.satuan {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.product-detail-pill.satuan .pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
    display: inline-block;
    flex-shrink: 0;
}

.product-detail-pill.moq {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid rgba(202, 138, 4, 0.25);
}

.product-detail-pill.moq .pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ca8a04;
    box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.18);
    display: inline-block;
    flex-shrink: 0;
}

/* Clean Shop Card (Gambar, Harga & Icon Keranjang) */
.clean-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 25, 22, 0.08);
}

.clean-card-bottom .product-price-row {
    margin-bottom: 0;
}

.btn-card-add-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111916;
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(17, 25, 22, 0.15);
    flex-shrink: 0;
}

.btn-card-add-icon:hover {
    background: #20372b;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(32, 55, 43, 0.3);
}

.btn-card-add-icon svg {
    width: 18px;
    height: 18px;
}

/* Empty Catalog Filter State */
.catalog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-light);
}

.catalog-empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Catalog Pagination (10 Produk Per Halaman) */
.catalog-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(17, 25, 22, 0.08);
}

.pagination-info {
    font-size: 0.9rem;
    color: #4f5b56;
    font-weight: 500;
}

.pagination-info strong {
    color: #111916;
    font-weight: 700;
}

.pagination-nav {
    display: flex;
    align-items: center;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-num-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid rgba(17, 25, 22, 0.14);
    color: #111916;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.page-num-btn:hover {
    border-color: #20372b;
    color: #20372b;
    background: #f4f3ed;
    transform: translateY(-1px);
}

.page-num-btn.active {
    background: #20372b;
    color: #ffffff;
    border-color: #20372b;
    box-shadow: 0 4px 12px rgba(32, 55, 43, 0.25);
    font-weight: 700;
    pointer-events: none;
}

.page-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid rgba(17, 25, 22, 0.14);
    color: #111916;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.page-nav-btn svg {
    flex-shrink: 0;
}

.page-nav-btn:hover:not(:disabled) {
    border-color: #20372b;
    color: #20372b;
    background: #f4f3ed;
    transform: translateY(-1px);
}

.page-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    pointer-events: none;
}

.page-ellipsis {
    padding: 0 6px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1rem;
    user-select: none;
}

@media (max-width: 640px) {
    .category-tabs-wrapper {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 18px 10px;
        margin: 0 -18px;
    }

    .category-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .category-tab-btn {
        flex-shrink: 0;
    }

    .catalog-pagination-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-top: 36px;
        padding-top: 22px;
    }

    .page-nav-btn span {
        display: none;
    }

    .page-nav-btn {
        padding: 0 12px;
        min-width: 40px;
        justify-content: center;
    }
}

/* ==========================================================================
   6. CART DRAWER (OFF-CANVAS)
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: #ffffff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-close-btn {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-body);
    transition: all 0.2s ease;
}

.cart-close-btn:hover {
    background: #e2e8f0;
    color: var(--text-heading);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Empty Cart State */
.cart-empty-view {
    text-align: center;
    margin: auto 0;
    padding: 40px 10px;
}

.cart-empty-view svg {
    width: 64px;
    height: 64px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.cart-empty-view h4 {
    font-size: 1.15rem;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.cart-empty-view p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Cart Item Row */
.cart-item {
    display: flex;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    position: relative;
}

.cart-item-img {
    width: 68px;
    height: 68px;
    border-radius: 6px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 4px;
    padding-right: 20px;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--leather-accent);
    margin-bottom: 8px;
}

.cart-item-custom-note {
    font-size: 0.74rem;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px dashed var(--border-subtle);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.qty-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-light);
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: background 0.2s;
}

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

.qty-val {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 8px;
    min-width: 22px;
    text-align: center;
}

.cart-item-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.cart-item-remove-btn:hover {
    color: #dc2626;
}

/* Cart Drawer Footer */
.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: #ffffff;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-heading);
    padding-top: 8px;
    border-top: 1px dashed var(--border-light);
}

.cart-total-amount {
    color: #16a34a;
    font-family: var(--font-heading);
}

.btn-checkout-wa {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    transition: all 0.25s ease;
    margin-bottom: 10px;
}

.btn-checkout-wa:hover {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}

.btn-copy-quote {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-body);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-quote:hover {
    background: #f1f5f9;
    color: var(--text-heading);
}

/* ==========================================================================
   7. QUICK VIEW MODAL
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-body);
    z-index: 5;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--text-heading);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 30px;
    padding: 30px;
}

.modal-img-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-main-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
}

.modal-info-col {
    display: flex;
    flex-direction: column;
}

.modal-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 10px;
}

.modal-price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.modal-price {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-heading);
}

.modal-old-price {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 18px;
}

.modal-section-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.modal-items-list {
    list-style: none;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-items-list li {
    font-size: 0.8rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.modal-items-list li svg {
    width: 14px;
    height: 14px;
    color: #16a34a;
    margin-top: 3px;
    flex-shrink: 0;
}

.modal-custom-input-box {
    margin-bottom: 20px;
}

.modal-custom-input-box label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.modal-custom-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
}

.modal-custom-input:focus {
    border-color: var(--leather-accent);
}

.modal-action-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.modal-qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.modal-qty-btn {
    background: none;
    border: none;
    width: 38px;
    height: 42px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
}

.modal-qty-btn:hover {
    background: #f1f5f9;
}

.modal-qty-input {
    width: 44px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
}

.btn-modal-add-cart {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-add-cart:hover {
    background: var(--leather-accent);
}

/* ==========================================================================
   8. TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification svg {
    color: #4ade80;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
    .studio-grid {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 28px;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .studio-title {
        font-size: 1.8rem;
    }
    .catalog-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
    .cart-drawer {
        max-width: 100%;
    }
}
