@media (max-width: 768px) {
    .admin-container {
        padding: 0.5rem;
        max-width: 100vw;
    }
    .admin-header {
        padding: 1rem;
        font-size: 1.1rem;
    }
    .admin-header h1 {
        font-size: 1.3rem;
    }
    .admin-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 0.25rem;
        font-size: 0.95rem;
    }
    .admin-nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
    .admin-content {
        gap: 1rem;
        padding: 0.5rem;
    }
    .recent-section {
        padding: 1rem;
    }
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .admin-section-header h2 {
        font-size: 1.2rem;
    }
    .admin-table th, .admin-table td {
        padding: 0.5rem;
        font-size: 0.95rem;
    }
    .table-container, .table-responsive {
        padding: 0;
    }
}
/* PensNov Custom CSS - Premium Handcrafted Pens */

/* ===== GLOBAL ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #8B4513;
    --accent-color: #D4AF37;
    --text-color: #2c2c2c;
    --text-light: #a0a0a0;
    --bg-color: #2a2620;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --box-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.18);
    /* Utility background variables to ensure readable text over backgrounds */
    --card-bg: rgba(255,255,255,0.96);
    --card-color: var(--text-color);
    --section-bg: rgba(255,255,255,0.02); /* subtle banding by default */
    --section-color: var(--white);
    --badge-bg: var(--accent-color);
    --badge-color: var(--white);
}

/* ===== GLOBAL UTILITY CLASSES ===== */
.card {
    background: var(--card-bg, var(--white));
    color: var(--card-color, var(--text-color));
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    /* ensure readable text on images/backgrounds */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    background: var(--section-bg, transparent);
    color: var(--section-color, inherit);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

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

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Admin nav unified styling */
.admin-nav {
    display: flex;
    gap: var(--nav-gap, 1rem);
    align-items: center;
    padding: 0.5rem 0;
}

.admin-nav-item {
    padding: 0.6rem 0.9rem;
    border-radius: calc(var(--border-radius) / 2);
    color: var(--text-color);
}

.admin-nav-item.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-color);
}

/* Grid utilities */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* Small media object for thumbnails + content */
.media {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: var(--badge-bg, rgba(0,0,0,0.06));
    color: var(--badge-color, var(--text-color));
}

/* Button utilities */
.btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}



html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    line-height: 1.7;
    color: var(--white);
    background-color: var(--bg-color);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Gentle snow overlay (holiday bonus) */
.snow-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1500;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 600;
    color: inherit;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.5rem;
    color: inherit;
    margin: 0 0 1.5rem 0;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Georgia', serif;
}

h2 {
    font-size: 2rem;
    color: inherit;
    margin: 2rem 0 1rem 0;
    font-weight: 700;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 1.5rem;
    color: inherit;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    color: inherit;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    color: inherit;
    margin-top: 1rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

/* Semantic Header Classes for Consistency */
.page-title,
.about-title {
    color: var(--accent-color);
}

.section-title {
    color: var(--accent-color);
}

h6 {
    font-size: 1rem;
    color: inherit;
    margin-top: 1rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1rem;
    color: inherit;
    line-height: 1.7;
    font-size: 1rem;
}

/* Additional text elements */
blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-color);
    background-color: rgba(212, 175, 55, 0.05);
    color: var(--text-color);
    font-style: italic;
}

strong, b {
    font-weight: 700;
    color: var(--text-color);
}

em, i {
    font-style: italic;
    color: var(--text-color);
}

small {
    font-size: 0.875rem;
    color: var(--text-light);
}

code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    font-size: 0.95rem;
}

