@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-body: #fdebd0;
    --text-body: #1a1a1a;
    --card-bg: #fdebd0;
    --card-border: #e8dcc8;
    --input-bg: #ffffff;
    --navbar-bg: #0a0a0a;
    --footer-bg: #0a0a0a;
    --gold: #c9a84c;
    --gold-dark: #b5952f;
    --gray: #888888;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Nunito', sans-serif;
    --transition: all 0.3s ease;
    --br-radius: 8px;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.12);
    --color-gold: #c9a84c;
    --color-gold-dark: #b5952f;
    --color-gray: #888888;
    --color-black: #0a0a0a;
    --color-offwhite: #fdebd0;
    --color-beige: #fdebd0;
    --color-beige-dark: #e8dcc8;
    --bg-main: #fdebd0;
    --text-main: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #fdebd0;
}

body {
    font-family: var(--font-body);
    background-color: #fdebd0;
    color: #1a1a1a;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: transparent;
}

/* ===== NAVBAR REDESIGN ===== */
.announcement-bar {
    background-color: #000000;
    color: #c9a84c;
    text-align: center;
    padding: 6px 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #111;
}

.main-navbar-row {
    background-color: #0a0a0a;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1f1f1f;
}

.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo-link {
    display: inline-block;
}

.navbar-logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s;
}

.navbar-logo-img:hover {
    transform: scale(1.02);
}

.navbar-search-container {
    flex: 0 1 450px;
    margin: 0 20px;
}

.navbar-search-form {
    position: relative;
    width: 100%;
}

.navbar-search-input {
    width: 100%;
    background-color: #151515;
    border: 1px solid #2d2d2d;
    border-radius: 25px;
    padding: 10px 50px 10px 20px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
}

.navbar-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.2);
    background-color: #1a1a1a;
}

.navbar-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.navbar-search-btn:hover {
    color: #ffffff;
}

.navbar-actions-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.navbar-action-btn i {
    font-size: 1.2rem;
}

.navbar-action-btn:hover {
    color: #ffffff;
}

.cart-badge-wrapper {
    position: relative;
}

.navbar-cart-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    background-color: var(--gold);
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.navbar-hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Second Row - Category Navigation */
.categories-navbar-row {
    background-color: #050505;
    padding: 8px 0;
    border-bottom: 2px solid var(--gold);
    display: block;
}

.categories-menu-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.categories-menu-item {
    position: relative;
}

.categories-menu-item > a {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: color 0.3s;
}

.categories-menu-item > a:hover {
    color: var(--gold);
}

.categories-menu-item > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.categories-menu-item > a:hover::after {
    width: 100%;
}

.categories-chevron {
    font-size: 0.65rem;
    transition: transform 0.3s;
}

.categories-menu-item:hover .categories-chevron {
    transform: rotate(180deg);
}

/* Category Submenu Dropdown */
.categories-submenu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #0d0d0d;
    min-width: 190px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 8px;
}

.categories-submenu-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #d1d1d1;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.categories-submenu-dropdown li a:hover {
    background-color: #151515;
    color: var(--gold);
    padding-left: 25px;
}

.has-submenu-dropdown:hover .categories-submenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== MOBILE DRAWER MENU ===== */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

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

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background-color: #0a0a0a;
    z-index: 9999;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header-row {
    padding: 20px;
    border-bottom: 1px solid #1f1f1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gold);
}

