:root {
    --primary-accent: #47245b;
    --secondary-accent: #a13a6f;
    --light-neutral: #ffffff;
    --dark-neutral: #000000;
    --gray-light: #f4f4f6;
    --gray-dark: #121212;
    --text-muted: #888;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-neutral);
    color: var(--light-neutral);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--secondary-accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--light-neutral);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--primary-accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-neutral);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--light-neutral);
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User Welcome Auto-Fade */
.user-welcome {
    font-size: 0.9rem;
    color: var(--secondary-accent);
    display: inline-block;
    white-space: nowrap;
}

/* Wide Logo Styling */
.logo-wide {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Redesigned Cart Drawer & Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 200;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    display: block;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background-color: #110d16;
    border-left: 1px solid rgba(161, 58, 111, 0.3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 201;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(71, 36, 91, 0.2);
}

.cart-title-wrap h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--light-neutral);
    letter-spacing: 0.5px;
}

.cart-drawer-count {
    font-size: 0.8rem;
    color: var(--secondary-accent);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--light-neutral);
}

/* Cart Body & Cards */
.cart-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-cart-state {
    text-align: center;
    margin: auto 0;
    color: var(--text-muted);
}

.empty-cart-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-cart-state h4 {
    color: var(--light-neutral);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.empty-cart-state p {
    font-size: 0.85rem;
}

.cart-item-card {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    transition: border-color 0.2s ease;
}

.cart-item-card:hover {
    border-color: rgba(161, 58, 111, 0.4);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #000;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.cart-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--light-neutral);
    line-height: 1.3;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.remove-item-btn:hover {
    color: #ff4d4d;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--light-neutral);
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-val {
    padding: 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-price {
    font-weight: 700;
    color: var(--secondary-accent);
    font-size: 0.95rem;
}

/* Cart Footer */
.cart-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.free-shipping-tag {
    font-size: 0.8rem;
    color: #4cd964;
}

.subtotal-row {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--light-neutral);
    margin-top: 10px;
    margin-bottom: 18px;
}

.checkout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-accent);
    color: var(--light-neutral);
}

.btn-primary:hover {
    background-color: #ba4783;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-accent);
    color: var(--light-neutral);
}

.btn-outline:hover {
    background-color: var(--primary-accent);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-accent), var(--dark-neutral));
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 25px;
}

/* Products Grid & Cards */
.section {
    padding: 50px 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-accent);
    padding-left: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--gray-dark);
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary-accent);
    font-weight: 700;
}

.product-title {
    font-size: 1.1rem;
    color: var(--light-neutral);
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Filters */
.filter-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background-color: var(--gray-dark);
    padding: 15px;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-control {
    background-color: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
}

/* Slide-out Cart Drawer */
.cart-icon-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    color: #fff;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary-accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 200;
}

.cart-overlay.open { display: block; }

.cart-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 350px; height: 100%;
    background: var(--gray-dark);
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    z-index: 201;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open { right: 0; }

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