pre {
    background-color: #2d2d2d;
    color: #f1f1f1;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-color);
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

hr {
    border: none;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    margin: 2rem 0;
}

/* Link Styles */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

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

/* Header and Navigation */
header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

/* Main Content */

header {
    background-color: var(--header-bg);
    color: var(--white);
    padding: 1.2rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.nav-brand a {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
    font-family: 'Georgia', serif;
}

.nav-brand a:hover {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Cart Icon & Dropdown */
.cart-icon-container {
    position: relative;
    margin-left: 2rem;
}

.cart-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.cart-icon-btn:hover {
    transform: scale(1.1);
}

.cart-icon-btn svg {
    color: var(--white);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.cart-dropdown-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.close-dropdown {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-dropdown:hover {
    color: #333;
}

.cart-dropdown-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-dropdown-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.cart-dropdown-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-dropdown-item .item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.3;
}

.cart-dropdown-item .item-quantity {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.cart-dropdown-item .item-price {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.loading-cart,
.empty-cart-message,
.error-message {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.more-items {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.cart-dropdown-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cart-total span:last-child {
    color: var(--primary-color);
}

.cart-dropdown-footer .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
    display: block;
}

.cart-dropdown-footer .btn:last-child {
    margin-bottom: 0;
}

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(45, 45, 45, 0.95)), 
                url('/static/images/backgrounds/background.jpg') center/cover;
    background-size: cover;
    background-position: center;
    color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(139, 69, 19, 0.08));
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Georgia', serif;
    color: #ffffff;
}

.hero .tagline {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.hero p:last-of-type {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin: 0.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #c99e2a);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #a0522d);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    animation: fadeInUp 0.6s ease-out backwards;
}

.product-card[data-href] {
    cursor: pointer;
}

.product-card[data-href]:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(212, 175, 55, 0.4);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.product-info h3 {
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 700;
}

.product-description {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-weight: 500;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
}

/* Section Styles */
section {
    margin: 3rem 0;
    animation: fadeInUp 0.6s ease-out;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #333333;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Georgia', serif;
    position: relative;
    padding-bottom: 1.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.featured-products {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
}

.about {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.03), rgba(139, 69, 19, 0.03));
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.about h2 {
    color: var(--accent-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Highlight box for premium content */
.highlight-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 69, 19, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(139, 69, 19, 0.08));
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid rgba(212, 175, 55, 0.3);
}

/* Premium Feature Box */
.feature-box {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
    transform: translateY(-4px);
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Premium divider */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 2rem 0;
}

/* Flash Messages */
.flash-messages {
    margin: 1rem 0;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-color);
}

/* Admin DB status banner (admin-only, sticky) */
.admin-db-banner {
    position: sticky;
    top: 0;
    z-index: 2000;
    padding: 0.75rem 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    transition: opacity 250ms ease, max-height 250ms ease, padding 250ms ease, border-bottom-width 250ms ease;
    max-height: 200px;
    overflow: hidden;
}

.admin-db-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-db-banner__title {
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.admin-db-banner__line {
    font-weight: 600;
}

.admin-db-banner__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    word-break: break-all;
}

.admin-db-banner__urgent {
    font-weight: 900;
    text-transform: uppercase;
}

.admin-db-banner__success {
    font-weight: 800;
}

.admin-db-banner__hint {
    font-weight: 600;
    opacity: 0.95;
}

.admin-db-banner--ok {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

.admin-db-banner--danger {
    color: var(--white);
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 100%;
    animation: adminDbBannerShift 2s linear infinite;
}

.admin-db-banner--hidden {
    opacity: 0;
    max-height: 0;
    padding: 0;
    border-bottom-width: 0;
}

@keyframes adminDbBannerShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), #2d2d2d);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

footer p {
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    font-size: 1rem;
    color: #f0f0f0;
}

footer p strong {
    font-weight: 700;
    color: var(--accent-color);
}

footer a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

footer a:hover {
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Form Enhancements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

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

/* Card Elements */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
}

/* List Items */
li {
    transition: all 0.3s ease;
}

li:hover {
    padding-left: 5px;
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .product-image {
        height: 240px;
    }
    
    .product-card img {
        object-fit: contain;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Filter Styles */
.filters-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.filter-form {
    width: 100%;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid #e8e8e8;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
}

.filter-buttons .btn {
    margin: 0;
    white-space: nowrap;
    padding: 0.85rem 1.8rem;
}

/* Advanced Filters Toggle */
.advanced-toggle {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.toggle-btn:hover {
    color: var(--secondary-color);
}

#toggle-icon {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.advanced-filters {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.products-section > p,
.collection-subtitle {
    color: #d0d0d0;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

.product-category {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* Authentication Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 500px;
    width: 100%;
}

.auth-card h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

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

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.auth-form small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.auth-footer a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Profile Page */
.profile-container {
    max-width: 1000px;
    margin: 2rem auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-header h1 {
    color: #D4AF37;
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: #ddd;
    font-size: 1.1rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    height: fit-content;
}

.profile-nav a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.profile-nav a:hover,
.profile-nav a.active {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--accent-color);
}

.profile-nav .logout-link {
    color: var(--secondary-color);
    margin-top: 1rem;
}

.profile-main {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-section h2 {
    color: #D4AF37;
    margin-bottom: 1.5rem;
    text-align: left;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: #D4AF37;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.info-item p {
    font-size: 1.1rem;
    color: inherit;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-state p {
    margin-bottom: 1rem;
}

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

#edit-profile-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.orders-list,
.addresses-list {
    min-height: 200px;
}

/* Order Cards in Profile */
.order-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.order-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
}

.status-processing {
    background: rgba(100, 150, 200, 0.2);
    color: #64B5F6;
}

.status-shipped {
    background: rgba(76, 175, 80, 0.2);
    color: #81C784;
}

.status-delivered {
    background: rgba(33, 150, 243, 0.2);
    color: #64B5F6;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #EF9A9A;
}

.order-items {
    padding: 1rem 1.5rem;
}

.order-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.order-item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.order-item-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.order-item-price {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.order-total {
    font-size: 1.1rem;
}

.total-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-left: 0.5rem;
}

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

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* Shopping Cart */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.cart-container h1 {
    margin-bottom: 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Georgia', serif;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.cart-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    align-items: center;
}

.item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.item-details h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.item-details h3 a:hover {
    color: var(--primary-color);
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.item-quantity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.quantity-controls input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

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

.subtotal-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.25rem 0;
}

.subtotal-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.item-remove {
    display: flex;
    align-items: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-remove:hover {
    color: #e74c3c;
}

.cart-summary {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.summary-row.total {
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-summary .btn {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.empty-cart p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-selector input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.btn-add-to-cart {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.add-to-cart-form {
    margin: 1.5rem 0;
}

@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

/* Checkout Page */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.checkout-container h1 {
    margin-bottom: 2rem;
    color: #fff;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.checkout-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.checkout-section h2 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.address-display {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.address-display p {
    margin: 0.25rem 0;
}

.link-secondary {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.link-secondary:hover {
    text-decoration: underline;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: #f9f9f9;
}

.payment-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary-color);
}

.payment-info-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.02));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
}

.payment-message h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.payment-message p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.payment-steps {
    background: white;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.payment-steps h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.payment-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.payment-steps li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--text-color);
}

.payment-steps strong {
    color: var(--primary-color);
}

.payment-contact-info {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.payment-contact-info p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.payment-contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.payment-contact-info a:hover {
    text-decoration: underline;
}

.checkout-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--text-color);
}

.summary-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.summary-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.summary-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.summary-item-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.summary-item-details .quantity {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.summary-total {
    padding-top: 0.75rem;
    border-top: 2px solid #eee;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Order Confirmation */
.confirmation-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.confirmation-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    color: var(--text-color);
}

.confirmation-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-icon svg {
    color: #28a745;
}

.confirmation-card h1 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.confirmation-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.order-details {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
}

.detail-value {
    font-weight: 600;
}

.shipping-info {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.shipping-info h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.shipping-info p {
    margin: 0.25rem 0;
}

.order-items-summary {
    margin: 2rem 0;
    text-align: left;
}

.order-items-summary h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.confirmation-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.confirmation-item .item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.confirmation-item .item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.confirmation-item .item-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.confirmation-item .item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 1rem;
}

.confirmation-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .item-image img {
        width: 80px;
        height: 80px;
    }
    
    .item-quantity,
    .item-subtotal {
        grid-column: 2;
    }
    
    .item-remove {
        grid-column: 2;
        justify-content: flex-end;
    }
    
    .confirmation-card {
        padding: 2rem 1rem;
    }
    
    .summary-item {
        grid-template-columns: 50px 1fr auto;
    }
    
    .summary-item-image img {
        width: 50px;
        height: 50px;
    }
}

/* Admin Panel */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    margin-bottom: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    padding: 0;
    background: none;
    border: none;
    font-size: 2rem;
}

.admin-header p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--white);
    border-bottom: 3px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 0;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.admin-nav-item:hover {
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

.admin-nav-item.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    font-weight: 600;
}

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

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.products {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-icon.orders {
    background: #f3e5f5;
    color: #7b1fa2;
}

.stat-icon.users {
    background: #e8f5e9;
    color: #388e3c;
}

.stat-icon.revenue {
    background: #fff3e0;
    color: #f57c00;
}

.stat-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.8rem;
    color: var(--text-color);
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.admin-content {
    display: grid;
    gap: 2rem;
}

/* Admin: Settings tab form */
.admin-content .settings-grid {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.settings-section {
    padding: 1.5rem;
}

.settings-section + .settings-section {
    margin-top: 1.25rem;
}

.settings-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-section-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.15rem;
}

.form-help {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.35;
}

.admin-content .settings-grid .form-row {
    margin-bottom: 0;
}

.admin-content .settings-grid .form-row label {
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.admin-content .settings-grid .form-row input {
    width: 100%;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-content .settings-grid .form-row input[type="color"] {
    padding: 0.25rem;
    height: 44px;
}

.admin-content .settings-grid .form-row input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.recent-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recent-section h2 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    padding: 0;
    background: none;
    border: none;
}

.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f5f5f5;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    background: #e8e8e8;
    border-bottom: 2px solid #d0d0d0;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #1a1a1a;
}

.admin-table tr:hover {
    background: #f9f9f9;
}

.empty-table {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

/* Admin form improvements */
.admin-form label,
.form-group label {
    color: #1a1a1a;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder,
.admin-form select::placeholder {
    color: #999;
}

.admin-form input::-webkit-input-placeholder {
    color: #999;
}

.admin-form input:-moz-placeholder {
    color: #999;
}

/* Admin section headers */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.admin-section-header h2 {
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

/* Admin: products toolbar + search */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.admin-search-bar {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 560px;
}

.admin-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-color);
    opacity: 0.75;
}

.admin-search-input {
    width: 100%;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 0.7rem 0.85rem 0.7rem 2.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

/* Admin: product list helpers */
.admin-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
    padding: 2px;
}

.admin-product-name {
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.inline-form {
    display: inline;
    margin: 0;
}

.btn-label {
    margin-left: 0.35rem;
}

/* Destructive button styling (keeps within existing neutral/red palette) */
.btn-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Featured toggle button: align icon + label */
.featured-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.admin-content > h2 {
    color: #000000;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.stats-summary {
    color: #1a1a1a;
    font-weight: 500;
}

.stats-summary strong {
    color: #1a1a1a;
    font-weight: 700;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.95);
}

/* Improve table responsive layout */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure all text in admin tables is visible */
.admin-table tbody tr td {
    color: #1a1a1a;
}

.admin-table tbody tr:hover {
    background: #f5f5f5;
}

/* Admin form visibility */
.admin-form,
.form-group {
    color: #1a1a1a;
}

.form-group input,
.form-group textarea,
.form-group select {
    color: #1a1a1a;
}

/* Status badges visibility */
.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.btn-action {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--secondary-color);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 992px) {
    .admin-nav {
        overflow-x: auto;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}



/* Privacy Consent Banner */
.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
}

.privacy-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.privacy-banner-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.privacy-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.privacy-banner-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.privacy-banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.privacy-banner .btn {
    white-space: nowrap;
    min-width: 120px;
}

@media (max-width: 768px) {
    .privacy-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Delete Account Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Product Detail Page Styling */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(212, 175, 55, 0.1);
    min-height: 380px;
}

.product-detail-image img {
    width: 100%;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.product-detail-image:hover img {
    transform: scale(1.02);
}

.product-detail-wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-wishlist-btn:hover,
.product-detail-wishlist-btn.active {
    background: var(--accent-color);
    color: var(--white);
}

.product-detail-info h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-id,
.product-category {
    color: #666666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-detail-info .product-price {
    font-size: 2rem;
    color: #000000;
    font-weight: 700;
    margin: 1.5rem 0;
}

.product-description h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.product-description p {
    color: #a0a0a0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-image {
        min-height: 400px;
        padding: 2rem;
    }
    
    .product-detail-image img {
        max-height: 350px;
    }
    
    .product-detail-info h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 1rem;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .product-detail-image {
        min-height: 300px;
        padding: 1.5rem;
    }
    
    .product-detail-image img {
        max-height: 250px;
    }
    
    .product-detail-wishlist-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .product-price {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .product-description h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
    
    .product-description p {
        font-size: 0.9rem;
    }
}
/* ===== COMPREHENSIVE MOBILE STYLING ===== */

/* Tablet & Small Devices (768px and below) */
@media (max-width: 768px) {
    /* Global */
    :root {
        --nav-padding: 0.8rem;
    }
    
    body {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header & Navigation */
    header {
        padding: 0.8rem 0;
    }
    
}
@media (max-width: 768px) {
    .navbar-content {
        max-width: 100% !important;
        width: 100%;
        padding: 0 !important;
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin: 0 !important;
    }
    
    .navbar-content::-webkit-scrollbar {
        height: 3px;
    }
    
    .navbar-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-content::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }
    
    .nav-brand {
        flex-shrink: 0;
        padding-right: 0.5rem;
    }
    
    .nav-brand a {
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 0;
        font-size: 0.75rem;
        flex-wrap: nowrap;
    }
    
    .nav-menu li {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0 0.6rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-right: none;
        padding-right: 0.5rem;
    }
    
    .cart-icon-container {
        margin-left: auto;
        flex-shrink: 0;
        padding-left: 0.5rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .cart-icon-btn {
        padding: 0.25rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .cart-icon-container {
        margin-left: 0.5rem;
    }
    
    .cart-dropdown {
        right: -10px;
        width: 280px;
    }
    
    /* Main Content */
    main {
        padding: 1.5rem 0;
        min-height: calc(100vh - 150px);
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Button Styles */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 4px;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .product-card {
        border-radius: 6px;
        overflow: hidden;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-card img {
        height: 100%;
        object-fit: contain;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    /* Filter Section */
    .filters-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-form {
        padding: 1.5rem;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group label {
        font-size: 0.9rem;
    }
    
    .filter-group input,
    .filter-group select {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    /* Card Styles */
    .auth-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .auth-form {
        gap: 0.5rem;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    /* Profile */
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-sidebar {
        grid-column: 1;
    }
    
    .profile-main {
        grid-column: 1;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-group {
        padding: 1rem;
    }
    
    /* Material Grid */
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .material-card {
        padding: 1rem;
    }
    
    .material-image {
        height: 200px;
    }
    
    /* Cart Dropdown */
    .cart-dropdown-header {
        padding: 1rem;
    }
    
    .cart-dropdown-header h3 {
        font-size: 1.1rem;
    }
    
    .cart-item {
        padding: 0.8rem;
    }
    
    /* Modal/Popup */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    /* Table Styles */
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.7rem 0.5rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 1rem;
        font-size: 0.9rem;
    }
    
    footer a {
        font-size: 0.85rem;
    }
    
    /* About Section */
    .about-intro {
        padding: 2rem 1rem;
    }
    
    .about-intro h2 {
        font-size: 1.5rem;
    }
    
    .about-intro p {
        font-size: 0.9rem;
    }
    
    .about h2 {
        font-size: 1.3rem;
    }
    
    /* Analytics */
    .analytics-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.8rem;
    }
}

/* Small Phones (480px and below) */
@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* Navigation */
    .navbar-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin: 0 !important;
    }
    
    .navbar-content::-webkit-scrollbar {
        height: 3px;
    }
    
    .navbar-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-content::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }
    
    .nav-brand {
        flex-shrink: 0;
    }
    
    .nav-brand a {
        font-size: 1rem;
        letter-spacing: 0px;
        flex-shrink: 0;
    }
    
    .nav-menu {
        gap: 0;
        flex-wrap: nowrap;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
    
    .nav-menu li {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0 0.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-right: none;
    }
    
    .cart-icon-container {
        margin-left: auto;
        flex-shrink: 0;
        padding: 0 0.5rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Product Grid - Single Column */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-card img {
        height: 100%;
        object-fit: contain;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .product-description {
        display: none;
    }
    
    .product-price {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    /* Form Elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .quantity-selector {
        flex-direction: row;
        gap: 8px;
    }
    
    .quantity-selector label {
        white-space: nowrap;
        font-size: 0.9em;
    }
    
    .quantity-selector input {
        flex: 1;
        min-width: 60px;
        padding: 8px;
    }
    
    .btn-add-to-cart {
        width: 100%;
        padding: 12px;
        font-size: 0.95em;
        margin: 10px 0;
    }
    
    /* Material Grid - Single Column */
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tables - Horizontal Scroll */
    .table-wrapper {
        overflow-x: auto;
    }
    
    table {
        font-size: 0.75rem;
        min-width: 100%;
    }
    
    th, td {
        padding: 0.5rem 0.3rem;
    }
    
    /* Disclaimer Text */
    .disclaimer-text {
        font-size: 0.8rem;
    }
    
    .disclaimer-icon {
        font-size: 1rem;
    }
    
    /* Modal */
    .modal-content {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .modal-header {
        font-size: 1.1rem;
    }
    
    /* Cart Dropdown Width */
    .cart-dropdown {
        width: 250px;
        right: -20px;
    }
    
    /* Analytics */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 0 1rem;
    }
    
    footer p {
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    button,
    a.btn,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        padding: 0.8rem 1.2rem;
    }
    
    .nav-menu a {
        padding: 0.8rem;
    }
    
    .product-card {
        cursor: pointer;
    }
    
    .product-card:active {
        opacity: 0.9;
        transform: scale(0.98);
    }
}

/* Featured toggle button styles */
.featured-toggle-btn.featured {
    background-color: #D4AF37;
    color: #1a1a1a;
}

.featured-toggle-btn.not-featured {
    background-color: #e0e0e0;
    color: #777;
}