.drawer-header-row h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.drawer-close-trigger {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-content-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-search-bar {
    margin-bottom: 25px;
}

.drawer-menu-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drawer-menu-item {
    border-bottom: 1px solid #151515;
}

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

.drawer-menu-item a {
    display: block;
    padding: 12px 5px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.drawer-menu-item a:hover {
    color: var(--gold);
}

.drawer-submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.drawer-submenu-header a {
    flex: 1;
}

.drawer-submenu-toggle {
    color: var(--gold);
    padding: 10px;
    font-size: 0.8rem;
}

.drawer-submenu-list {
    display: none;
    background-color: #050505;
    padding-left: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.drawer-submenu-list.open {
    display: block;
}

.drawer-submenu-list a {
    padding: 10px 5px;
    font-size: 0.88rem;
    color: #ccc;
}

.drawer-menu-divider {
    margin-top: 15px;
    border-top: 1px solid #222;
    padding-top: 10px;
}

.drawer-menu-item i {
    margin-right: 8px;
    color: var(--gold);
}

/* ===== HERO BANNER ===== */
.hero-banner-wrapper {
    width: 100%;
    padding: 0;
    margin: 0 0 3rem 0;
    overflow: hidden;
    display: block;
    background: #fdebd0;
}

.hero-banner-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--br-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #0a0a0a !important;
    color: #c9a84c !important;
    border-color: #c9a84c !important;
}

.btn-primary:hover {
    background-color: #c9a84c !important;
    color: #0a0a0a !important;
}

.btn-gold {
    background-color: #c9a84c !important;
    color: #0a0a0a !important;
    border-color: #c9a84c !important;
}

.btn-gold:hover {
    background-color: #0a0a0a !important;
    color: #c9a84c !important;
}

.btn-outline {
    background-color: #0a0a0a !important;
    border: 2px solid #c9a84c !important;
    color: #c9a84c !important;
}

.btn-outline:hover {
    background-color: #c9a84c !important;
    color: #0a0a0a !important;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* ===== CART ICON BUTTON ===== */
.btn-cart-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #c9a84c;
    color: #0a0a0a;
    border: 2px solid #c9a84c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.btn-cart-icon:hover {
    background: #0a0a0a;
    color: #c9a84c;
    transform: scale(1.1);
}

.btn-cart-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.product-card {
    background-color: #fff8f0;
    border: 1px solid #e8dcc8;
    border-radius: var(--br-radius);
    overflow: visible;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.2);
    transform: translateY(-8px);
    border-color: #c9a84c;
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    background-color: #fdebd0;
    overflow: hidden;
    border-radius: var(--br-radius) var(--br-radius) 0 0;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    border-radius: 4px;
    letter-spacing: 1px;
}

.badge-sale {
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.badge-out-of-stock {
    background-color: #888888;
    color: #f5f0e8;
}

.product-info {
    padding: 1.5rem 1.5rem 4rem 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff8f0;
}

.product-category {
    font-size: 0.75rem;
    color: #c9a84c;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-title {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: #0a0a0a;
}

.product-price {
    font-weight: bold;
    color: #c9a84c;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: auto;
}

.original-price {
    text-decoration: line-through;
    color: #e74c3c;
    font-size: 0.95rem;
    margin-right: 8px;
    font-weight: normal;
}

.product-price.on-sale {
    font-size: 1.4rem;
    color: #c9a84c;
    animation: sale-pulse 2s ease-in-out infinite;
}

.savings-label {
    display: block;
    font-size: 0.8rem;
    color: #2ecc71;
    margin-top: 4px;
    font-weight: 600;
}

@keyframes sale-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== FILTER PILLS ===== */
.filter-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
}

.filter-pill {
    padding: 8px 20px;
    border: 1px solid #c9a84c;
    border-radius: 50px;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    background: #fdebd0;
}

.filter-pill:hover,
.filter-pill.active {
    background-color: #c9a84c;
    color: #0a0a0a;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e8dcc8;
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: var(--br-radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== PAYMENT OPTIONS ===== */
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid #e8dcc8;
    border-radius: var(--br-radius);
    cursor: pointer;
    transition: var(--transition);
    background: #fdebd0;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.payment-option:hover {
    border-color: #c9a84c;
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: #c9a84c;
    background-color: rgba(201, 168, 76, 0.05);
}

/* ===== SIZE SELECTOR ===== */
.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.size-option input[type="radio"] {
    display: none;
}

.size-option label {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #e8dcc8;
    border-radius: var(--br-radius);
    background-color: #fdebd0;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.size-option label:hover {
    border-color: #c9a84c;
}

.size-option input[type="radio"]:checked+label {
    background-color: #c9a84c;
    border-color: #c9a84c;
    color: #0a0a0a;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #fdebd0;
    border-radius: var(--br-radius);
    overflow: hidden;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e8dcc8;
}

th {
    background-color: #0a0a0a;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #c9a84c;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

td {
    background-color: #fdebd0;
    color: #1a1a1a;
}

tr:nth-child(even) td {
    background-color: #fdebd0;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0a0a0a;
    color: #f5f0e8;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 3px solid #c9a84c;
}

.footer p,
.footer span,
.footer li {
    color: #cccccc;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    color: #c9a84c !important;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #cccccc;
}

.footer-links a:hover {
    color: #c9a84c;
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.6);
}

/* ===== ADMIN ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: #0a0a0a;
    color: #c9a84c;
    padding: 2.5rem 0;
    flex-shrink: 0;
}

.admin-sidebar-header {
    padding: 0 20px 25px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    margin-bottom: 25px;
}

.admin-nav .nav-link {
    display: block;
    padding: 14px 25px;
    color: #cccccc;
    font-weight: 600;
    text-transform: none;
    font-size: 1.05rem;
}

.admin-nav .nav-link::after {
    display: none;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
    background-color: rgba(201, 168, 76, 0.1);
    color: #c9a84c;
    border-left: 4px solid #c9a84c;
    padding-left: 29px;
}

.admin-content {
    flex: 1;
    background-color: #ffffff;
    color: #0a0a0a;
    padding: 2.5rem;
    overflow-y: auto;
}

.admin-content h1,
.admin-content h2,
.admin-content h3,
.admin-content h4 {
    color: #0a0a0a;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8dcc8;
}

.admin-content table tbody tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.admin-content table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

/* ===== CARD ===== */
.card {
    background-color: #fdebd0;
    padding: 25px;
    border-radius: var(--br-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    color: #1a1a1a;
}

.card h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e8dcc8;
    padding-bottom: 10px;
    color: #0a0a0a;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending {
    background-color: #c9a84c;
    color: #000;
}

.status-processing {
    background-color: #3498db;
    color: #fff;
}

.status-shipped {
    background-color: #9b59b6;
    color: #fff;
}

.status-delivered {
    background-color: #2ecc71;
    color: #000;
}

.status-cancelled {
    background-color: #e74c3c;
    color: #fff;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--br-radius);
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
}

.alert-error {
    background-color: #f2dede;
    color: #a94442;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.p-3 {
    padding: 1.5rem;
}

.flex {
    display: flex;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-content-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.align-items-center {
    align-items: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.w-200 {
    width: 200px;
}

.bg-light {
    background-color: #fdebd0;
}

.border-bottom {
    border-bottom: 1px solid #e8dcc8;
}

.text-error {
    color: #e74c3c;
}

.text-success {
    color: #2ecc71;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #e8dcc8;
    border-radius: var(--br-radius);
    color: #1a1a1a;
    background: #fdebd0;
    font-weight: 600;
}

.pagination .active {
    background-color: #c9a84c;
    color: #0a0a0a;
    border-color: #c9a84c;
}

.pagination a:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

/* ===== WHATSAPP BUBBLE ===== */
.wa-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.wa-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.wa-float-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.wa-tooltip {
    position: absolute;
    left: 70px;
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.wa-float:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== POLICY PAGE ===== */
.policy-page {
    background-color: #fdebd0;
    color: #1a1a1a;
    padding: 3rem 0;
}

.policy-page h1,
.policy-page h2,
.policy-page h3 {
    color: #0a0a0a;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: #0a0a0a;
    color: #c9a84c;
    cursor: pointer;
    border-bottom: 1px solid #c9a84c;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.accordion-header:hover {
    background-color: #1a1a1a;
}

.accordion-icon {
    font-size: 1.3rem;
    font-weight: bold;
    color: #c9a84c;
}

.accordion-content {
    display: none;
    padding: 20px;
    background-color: #ffffff;
    color: #1a1a1a;
    border-bottom: 1px solid #e8dcc8;
}

.accordion-content.open {
    display: block;
}

.accordion-content p,
.accordion-content li {
    color: #1a1a1a;
    margin-bottom: 8px;
}

.accordion-content ul {
    padding-left: 20px;
    list-style: disc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-hamburger-btn {
        display: block;
    }

    .navbar-search-container {
        display: none;
    }

    .categories-navbar-row {
        display: none;
    }

    .navbar-logo-img {
        height: 50px;
    }

    .navbar-actions-container {
        gap: 15px;
    }

    .navbar-action-btn .action-text {
        display: none;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 1.5rem 0;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

/* ===== CATEGORY BOXES HOMEPAGE ===== */
.product-grid a[href*="category.php"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 50px 20px !important;
    background: #0a0a0a !important;
    color: #c9a84c !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    min-height: 160px !important;
}

.product-grid a[href*="category.php"]:hover {
    background: #c9a84c !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.4) !important;
}

.product-grid a[href*="category.php"] h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
    color: #c9a84c !important;
    margin-bottom: 10px !important;
    transition: all 0.3s ease !important;
}

.product-grid a[href*="category.php"]:hover h3 {
    color: #0a0a0a !important;
}

.product-grid a[href*="category.php"] p {
    color: #cccccc !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.product-grid a[href*="category.php"]:hover p {
    color: #0a0a0a !important;
}

/* ===== FAQ & POLICY PAGE ===== */
.accordion-item {
    border-bottom: 1px solid #c9a84c;
    margin-bottom: 0;
}

.accordion-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 20px !important;
    background-color: #0a0a0a !important;
    color: #c9a84c !important;
    cursor: pointer !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.05rem !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
}

.accordion-header:hover {
    background-color: #1a1a1a !important;
}

.accordion-header span,
.accordion-header p,
.accordion-header h3,
.accordion-header * {
    color: #c9a84c !important;
}

.accordion-icon {
    font-size: 1.4rem !important;
    font-weight: bold !important;
    color: #c9a84c !important;
    flex-shrink: 0 !important;
    margin-left: 15px !important;
}

.accordion-content {
    display: none !important;
    padding: 20px !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-top: 1px solid #e8dcc8 !important;
}

.accordion-content.open {
    display: block !important;
}

.accordion-content p,
.accordion-content li,
.accordion-content span {
    color: #1a1a1a !important;
    margin-bottom: 8px !important;
}

.accordion-content ul {
    padding-left: 20px !important;
    list-style: disc !important;
}

.accordion-content a {
    color: #c9a84c !important;
}

/* ===== POLICY PAGE FIX ===== */
.policy-page {
    background-color: #fdebd0 !important;
    color: #1a1a1a !important;
}

.policy-page h1,
.policy-page h2,
.policy-page p {
    color: #1a1a1a !important;
}

.accordion-section-title {
    color: #0a0a0a !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 2.2rem !important;
    text-align: center !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
}

.policy-accordion-container {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    margin-top: 2rem !important;
}

.accordion-item {
    border-bottom: 1px solid #c9a84c !important;
}

.accordion-header {
    background: #0a0a0a !important;
    color: #c9a84c !important;
    padding: 20px 25px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    transition: background 0.3s ease !important;
    border: none !important;
}

.accordion-header:hover {
    background: #1a1a1a !important;
}

.accordion-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    color: #c9a84c !important;
    letter-spacing: 1px !important;
}

.accordion-icon {
    font-size: 1.8rem !important;
    font-weight: 300 !important;
    color: #c9a84c !important;
    transition: transform 0.3s ease !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
}

.accordion-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease, padding 0.4s ease !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    padding: 0 25px !important;
}

.accordion-item.active .accordion-content {
    max-height: 1000px !important;
    padding: 30px 25px !important;
}

.accordion-content p,
.accordion-content li,
.accordion-content span {
    color: #1a1a1a !important;
}

.accordion-content ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.accordion-content a {
    color: #c9a84c !important;
}

.accordion-content strong {
    color: #0a0a0a !important;
}

/* ===== ADMIN DASHBOARD FIX ===== */
.admin-sidebar h3,
.admin-sidebar p,
.admin-sidebar-header h3,
.admin-sidebar-header p {
    color: #c9a84c !important;
}

.stat-card {
    background-color: #ffffff !important;
    color: #0a0a0a !important;
}

.stat-card h3 {
    color: #888888 !important;
}

.stat-card .value {
    color: #0a0a0a !important;
}

.admin-content>div {
    background-color: #ffffff !important;
    color: #0a0a0a !important;
}

.admin-content h3 {
    color: #0a0a0a !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE — screens under 768px
   Pure CSS only. Does not alter desktop layout.
   ========================================================================== */

@media (max-width: 768px) {

    /* ===== GENERAL MOBILE RESETS ===== */
    html, body {
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100%;
    }

    body {
        font-size: 15px;
    }

    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }

    .container {
        padding: 0 16px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* All buttons: minimum 44px tap target */
    .btn,
    button,
    .filter-pill,
    .size-option label,
    .size-btn-wrapper label,
    .payment-option,
    .qty-btn {
        min-height: 44px;
    }

    /* ===== NAVBAR ===== */
    .navbar {
        padding: 0.6rem 0;
    }

    .navbar .container {
        padding: 0 12px;
        flex-wrap: wrap;
    }

    /* Logo sizing */
    .navbar .container > a img,
    .navbar .container > a > img {
        max-height: 50px !important;
        height: 50px !important;
        width: auto !important;
    }

    /* Hamburger menu — always visible on mobile */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        color: #c9a84c;
        cursor: pointer;
        z-index: 1001;
        order: 3;
    }

    /* Nav links — mobile dropdown */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0a0a0a;
        padding: 0.5rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
        gap: 0;
        border-top: 2px solid #c9a84c;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    }

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

    .nav-link {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 20px !important;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .nav-link::after {
        display: none !important;
    }

    /* Cart icon in mobile nav */
    .nav-item:has(.cart-icon) {
        margin-left: 0 !important;
    }

    .cart-icon {
        padding: 14px 20px !important;
        font-size: 1.2rem;
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .cart-count {
        position: relative;
        top: auto;
        right: auto;
        margin-left: 8px;
    }

    /* Dropdown menus — full width on mobile */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: rgba(201, 168, 76, 0.05) !important;
        border: none !important;
        border-top: none !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
        display: none;
        width: 100%;
        padding: 0;
    }

    .nav-item:hover .dropdown-menu,
    .nav-item.open .dropdown-menu {
        display: block !important;
        animation: none !important;
    }

    .dropdown-item {
        padding: 12px 20px 12px 35px !important;
        color: #c9a84c !important;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(201, 168, 76, 0.1) !important;
        border-radius: 0 !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-item:last-child {
        border-bottom: none !important;
        border-radius: 0 !important;
    }

    .dropdown-item:hover {
        padding-left: 40px !important;
    }

    /* ===== HERO BANNER / CAROUSEL ===== */
    .hero-banner-wrapper {
        margin-bottom: 0;
    }

    .hero-banner-wrapper img {
        width: 100%;
        height: auto;
    }

    /* ===== PROMO STRIP (Tester Pack) ===== */
    /* Already handled by inline <style> in index.php, reinforcing here */
    .promo-strip {
        flex-direction: column !important;
        text-align: center !important;
        padding: 24px 16px !important;
        gap: 16px !important;
        margin-bottom: 2rem !important;
    }

    .promo-left {
        align-items: center !important;
    }

    .promo-heading {
        font-size: 1.5rem !important;
    }

    .promo-subtext {
        font-size: 0.9rem !important;
    }

    .shimmer-btn {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
        width: 100%;
        text-align: center;
    }

    /* ===== FEATURED COLLECTION HEADING ===== */
    .container > div[style*="text-align: center"] h2 {
        font-size: 2rem !important;
    }

    .container > div[style*="text-align: center"] p {
        font-size: 0.95rem !important;
    }

    /* ===== PRODUCT GRID — 2 columns on mobile ===== */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin: 1.5rem 0;
    }

    .product-card {
        overflow: hidden;
    }

    .product-card:hover {
        transform: none;
    }

    .product-info {
        padding: 12px 10px 3.5rem 10px;
    }

    .product-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .product-category {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-price.on-sale {
        font-size: 1.1rem;
    }

    .original-price {
        font-size: 0.8rem;
    }

    .savings-label {
        font-size: 0.7rem;
    }

    .badge {
        font-size: 0.6rem;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }

    .badge-sale {
        font-size: 0.7rem;
    }

    /* Cart icon button on product cards */
    .btn-cart-icon {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }

    /* Product actions on category page */
    .product-actions {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 0 10px 12px 10px !important;
    }

    .product-actions .btn {
        font-size: 0.75rem !important;
        padding: 10px 8px !important;
        min-height: 44px;
    }

    /* ===== CATEGORY BOXES — 2x3 grid ===== */
    .product-grid a[href*="category.php"],
    a.category-box {
        min-height: 100px !important;
        padding: 25px 12px !important;
    }

    .product-grid a[href*="category.php"] h3 {
        font-size: 1.3rem !important;
    }

    .product-grid a[href*="category.php"] p {
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
    }

    .product-grid a[href*="category.php"]:hover {
        transform: none !important;
    }

    /* Category highlights section */
    div[style*="margin: 5rem 0"] {
        margin: 2.5rem 0 !important;
    }

    div[style*="margin: 5rem 0"] .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ===== FILTER PILLS (Category Page) ===== */
    .filter-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 10px;
        padding-bottom: 10px;
        margin-bottom: 1.5rem;
        scrollbar-width: thin;
    }

    .filter-pills::-webkit-scrollbar {
        height: 4px;
    }

    .filter-pills::-webkit-scrollbar-thumb {
        background: #c9a84c;
        border-radius: 2px;
    }

    .filter-pill {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 8px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* ===== PRODUCT PAGE — Mobile Layout ===== */

    /* Main grid: stack vertically */
    .product-main-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem;
    }

    /* Gallery full width, un-stick */
    .gallery-container {
        position: relative !important;
        top: auto !important;
    }

    .main-img-wrapper {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    /* Thumbnails: horizontal scroll */
    .thumb-grid {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .thumb-grid::-webkit-scrollbar {
        height: 4px;
    }

    .thumb-grid::-webkit-scrollbar-thumb {
        background: #c9a84c;
        border-radius: 2px;
    }

    .thumb-item {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    /* Product name */
    .product-name {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    .product-cat-label {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    /* Price display */
    .price-display {
        font-size: 1.6rem !important;
        margin: 1rem 0 !important;
    }

    .price-display.on-sale {
        font-size: 1.5rem !important;
    }

    .old-price {
        font-size: 1rem;
    }

    /* Size selector: wrap properly */
    .size-selector-grid {
        gap: 8px;
    }

    .size-btn-wrapper label {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 70px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Quantity controls */
    .qty-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .qty-controls {
        width: 130px;
    }

    .qty-btn {
        width: 44px;
        height: 44px;
    }

    .qty-input-field {
        height: 44px;
    }

    /* Action buttons: full width */
    .action-btns {
        margin-bottom: 2rem;
    }

    .btn-full {
        padding: 16px !important;
        font-size: 1rem !important;
        min-height: 52px;
    }

    /* Policy badges: 2x2 grid */
    .policy-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .policy-badge {
        gap: 8px;
    }

    .policy-badge i {
        font-size: 1.2rem;
    }

    .policy-badge div {
        font-size: 0.78rem;
    }

    .policy-badge strong {
        font-size: 0.82rem;
    }

    /* Product accordions */
    .product-accordions {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .product-accordion {
        border-radius: 8px;
    }

    details summary {
        padding: 16px 18px !important;
        font-size: 1.05rem;
    }

    .acc-content {
        padding: 20px 16px !important;
        font-size: 0.9rem;
    }

    /* Reviews: scrollable horizontal */
    .reviews-section {
        margin-top: 2rem !important;
    }

    .reviews-section h2 {
        font-size: 1.6rem !important;
    }

    .reviews-row {
        gap: 12px;
        padding: 8px 2px 16px 2px;
    }

    .review-card {
        flex: 0 0 260px !important;
        padding: 16px;
    }

    .review-text {
        font-size: 0.88rem;
    }

    .review-meta {
        font-size: 0.8rem;
    }

    /* Leave a review section */
    .leave-review-section {
        padding: 20px 16px !important;
        margin-top: 2rem !important;
    }

    .leave-review-section h3 {
        font-size: 1.4rem !important;
    }

    /* ===== CART PAGE ===== */

    /* Cart table: horizontal scroll */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 12px !important;
    }

    .table-responsive table {
        min-width: 580px;
    }

    th, td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    /* Cart bottom bar: stack */
    .table-responsive + div,
    .table-responsive form > div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    /* Checkout button in cart */
    div[style*="text-align: right"] {
        text-align: center !important;
    }

    div[style*="text-align: right"] .btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* ===== CHECKOUT PAGE ===== */

    /* Checkout grid: stack vertically */
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Order summary: un-stick */
    div[style*="position: sticky; top: 100px"] {
        position: relative !important;
        top: auto !important;
    }

    /* Form inputs full width */
    .flex.gap-1 {
        flex-direction: column !important;
    }

    .form-group {
        min-width: 100% !important;
    }

    .form-control {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 14px 15px;
        min-height: 44px;
    }

    textarea.form-control {
        min-height: 100px;
    }

    /* Payment options: full width */
    .payment-option {
        padding: 16px;
        gap: 10px;
        min-height: 52px;
    }

    /* Checkout place order button */
    .container .btn[style*="width: 100%"] {
        min-height: 52px;
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .footer-heading {
        font-size: 1.2rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }

    /* ===== ACCORDION / POLICY PAGE ===== */
    .accordion-section-title {
        font-size: 1.6rem !important;
    }

    .accordion-header {
        padding: 16px 18px !important;
    }

    .accordion-title {
        font-size: 0.95rem !important;
    }

    .accordion-content {
        padding: 0 16px !important;
    }

    .accordion-item.active .accordion-content {
        padding: 20px 16px !important;
    }

    /* ===== WHATSAPP FLOAT ===== */
    .wa-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 16px;
    }

    .wa-tooltip {
        display: none;
    }

    /* ===== PAGINATION ===== */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* ===== ALERTS ===== */
    .alert {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* ===== ADMIN MOBILE ===== */
    .admin-content {
        padding: 1.5rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    /* ===== GENERIC SECTION PADDING ===== */
    .container[style*="padding: 4rem 20px"],
    .container[style*="padding: 3rem 20px"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 2rem !important;
    }

    /* Section headings on category/cart/checkout */
    h1[style*="font-size: 2.5rem"],
    h1[style*="font-size: 3rem"] {
        font-size: 1.8rem !important;
    }

    /* ===== MODAL / POPUP MOBILE ===== */
    div[style*="position: fixed"][style*="z-index: 9999"] > div {
        margin: 16px;
        max-width: calc(100vw - 32px) !important;
    }
}

/* ==========================================================================
   VERY SMALL SCREENS — under 400px (small phones)
   ========================================================================== */

@media (max-width: 400px) {

    /* Product grid: single column */
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Product cards: full width with padding */
    .product-card {
        margin: 0;
    }

    .product-info {
        padding: 14px 14px 3.5rem 14px;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-category {
        font-size: 0.7rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    /* Category boxes: single column for very small */
    div[style*="margin: 5rem 0"] .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Product page name */
    .product-name {
        font-size: 1.5rem !important;
    }

    .price-display {
        font-size: 1.4rem !important;
    }

    /* Review cards smaller */
    .review-card {
        flex: 0 0 230px !important;
    }

    /* Featured collection heading */
    .container > div[style*="text-align: center"] h2 {
        font-size: 1.6rem !important;
    }

    /* Container padding */
    .container {
        padding: 0 12px;
    }

    /* Promo strip */
    .promo-heading {
        font-size: 1.3rem !important;
    }

    .promo-subtext {
        font-size: 0.85rem !important;
    }

    /* Navbar logo */
    .navbar .container > a img,
    .navbar .container > a > img {
        max-height: 42px !important;
        height: 42px !important;
    }

    /* Footer */
    .footer-heading {
        font-size: 1.1rem;
    }
}

/* Category Redesign Layout */
.category-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.category-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.category-main {
    flex-grow: 1;
}

/* Sidebar Search */
.sidebar-search {
    position: relative;
    margin-bottom: 20px;
}
.sidebar-search input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fdfdfd;
}
.sidebar-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Sidebar Section */
.sidebar-section {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}
.sidebar-section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}
.sidebar-section-title i {
    font-size: 0.8rem;
    color: var(--accent-color);
}
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-list li {
    margin-bottom: 10px;
}
.sidebar-list a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.sidebar-list a:hover,
.sidebar-list a.active {
    color: var(--accent-color);
    font-weight: 600;
}
.sidebar-list a .count {
    color: #888;
    font-size: 0.85rem;
}
.sidebar-list a.active .count {
    color: var(--accent-color);
}

/* Category Toolbar */
.category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}
.product-count {
    font-size: 0.95rem;
    color: #555;
}
.sort-dropdown select {
    padding: 8px 15px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Mobile Sidebar Specifics */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    margin-bottom: 20px;
    font-size: 1rem;
    padding: 12px;
}
.mobile-only {
    display: none;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--card-border);
    margin: -20px -20px 20px -20px;
    background: #f9f9f9;
}
.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 991px) {
    .category-layout {
        flex-direction: column;
    }
    .mobile-filter-toggle {
        display: block;
    }
    .category-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        padding: 20px;
        overflow-y: auto;
        transition: transform 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }
    .category-sidebar.active {
        transform: translateX(300px);
    }
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    .mobile-only {
        display: flex;
    }
    .category-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .sort-dropdown {
        width: 100%;
    }
    .sort-dropdown select {
        width: 100%;
    }
}

/* =========================================================
   LUXURY TEXTURE SYSTEM
   ========================================================= */

/* LEVEL 1 — Navbar & Footer (Strongest Texture — Matte Black Premium Feel) */
.navbar::before,
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}
.navbar { position: relative; }
.navbar .container { position: relative; z-index: 1; }
.footer { position: relative; }
.footer .container { position: relative; z-index: 1; }

.navbar {
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, #c9a84c 30%, #f0d080 50%, #c9a84c 70%, transparent 100%) 1;
}

/* LEVEL 2 — Product Cards (Very Subtle — High End Paper Feel) */
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}
.product-card { position: relative; }
.product-card > * { position: relative; z-index: 1; }

/* LEVEL 3 — Page Background (Barely Visible — Luxury Linen/Fabric Feel) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}
body { position: relative; }
main { position: relative; z-index: 1; }

/* ADDITIONAL TEXTURE TOUCHES */
.product-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(201,168,76,0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    border-color: rgba(201,168,76,0.6);
}

h1, h2 {
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ===== SIDEBAR SECTION CARDS ===== */
.sidebar-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e8dcc8;
}
.sidebar-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0a0a0a;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8dcc8;
}
.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #1a1a1a;
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f0e8;
    transition: all 0.2s ease;
    text-decoration: none;
}
.sidebar-link:hover,
.sidebar-link.active {
    color: #c9a84c;
    padding-left: 5px;
    font-weight: 600;
}
.sidebar-count {
    font-size: 0.8rem;
    color: #888888;
    background: #f5f0e8;
    padding: 2px 8px;
    border-radius: 50px;
    flex-shrink: 0;
}
.sidebar-link.active .sidebar-count {
    background: #c9a84c;
    color: #0a0a0a;
}

/* ===== GLOBAL PRODUCT ACTION BUTTONS ===== */
.product-actions {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px 15px;
    margin-top: auto;
}
.btn-view,
.product-actions .btn-outline,
.product-actions .btn-primary {
    flex: 1;
    height: 46px;
    background: #0a0a0a !important;
    color: #c9a84c !important;
    border: 2px solid #c9a84c !important;
    border-radius: 8px !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}
.btn-view:hover,
.product-actions .btn-outline:hover,
.product-actions .btn-primary:hover {
    background: #c9a84c !important;
    color: #0a0a0a !important;
}
.btn-cart-small {
    width: 46px !important;
    height: 46px !important;
    flex-shrink: 0 !important;
    background: #0a0a0a !important;
    color: #c9a84c !important;
    border: 2px solid #c9a84c !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}
.btn-cart-small:hover {
    background: #c9a84c !important;
    color: #0a0a0a !important;
    transform: scale(1.05) !important;
}
.btn-cart-small:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: none !important;
}
/* Hide old floating cart icon everywhere */
.btn-cart-icon {
    display: none !important;
}
/* Remove extra bottom padding from product info */
.product-info {
    padding-bottom: 0 !important;
}
/* Make sure product card has flex column so buttons stick to bottom */
.product-card {
    display: flex !important;
    flex-direction: column !important;
}

/* ===== PRODUCT CARD IMAGE OVERLAY ===== */
.product-card {
    position: relative;
    overflow: hidden;
}
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}
.product-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 5;
    pointer-events: none;
}
.product-card:hover .product-card-overlay {
    opacity: 1;
    pointer-events: auto;
}
.btn-view-overlay {
    width: 80%;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201,168,76,0.6);
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}
.btn-view-overlay:hover {
    background: rgba(201,168,76,0.85);
    color: #0a0a0a;
    border-color: #c9a84c;
}
.btn-cart-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c9a84c;
    color: #0a0a0a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 6;
    opacity: 0;
}
.product-card:hover .btn-cart-overlay {
    opacity: 1;
}
.btn-cart-overlay:hover {
    background: #ffffff;
    color: #0a0a0a;
    transform: scale(1.1);
}
.btn-cart-overlay:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed;
    transform: none !important;
}
/* Hide old button styles */
.btn-cart-icon,
.btn-cart-small {
    display: none !important;
}
.product-info .product-actions {
    display: none !important;
}
/* Mobile: always show overlay */
@media (max-width: 768px) {
    .product-card-overlay {
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 70%, transparent 100%);
    }
    .btn-cart-overlay {
        opacity: 1;
    }
}