/* ============================================
   LEVIVRE - Premium Leather E-Commerce
   ============================================ */

/* --- Base & Reset --- */
* { box-sizing: border-box; }
body { background-color: #F9F6F0; color: #2A1F1D; font-family: 'Lato', sans-serif; }
::selection { background: #D4AF37; color: #2A1F1D; }

/* --- Scroll Animations --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-up.show { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.6s ease-in; }
.fade-in.show { opacity: 1; }

/* --- Hero --- */
.hero-gradient { background: linear-gradient(135deg, rgba(42, 31, 29, 0.3), rgba(42, 31, 29, 0.8)), url('https://images.unsplash.com/photo-1601924994987-69e26d50dc26?q=80&w=2070&auto=format&fit=crop') center/cover fixed; }
.hero-gradient h1 { animation: heroTextIn 1.2s ease-out; }
@keyframes heroTextIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Product Cards --- */
.product-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.product-card .img-wrapper { position: relative; overflow: hidden; background: #f0ece4; }
.product-card .img-main, .product-card .img-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease, transform 0.6s ease; }
.product-card .img-hover { opacity: 0; }
.product-card:hover .img-hover { opacity: 1; }
.product-card:hover .img-main { opacity: 0; transform: scale(1.05); }
.product-card:hover .img-hover { transform: scale(1.05); }
.product-card .quick-view { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.92); transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.product-card:hover .quick-view { transform: translateY(0); }

/* Card hover lift */
.product-card .card-content { transition: transform 0.3s ease; }
.product-card:hover .card-content { transform: translateY(-2px); }

/* Catalog grid cards */
.product-grid-card { background: white; transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.product-grid-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px -12px rgba(42, 31, 29, 0.15); }

/* --- Buttons --- */
.btn-gold { background-color: #D4AF37; color: white; transition: all 0.3s; cursor: pointer; position: relative; overflow: hidden; }
.btn-gold:hover { background-color: #B5952F; transform: translateY(-2px); box-shadow: 0 8px 25px -5px rgba(212, 175, 55, 0.4); }
.btn-gold:active { transform: translateY(0); }
.btn-gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent); transform: translateX(-100%); transition: transform 0.5s; }
.btn-gold:hover::after { transform: translateX(100%); }

.btn-outline { border: 1px solid #4A3525; color: #4A3525; transition: all 0.3s; cursor: pointer; }
.btn-outline:hover { background-color: #4A3525; color: white; transform: translateY(-2px); box-shadow: 0 8px 25px -5px rgba(74, 53, 37, 0.2); }

/* Navbar */
.nav-scrolled { background-color: rgba(249, 246, 240, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 20px -2px rgba(0,0,0,0.08); }
.nav-scrolled .nav-link { color: #2A1F1D; }
.nav-transparent { background-color: transparent; transition: background-color 0.4s; }
.nav-transparent .nav-link { color: white; }
.nav-link { transition: color 0.3s ease; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #D4AF37; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

/* --- Form Elements --- */
input, select, textarea { transition: all 0.3s ease; }
input:focus, select:focus, textarea:focus { border-color: #D4AF37 !important; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); outline: none; }
input.error, select.error, textarea.error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); }

/* Custom checkbox/radio */
input[type="checkbox"].accent-premium-gold, input[type="radio"].accent-premium-gold { accent-color: #D4AF37; }

/* --- Badges & Labels --- */
.status-badge { display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.green { background: #dcfce7; color: #166534; }
.status-badge.blue { background: #dbeafe; color: #1e40af; }
.status-badge.yellow { background: #fef9c3; color: #854d0e; }
.status-badge.red { background: #fee2e2; color: #991b1b; }
.status-badge.gray { background: #f3f4f6; color: #4b5563; }

.discount-tag { position: absolute; top: 12px; left: 12px; background: #D4AF37; color: white; padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; z-index: 2; }

/* --- Price Display --- */
.price-current { font-size: 1.5rem; font-weight: 700; color: #4A3525; }
.price-original { font-size: 0.95rem; color: #9ca3af; text-decoration: line-through; margin-left: 8px; }

/* --- Rating Stars --- */
.stars { color: #D4AF37; display: inline-flex; gap: 2px; }
.stars i { font-size: 14px; }
.stars .empty { color: #d1d5db; }

/* --- Breadcrumbs --- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9ca3af; }
.breadcrumb a { color: #6b7280; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #D4AF37; }
.breadcrumb .separator { color: #d1d5db; }

/* --- Cart Page --- */
.cart-item { transition: all 0.3s ease; }
.cart-item:hover { background: #faf7f2; }
.qty-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; background: white; cursor: pointer; transition: all 0.2s; font-size: 14px; }
.qty-btn:hover { background: #4A3525; color: white; border-color: #4A3525; }
.qty-input { width: 40px; text-align: center; border: none; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; font-size: 14px; padding: 0; }

/* --- Checkout --- */
.checkout-step { position: relative; padding-left: 36px; }
.checkout-step::before { content: ''; position: absolute; left: 14px; top: 24px; bottom: -16px; width: 2px; background: #e5e7eb; }
.checkout-step:last-child::before { display: none; }
.checkout-step .step-number { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.checkout-step.active .step-number { background: #D4AF37; color: white; }
.checkout-step.completed .step-number { background: #166534; color: white; }

/* --- Order Tracking Progress --- */
.track-line { height: 3px; background: #e5e7eb; position: relative; border-radius: 4px; overflow: hidden; }
.track-line .fill { height: 100%; background: linear-gradient(90deg, #D4AF37, #B5952F); transition: width 0.8s ease; }
.track-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 3px solid #e5e7eb; background: white; transition: all 0.4s ease; position: relative; z-index: 2; }
.track-dot.active { border-color: #D4AF37; background: #D4AF37; color: white; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2); }
.track-dot.completed { border-color: #166534; background: #166534; color: white; }

/* --- Admin Panel --- */
.admin-sidebar { scrollbar-width: thin; }
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #4A3525; border-radius: 4px; }
.stat-card { transition: all 0.3s ease; border-radius: 0; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.1); }

.admin-card { background: white; border-radius: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: all 0.3s ease; }
.admin-card:hover { box-shadow: 0 8px 25px -8px rgba(42, 31, 29, 0.12); }

.admin-page-title { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: #2A1F1D; position: relative; padding-bottom: 0.5rem; }
.admin-page-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: #D4AF37; }

.admin-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s ease; border: none; }
.admin-btn-primary { background: #2A1F1D; color: white; }
.admin-btn-primary:hover { background: #4A3525; transform: translateY(-2px); box-shadow: 0 6px 20px -5px rgba(42, 31, 29, 0.3); }
.admin-btn-gold { background: #D4AF37; color: white; }
.admin-btn-gold:hover { background: #B5952F; transform: translateY(-2px); box-shadow: 0 6px 20px -5px rgba(212, 175, 55, 0.3); }
.admin-btn-danger { background: #dc2626; color: white; }
.admin-btn-danger:hover { background: #b91c1c; transform: translateY(-2px); }
.admin-btn-sm { padding: 0.35rem 0.75rem; font-size: 0.7rem; }

.admin-input { border: 1px solid #d1d5db; padding: 0.65rem 1rem; font-size: 0.85rem; transition: all 0.3s ease; width: 100%; background: white; }
.admin-input:focus { border-color: #D4AF37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); outline: none; }
.admin-select { border: 1px solid #d1d5db; padding: 0.65rem 1rem; font-size: 0.85rem; background: white; cursor: pointer; transition: all 0.3s ease; }
.admin-select:focus { border-color: #D4AF37; outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }

.admin-table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 0.85rem 1rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #6b7280; background: #f9fafb; border-bottom: 2px solid #e5e7eb; }
.admin-table td { padding: 0.85rem 1rem; font-size: 0.85rem; border-bottom: 1px solid #f3f4f6; transition: background 0.2s ease; vertical-align: middle; }
.admin-table tbody tr { transition: background 0.2s ease; }
.admin-table tbody tr:hover td { background: #faf7f2; }
.admin-table tbody tr:nth-child(even) td { background: #fcfcfc; }
.admin-table tbody tr:nth-child(even):hover td { background: #f8f4ee; }

.admin-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.65rem; font-size: 0.7rem; font-weight: 700; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px; }
.admin-badge-green { background: #dcfce7; color: #166534; }
.admin-badge-yellow { background: #fef9c3; color: #854d0e; }
.admin-badge-red { background: #fee2e2; color: #991b1b; }
.admin-badge-gray { background: #f3f4f6; color: #4b5563; }
.admin-badge-blue { background: #dbeafe; color: #1e40af; }

.admin-sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; border-radius: 0; transition: all 0.2s ease; font-size: 0.85rem; color: #d1d5db; text-decoration: none; }
.admin-sidebar-link:hover { background: rgba(255,255,255,0.06); color: #D4AF37; }
.admin-sidebar-link.active { background: rgba(212, 175, 55, 0.1); color: #D4AF37; border-left: 3px solid #D4AF37; }

.admin-empty-state { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
.admin-empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.admin-stat-card { background: white; padding: 1.5rem; border-top: 4px solid; transition: all 0.3s ease; }
.admin-stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.1); }
.admin-stat-card .stat-icon { color: inherit; opacity: 0.2; font-size: 2rem; }
.admin-stat-card .stat-value { font-size: 1.75rem; font-weight: 800; margin: 0.25rem 0; }
.admin-stat-card .stat-label { font-size: 0.8rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }

.admin-timeline-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #e5e7eb; background: white; transition: all 0.3s ease; }
.admin-timeline-dot.completed { background: #166534; border-color: #166534; }
.admin-timeline-dot.active { background: #D4AF37; border-color: #D4AF37; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2); }

.admin-pagination { display: flex; align-items: center; gap: 0.25rem; }
.admin-pagination a, .admin-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 0.5rem; font-size: 0.8rem; border: 1px solid #e5e7eb; background: white; color: #4b5563; text-decoration: none; transition: all 0.2s ease; }
.admin-pagination a:hover { background: #f9fafb; border-color: #D4AF37; color: #D4AF37; }
.admin-pagination .active { background: #2A1F1D; border-color: #2A1F1D; color: white; }

.admin-section-title { font-size: 1rem; font-weight: 700; color: #2A1F1D; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 0.5rem; }
.admin-section-title i { color: #D4AF37; }

@keyframes adminFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.admin-fade-in { animation: adminFadeIn 0.4s ease-out; }

/* --- Admin Product Form --- */
.admin-form-card { background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: all 0.3s ease; position: relative; }
.admin-form-card:hover { box-shadow: 0 8px 30px -10px rgba(42,31,29,0.1); }
.admin-form-card .card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 0.75rem; }
.admin-form-card .card-header i { color: #D4AF37; font-size: 1.1rem; }
.admin-form-card .card-header h2 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #2A1F1D; }
.admin-form-card .card-body { padding: 1.5rem; }

.admin-form-label { display: block; font-size: 0.78rem; font-weight: 600; color: #374151; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.4px; }
.admin-form-label .required { color: #dc2626; margin-left: 2px; }

.admin-form-input, .admin-form-select, .admin-form-textarea {
    width: 100%; border: 1px solid #d1d5db; padding: 0.7rem 1rem; font-size: 0.88rem;
    transition: all 0.3s ease; background: white; color: #2A1F1D;
    font-family: 'Lato', sans-serif;
}
.admin-form-input:focus, .admin-form-select:focus, .admin-form-textarea:focus {
    border-color: #D4AF37; box-shadow: 0 0 0 3px rgba(212,175,55,0.12); outline: none;
}
.admin-form-input::placeholder, .admin-form-textarea::placeholder { color: #9ca3af; font-size: 0.85rem; }
.admin-form-input.error, .admin-form-select.error, .admin-form-textarea.error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
.admin-form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.admin-form-textarea.large { min-height: 180px; }

.admin-form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.admin-form-select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AF37' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); }

.admin-form-checkbox { width: 1.1rem; height: 1.1rem; accent-color: #D4AF37; cursor: pointer; }
.admin-form-checkbox-label { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.88rem; color: #374151; font-weight: 500; }

.admin-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.admin-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
.admin-form-full { grid-column: 1 / -1; }
@media (max-width: 768px) {
    .admin-form-grid-2, .admin-form-grid-3 { grid-template-columns: 1fr; }
}

/* Image Upload Zone */
.admin-img-upload-zone {
    border: 2px dashed #d1d5db; padding: 2.5rem 1.5rem; text-align: center; cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94); background: #fafafa;
    position: relative; overflow: hidden;
}
.admin-img-upload-zone::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.03), rgba(212,175,55,0.06));
    opacity: 0; transition: opacity 0.35s ease;
}
.admin-img-upload-zone:hover::before, .admin-img-upload-zone.dragover::before { opacity: 1; }
.admin-img-upload-zone:hover, .admin-img-upload-zone.dragover { border-color: #D4AF37; background: #fefcf5; }
.admin-img-upload-zone .icon { font-size: 2.5rem; color: #d1d5db; margin-bottom: 0.75rem; transition: all 0.3s ease; }
.admin-img-upload-zone:hover .icon, .admin-img-upload-zone.dragover .icon { color: #D4AF37; transform: translateY(-4px); }
.admin-img-upload-zone .text { font-size: 0.88rem; color: #6b7280; }
.admin-img-upload-zone .subtext { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
.admin-img-upload-zone input[type="file"] { display: none; }

/* Image Preview Cards */
.admin-img-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.admin-img-preview-card {
    background: white; border: 1px solid #e5e7eb; overflow: hidden;
    transition: all 0.3s ease; position: relative;
}
.admin-img-preview-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.admin-img-preview-card .img-wrap { position: relative; width: 100%; padding-top: 75%; overflow: hidden; background: #f3f4f6; }
.admin-img-preview-card .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.admin-img-preview-card:hover .img-wrap img { transform: scale(1.08); }
.admin-img-preview-card .img-actions { padding: 0.5rem; }
.admin-img-preview-card .img-actions .alt-input {
    width: 100%; border: none; border-bottom: 1px solid #e5e7eb; padding: 0.3rem 0.4rem;
    font-size: 0.7rem; color: #4b5563; background: transparent; transition: border-color 0.2s;
}
.admin-img-preview-card .img-actions .alt-input:focus { outline: none; border-color: #D4AF37; }
.admin-img-preview-card .img-actions .alt-input::placeholder { color: #d1d5db; }
.admin-img-preview-card .img-actions .btn-row { display: flex; gap: 0.25rem; margin-top: 0.35rem; }
.admin-img-preview-card .img-actions .btn-row button, .admin-img-preview-card .img-actions .btn-row span {
    flex: 1; font-size: 0.65rem; padding: 0.25rem 0.3rem; text-align: center; border: none; cursor: pointer;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; transition: all 0.2s;
}
.admin-img-preview-card .img-actions .btn-row .btn-primary-gold { background: #D4AF37; color: white; }
.admin-img-preview-card .img-actions .btn-row .btn-primary-gold:hover { background: #B5952F; }
.admin-img-preview-card .img-actions .btn-row .btn-primary-green { background: #16a34a; color: white; cursor: default; }
.admin-img-preview-card .img-actions .btn-row .btn-danger { background: #dc2626; color: white; flex: 0 0 auto; padding: 0.25rem 0.5rem; }
.admin-img-preview-card .img-actions .btn-row .btn-danger:hover { background: #b91c1c; }

.admin-img-preview-card .primary-badge {
    position: absolute; top: 0.4rem; left: 0.4rem; background: #16a34a; color: white;
    font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Submit Button */
.admin-form-submit {
    width: 100%; padding: 0.9rem 1.5rem; font-size: 0.85rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer;
    background: #2A1F1D; color: white; transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    position: relative; overflow: hidden;
}
.admin-form-submit::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: translateX(-100%); transition: transform 0.6s;
}
.admin-form-submit:hover::after { transform: translateX(100%); }
.admin-form-submit:hover { background: #4A3525; transform: translateY(-2px); box-shadow: 0 8px 25px -8px rgba(42,31,29,0.4); }
.admin-form-submit:active { transform: translateY(0); }
.admin-form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.admin-form-submit:disabled::after { display: none; }
.admin-form-submit .spinner { display: none; }
.admin-form-submit.loading .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
.admin-form-submit.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Section divider gold accent */
.admin-form-divider { height: 3px; width: 40px; background: #D4AF37; margin: 0 0 1rem 0; }

/* Back button */
.admin-back-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border: 1px solid #d1d5db; font-size: 0.8rem; color: #6b7280; background: white; cursor: pointer; transition: all 0.25s ease; text-decoration: none; }
.admin-back-btn:hover { border-color: #D4AF37; color: #D4AF37; background: #fefcf5; }

/* Image counter badge */
.admin-img-count { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: #6b7280; background: #f3f4f6; padding: 0.2rem 0.6rem; }

/* --- Tables --- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; background: #f9fafb; border-bottom: 2px solid #e5e7eb; }
.data-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #f3f4f6; }
.data-table tr:hover td { background: #faf7f2; }

/* --- Toast --- */
#toast { transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease; transform: translateY(20px); opacity: 0; }
#toast.show { transform: translateY(0); opacity: 1; }

/* --- Quantity Selector --- */
.qty-selector { display: inline-flex; align-items: center; border: 1px solid #d1d5db; overflow: hidden; }
.qty-selector button { width: 36px; height: 36px; border: none; background: none; cursor: pointer; font-size: 16px; color: #4b5563; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-selector button:hover { background: #4A3525; color: white; }
.qty-selector input { width: 44px; height: 36px; text-align: center; border: none; border-left: 1px solid #d1d5db; border-right: 1px solid #d1d5db; font-size: 14px; font-weight: 600; -moz-appearance: textfield; }
.qty-selector input::-webkit-inner-spin-button, .qty-selector input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Category Cards --- */
.category-card { position: relative; overflow: hidden; cursor: pointer; border-radius: 0; }
.category-card img { transition: transform 0.7s ease; }
.category-card:hover img { transform: scale(1.1); }
.category-card .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42,31,29,0.6) 0%, rgba(42,31,29,0.1) 100%); transition: all 0.4s ease; }
.category-card:hover .overlay { background: linear-gradient(0deg, rgba(42,31,29,0.8) 0%, rgba(42,31,29,0.2) 100%); }
.category-card .title { position: absolute; bottom: 24px; left: 24px; color: white; font-family: '"Playfair Display"', serif; font-size: 1.5rem; transform: translateY(0); transition: transform 0.4s ease; }
.category-card:hover .title { transform: translateY(-8px); }

/* --- Image Gallery (Product Detail) --- */
.gallery-thumb { cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease; opacity: 0.6; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: #D4AF37; opacity: 1; }

/* --- Color Swatches --- */
.color-swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: all 0.25s ease; }
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: #D4AF37; box-shadow: 0 0 0 2px white, 0 0 0 4px #D4AF37; }

/* --- Size Selector --- */
.size-option { min-width: 40px; height: 40px; border: 1px solid #d1d5db; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.25s ease; background: white; font-size: 13px; font-weight: 600; }
.size-option:hover { border-color: #4A3525; }
.size-option.active { background: #4A3525; color: white; border-color: #4A3525; }

/* --- Section Dividers --- */
.section-divider { width: 60px; height: 2px; background: #D4AF37; margin: 0 auto; }

/* --- Category page header banners --- */
.cat-header { position: relative; height: 300px; overflow: hidden; }
.cat-header img { width: 100%; height: 100%; object-fit: cover; }
.cat-header .overlay { position: absolute; inset: 0; background: linear-gradient(rgba(42,31,29,0.3), rgba(42,31,29,0.7)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; }
.cat-header h1 { font-family: '"Playfair Display"', serif; font-size: 3rem; margin-bottom: 0.5rem; }

/* --- Modal Transitions --- */
.modal-overlay { transition: opacity 0.3s ease; }
.modal-content { transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease; }
.modal-overlay.hide { opacity: 0; pointer-events: none; }
.modal-overlay.hide .modal-content { transform: scale(0.95) translateY(10px); }

/* --- Search Suggestions --- */
.search-suggestion { padding: 10px 16px; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; gap: 12px; }
.search-suggestion:hover { background: #f3f0ea; }
.search-suggestion img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

/* --- Loading Skeleton --- */
.skeleton { background: linear-gradient(90deg, #f0ece4 25%, #e5dfd5 50%, #f0ece4 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F9F6F0; }
::-webkit-scrollbar-thumb { background: #C48A54; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4A3525; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-gradient h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .hero-gradient { background-attachment: scroll; }
    .hero-gradient h1 { font-size: 2.2rem; }
    .hero-gradient p { font-size: 1rem; }
    .cat-header h1 { font-size: 2rem; }
    .cat-header { height: 200px; }
    .stat-card { margin-bottom: 1rem; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 8px 10px; }
}
@media (max-width: 480px) {
    .hero-gradient h1 { font-size: 1.8rem; }
    .price-current { font-size: 1.2rem; }
}