.cart-body { padding: 20px; flex-grow: 1; overflow-y: auto; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.cart-item-details { flex-grow: 1; }
.cart-item-details h4 { font-size: 0.9rem; }

.cart-footer { padding: 20px; border-top: 1px solid #333; }
.subtotal { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: bold; }

/* Forms & Cards */
.flex-center { display: flex; justify-content: center; align-items: center; min-height: 60vh; }
.auth-card, .form-card, .summary-card, .receipt-card {
    background-color: var(--gray-dark);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #222;
    width: 100%;
}
.auth-card { max-width: 400px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; }
.auth-redirect { margin-top: 15px; font-size: 0.85rem; text-align: center; }

/* Checkout & Receipt */
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-top: 15px; }
.receipt-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.receipt-table th, .receipt-table td { padding: 10px; text-align: left; border-bottom: 1px solid #333; }
.status-badge { background: green; color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; }

/* Alerts */
.alert { padding: 10px; border-radius: 4px; margin-bottom: 15px; }
.alert-danger { background-color: #721c24; color: #f8d7da; }

/* Footer */
.footer {
    background-color: #050505;
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

.logo-wide {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Layout & Grid Helpers */
.form-row {
    display: flex;
    gap: 15px;
}
.form-group.half { flex: 1; }
.form-group.third { flex: 1; }

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}

.page-header {
    margin-bottom: 30px;
}
.page-header h1 { font-size: 2.2rem; }
.subtitle { color: var(--text-muted); font-size: 0.95rem; }

/* Checkout Redesign */
.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-section-title:first-child { margin-top: 0; }

.step-num {
    background: var(--secondary-accent);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.checkout-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.checkout-item-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.checkout-item-info { flex-grow: 1; }
.checkout-item-name { font-size: 0.9rem; font-weight: 600; line-height: 1.2; }
.checkout-item-qty { font-size: 0.8rem; color: var(--text-muted); }
.checkout-item-price { font-weight: bold; color: var(--light-neutral); }

.summary-items-wrapper { max-height: 280px; overflow-y: auto; margin-bottom: 15px; }
.summary-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 12px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; }
.summary-row.total-row { font-size: 1.2rem; font-weight: bold; color: var(--light-neutral); margin-top: 10px; }
.free-badge { color: #4cd964; font-weight: bold; font-size: 0.85rem; }

/* Receipt Overlap Fix & Modern Styling */
.receipt-card {
    background-color: var(--gray-dark);
    border: 1px solid rgba(161, 58, 111, 0.3);
    border-radius: 12px;
    padding: 35px;
    max-width: 750px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.receipt-header {
    text-align: center;
    margin-bottom: 30px;
}

.status-badge {
    background: #1e7e34;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.receipt-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.order-ref {
    color: var(--secondary-accent);
    font-size: 1.1rem;
}

.receipt-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-block h4 {
    color: var(--secondary-accent);
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.info-block p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

.receipt-notes {
    margin-top: 8px;
    font-style: italic;
    color: var(--text-muted) !important;
}

.table-responsive { overflow-x: auto; margin-bottom: 25px; }

.receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-table th {
    background: rgba(71, 36, 91, 0.3);
    color: var(--light-neutral);
    padding: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.receipt-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    vertical-align: middle;
}

.table-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.receipt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.receipt-total-box {
    display: flex;
    flex-direction: column;
}

.receipt-total-box span { font-size: 0.85rem; color: var(--text-muted); }
.receipt-total-box .total-amount { font-size: 1.8rem; font-weight: bold; color: var(--secondary-accent); }

@media (max-width: 600px) {
    .receipt-body { grid-template-columns: 1fr; }
    .receipt-footer { flex-direction: column; gap: 15px; text-align: center; }
}

/* Admin Action Button */
.catalog-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-add-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--secondary-accent, #a13a6f);
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(161, 58, 111, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.admin-add-btn:hover {
    transform: scale(1.08);
    background-color: #be4885;
}

/* Modal Overlay & Container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--gray-dark, #181818);
    border: 1px solid rgba(161, 58, 111, 0.4);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #fff;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.checkbox-group label {
    cursor: pointer;
    color: #ccc;
    font-size: 0.95rem;
}

/* Wide Modal Customizations */
.modal-card.modal-wide {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-two-col {
    display: flex;
    gap: 20px;
}

.modal-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents input overflow */
}

/* Compact Drop Zone for Edit Modal */
.compact-drop-zone {
    min-height: 120px;
    max-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.compact-drop-zone .drop-zone-preview {
    max-height: 120px;
    object-fit: contain;
}

/* Responsive Collapse for Small Screens */
@media (max-width: 768px) {
    .modal-two-col {
        flex-direction: column;
        gap: 0;
    }
}

/* Drag & Drop Upload Zone */
.drop-zone {
    position: relative;
    border: 2px dashed rgba(161, 58, 111, 0.5);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--secondary-accent);
    background-color: rgba(161, 58, 111, 0.1);
}

.drop-zone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone-prompt p {
    color: var(--text-muted, #888);
    font-size: 0.9rem;
    pointer-events: none;
}

.drop-zone-prompt span {
    color: var(--secondary-accent);
    font-weight: 600;
    text-decoration: underline;
}

.drop-zone-preview {
    max-width: 100%;
    max-height: 140px;
    border-radius: 6px;
    object-fit: contain;
    pointer-events: none;
}

/* Admin Edit Mode Controls Layout */
.admin-controls-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

#toggle-edit-mode-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px 14px;
}

/* Toggle Switch Styling */
.switch-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.switch-container input[type="checkbox"] {
    display: none;
}

.switch-slider {
    width: 44px;
    height: 24px;
    background-color: #555;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.3s;
}

.switch-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.switch-container input[type="checkbox"]:checked + .switch-slider {
    background-color: var(--secondary-accent, #a13a6f);
}

.switch-container input[type="checkbox"]:checked + .switch-slider::before {
    transform: translateX(20px);
}

.switch-label {
    font-size: 0.9rem;
    font-weight: bold;
}

/* Staged Action Styling Indicators */
.product-card.staged-add {
    outline: 2px dashed #28a745;
}

.product-card.staged-edit {
    outline: 2px dashed #ffc107;
}

:root {
    --primary-accent: #47245b;
    --secondary-accent: #a13a6f;
    --light-neutral: #ffffff;
    --dark-neutral: #000000;
    --gray-light: #f4f4f6;
    --gray-dark: #121212;
    --text-muted: #888;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-neutral);
    color: var(--light-neutral);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--secondary-accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--light-neutral);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid var(--primary-accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wide {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--light-neutral);
    font-weight: 500;
    padding: 8px 12px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-welcome {
    font-size: 0.9rem;
    color: var(--secondary-accent);
    white-space: nowrap;
}

/* Hamburger & Mobile Navigation */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--light-neutral);
    border-radius: 2px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 299;
}

.mobile-nav-overlay.open {
    display: block;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--gray-dark);
    border-right: 1px solid rgba(161, 58, 111, 0.3);
    z-index: 300;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.open {
    left: 0;
}

.mobile-nav-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-body a {
    font-size: 1.1rem;
    color: var(--light-neutral);
    padding: 10px 0;
}

.mobile-user-greeting {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.nav-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* Slide-out Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 200;
}

.cart-overlay.open {
    display: block;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background-color: #110d16;
    border-left: 1px solid rgba(161, 58, 111, 0.3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 201;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(71, 36, 91, 0.2);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.cart-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-card {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--light-neutral);
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Touch-Friendly Buttons & Inputs */
.btn {
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--secondary-accent);
    color: var(--light-neutral);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-accent);
    color: var(--light-neutral);
}

.btn-block {
    width: 100%;
}

.form-control {
    background-color: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 12px 14px;
    border-radius: 6px;
    width: 100%;
    font-size: 1rem;
    min-height: 44px;
}

/* Sections & Grids */
.section {
    padding: 40px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--gray-dark);
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

/* Filters */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    background-color: var(--gray-dark);
    padding: 15px;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

/* Layout Helpers */
.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group.half, .form-group.third {
    flex: 1;
}

/* Checkout Page */
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.auth-card, .form-card, .summary-card, .receipt-card {
    background-color: var(--gray-dark);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #222;
    width: 100%;
}

/* Admin Modals & Controls */
.catalog-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.admin-controls-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-add-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--secondary-accent);
    color: #fff;
    font-size: 1.8rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
    padding: 15px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card.modal-wide {
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--gray-dark);
    border: 1px solid rgba(161, 58, 111, 0.4);
    border-radius: 12px;
    padding: 25px;
}

.modal-two-col {
    display: flex;
    gap: 20px;
}

.modal-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets & Small Desktops (max-width: 992px) */
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-links, .nav-auth-btn, #user-welcome-msg {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-img {
        height: 160px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .modal-two-col {
        flex-direction: column;
        gap: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .cart-drawer {
        width: 100vw;
    }

    .receipt-body {
        grid-template-columns: 1fr;
    }

    .receipt-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Extra Small Screens (max-width: 480px) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .catalog-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-controls-wrap {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================
   FOOTER & FLOATING WHATSAPP BUTTON
   ========================================== */

.footer {
    background-color: #050505;
    padding: 50px 0 0 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--light-neutral, #ffffff);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--light-neutral, #ffffff);
}

.footer-col p {
    font-size: 0.9rem;
    color: #888888;
    line-height: 1.6;
}

.footer-email {
    margin-top: 12px;
    font-weight: 500;
}

.footer-email a {
    color: var(--secondary-accent, #a13a6f);
}

.footer-email a:hover {
    text-decoration: underline;
}

/* Center Logo Column */
.footer-col-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    height: 55px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    transform: translateX(4px);
}

.social-link.tiktok:hover { color: #ff0050; }
.social-link.instagram:hover { color: #e1306c; }
.social-link.whatsapp:hover { color: #25d366; }

/* Copyright Bottom Bar */
.footer-bottom {
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #888888;
    margin: 0;
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive Footer adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col-center {
        order: -1;
    }

    .social-links {
        align-items: center;
    }

    .whatsapp-float-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Card Image Container & Sale Badge */
.product-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sale-stamp {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e63946;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

/* Pricing Formatting */
.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #888888;
    font-size: 1rem;
}

.sale-price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Make card image cursor pointer for details view */
.clickable-product-card .product-img-wrapper,
.clickable-product-card .product-title {
    cursor: pointer;
}

/* Base Cart Drawer Style (Hidden off-screen or zeroed) */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%; /* Hide completely off-screen on mobile */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out; /* Smooth slide animation */
}

/* Open State */
.cart-drawer.open {
    right: 0; /* Slide into view */
}

/* Cart Overlay Backdrop */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.cart-overlay.open {
    visibility: visible;
    opacity: 1;
}

/* --- Cart Drawer Theme Matching --- */
.cart-drawer {
    background-color: #1a1a1a; /* Match your website's dark background color */
    color: #e0e0e0;            /* Primary text color */
    border-left: 1px solid rgba(161, 58, 111, 0.3); /* Optional accent border */
}

/* Cart Header */
.cart-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-title-wrap h3 {
    color: #ffffff;
}

.cart-drawer-count {
    color: #a13a6f; /* Use your site's secondary accent color */
}

/* Close button */
.cart-header .close-btn {
    color: #ffffff;
}
.cart-header .close-btn:hover {
    color: #a13a6f;
}

/* Empty State Styling */
.cart-drawer .empty-cart-state h4 {
    color: #ffffff;
}
.cart-drawer .empty-cart-state p {
    color: #b0b0b0;
}

/* Individual Cart Item Cards */
.cart-item-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.cart-item-title {
    color: #ffffff;
}

.cart-item-price {
    color: #ffffff;
}

/* Quantity Control Buttons inside Cart Items */
.qty-controls {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-btn {
    color: #ffffff;
    background: transparent;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-val {
    color: #ffffff;
}

.remove-item-btn {
    color: #ff6b6b;
}

/* Cart Footer / Summary */
.cart-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #151515; /* Slightly darker or matching shade for footer */
}

.cart-summary-row {
    color: #b0b0b0;
}

.cart-summary-row.subtotal-row {
    color: #ffffff;
}

#cart-subtotal-val {
    color: #ffffff;
}

.free-shipping-tag {
    color: #a13a6f;
}

/* --- Hero Video/GIF Background Styling --- */
.hero {
    position: relative;
    overflow: hidden;
    /* Remove or override any existing background gradients that block the video */
    background: var(--dark-neutral) !important; 
    padding: 100px 20px; /* Optional: adjust vertical padding if needed */
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

/* Dark semi-transparent overlay to keep text readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); 
    z-index: 2;
}

/* Ensure text sits on top of video and overlay */
.hero-content {
    position: relative;
    z-index: 3;
}