/* Custom Design System & Aesthetics */
:root {
    --bg-dark: #030108;
    --bg-card: rgba(18, 12, 28, 0.55);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(179, 72, 255, 0.25);
    --accent-glow: #bd4bfa;
    --accent-dark: #7b1fa2;
    --text-main: #f3effa;
    --text-muted: #a69db8;
    --text-dim: #6c6382;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.6);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Effects */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0d061c 0%, var(--bg-dark) 100%);
}

#glow-orbs {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 80%);
    top: -100px;
    left: -100px;
    animation: floatOrb 25s infinite alternate;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #5b12a8 0%, transparent 85%);
    bottom: -150px;
    right: -100px;
    animation: floatOrb 30s infinite alternate-reverse;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.15); }
}

/* App Layout */
.app-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

header {
    text-align: center;
    width: 100%;
}

.logo-area {
    margin-bottom: 12px;
    animation: pulseLogo 3s infinite ease-in-out;
}

.logo-icon {
    font-size: 38px;
    color: var(--accent-glow);
    text-shadow: 0 0 15px var(--accent-glow);
}

@keyframes pulseLogo {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 5px var(--accent-glow)); }
    50% { transform: translateY(-5px) scale(1.05); filter: drop-shadow(0 0 15px var(--accent-glow)); }
}

h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 38px;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #fff 30%, #d8b2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tagline {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--accent-glow);
    text-shadow: 0 0 8px rgba(189, 75, 250, 0.4);
}

/* Glassmorphism Card styling */
.glass-card {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.intro-text {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 300;
}

/* Form Controls */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

label i {
    color: var(--accent-glow);
    font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    background: rgba(10, 5, 20, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-glow);
    box-shadow: 0 0 12px rgba(189, 75, 250, 0.2);
    background: rgba(15, 8, 30, 0.7);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bd4bfa'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 20px;
    padding-right: 40px;
}

select option {
    background-color: #120922;
    color: var(--text-main);
}

textarea {
    resize: none;
}

.input-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 15px;
}

/* Animations & Transitions for Mug/Size Toggle */
#size-group {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#size-group.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Validation Styling */
.input-group.error input,
.input-group.error select {
    border-color: #ff4a6b;
    box-shadow: 0 0 10px rgba(255, 74, 107, 0.15);
}

.error-msg {
    color: #ff4a6b;
    font-size: 11px;
    font-weight: 500;
    display: none;
}

.input-group.error .error-msg {
    display: block;
}

/* Buttons */
.glow-btn {
    background: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(189, 75, 250, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glow-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(189, 75, 250, 0.5);
    filter: brightness(1.1);
}

.glow-btn:hover::after {
    opacity: 1;
    transform: translate(50%, 50%) rotate(45deg);
}

.glow-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 20px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 15px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* Success View styling */
#success-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}

.success-icon-wrapper {
    margin-bottom: 20px;
    position: relative;
}

.success-icon {
    font-size: 60px;
    color: #4affb5;
    filter: drop-shadow(0 0 10px rgba(74, 255, 181, 0.4));
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#success-section h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 8px;
    color: #fff;
}

#success-section p {
    color: var(--text-muted);
    font-size: 14px;
}

.quote-box {
    background: rgba(189, 75, 250, 0.08);
    border-left: 3px solid var(--accent-glow);
    padding: 15px 25px;
    border-radius: 0 10px 10px 0;
    margin: 25px 0;
    width: 100%;
}

.quote {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent-glow) !important;
    font-size: 15px !important;
}

.email-notice {
    font-size: 12px !important;
    margin-bottom: 10px;
}

/* Footer Section */
footer {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer p {
    font-size: 11px;
    color: var(--text-dim);
}

.admin-link-wrapper a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-link-wrapper a:hover {
    color: var(--accent-glow);
    text-shadow: 0 0 5px rgba(189, 75, 250, 0.3);
}

/* Modals & Dashboard styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(3, 1, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
}

/* Custom Scrollbar for dashboard */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(189, 75, 250, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-glow);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: #ff4a6b;
}

/* Admin Auth View */
#admin-auth-section {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#admin-auth-section h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 1px;
}

#admin-auth-section p {
    color: var(--text-muted);
    font-size: 13px;
}

.auth-error-msg {
    color: #ff4a6b;
    font-size: 12px;
    margin-top: 5px;
}

/* Admin Dashboard View */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
}

.dashboard-header h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-header h2 i {
    color: var(--accent-glow);
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.csv-btn {
    background: rgba(74, 255, 181, 0.1);
    color: #4affb5;
    border: 1px solid rgba(74, 255, 181, 0.2);
}

.csv-btn:hover {
    background: #4affb5;
    color: #030108;
    box-shadow: 0 0 15px rgba(74, 255, 181, 0.3);
}

.delete-btn {
    background: rgba(255, 74, 107, 0.1);
    color: #ff4a6b;
    border: 1px solid rgba(255, 74, 107, 0.2);
}

.delete-btn:hover {
    background: #ff4a6b;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 74, 107, 0.3);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(10, 5, 20, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-glow);
    text-shadow: 0 0 10px rgba(189, 75, 250, 0.2);
}

/* Size Breakdown Bars */
.size-breakdown {
    margin-bottom: 30px;
    background: rgba(10, 5, 20, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
}

.size-breakdown h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.size-bar-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.size-bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.size-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.size-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-glow));
    width: 0;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Table Container Styling */
.table-container {
    background: rgba(5, 2, 10, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 15px;
}

.table-search {
    position: relative;
    margin-bottom: 15px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 14px;
}

#search-input {
    padding-left: 36px;
    font-size: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

td {
    color: var(--text-main);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.table-note {
    font-style: italic;
    color: var(--text-dim);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 40px 0;
}

/* Helpers & Utilities */
.hidden {
    display: none !important;
}

/* Animation Utilities */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

/* ==========================================================================
   NEW SHOP LAYOUT & MODAL GALLERY STYLES
   ========================================================================== */

.intro-text-large {
    color: var(--text-muted);
    font-size: 16px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-weight: 300;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 10px;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.product-card::before {
    display: none; /* Hide default top gradient bar for grid cards */
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(189, 75, 250, 0.25);
    color: var(--accent-glow);
    border: 1px solid rgba(189, 75, 250, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 5;
}

.product-card-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: rgba(5, 2, 12, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 15px 40px rgba(189, 75, 250, 0.15);
    transform: translateY(-4px);
}

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

.product-card-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.product-card-info h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    margin: 0;
}

.product-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-glow);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
    font-weight: 300;
    margin: 0;
}

.card-action-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    margin-top: 10px;
    pointer-events: none; /* Clicking the card triggers opening the modal */
}

/* Wide Modal & Modal Grid Styles */
.wide-modal {
    max-width: 950px;
    width: 95%;
    padding: 0 !important;
    border-radius: 24px;
    overflow: hidden;
}

.wide-modal::before {
    height: 4px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    height: 100%;
    max-height: 85vh;
}

.modal-gallery {
    background: rgba(5, 2, 10, 0.7);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    position: relative;
}

.gallery-image-wrapper {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.gallery-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease-in-out;
}

.gallery-toggles {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: var(--text-muted);
}

.toggle-btn.active {
    background: var(--accent-glow);
    color: #fff;
    border-color: var(--accent-glow);
    box-shadow: 0 0 12px rgba(189, 75, 250, 0.4);
}

.modal-form-side {
    padding: 40px;
    overflow-y: auto;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Custom Scrollbar for form side */
.modal-form-side::-webkit-scrollbar {
    width: 6px;
}

.modal-form-side::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.modal-form-side::-webkit-scrollbar-thumb {
    background: rgba(189, 75, 250, 0.25);
    border-radius: 10px;
}

.modal-form-side h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #fff;
}

.modal-product-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 300;
}

/* Success Modal Content */
.success-modal-content {
    max-width: 460px;
    text-align: center;
    padding: 45px 35px !important;
    border-radius: 20px;
    position: relative;
}

.success-modal-content .close-btn {
    top: 15px;
    right: 20px;
}

#success-close-btn {
    margin-top: 15px;
    width: 100%;
}

.admin-modal-content {
    max-width: 1000px;
    width: 95%;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-gallery {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 30px 20px;
    }
    .gallery-image-wrapper {
        height: 300px;
    }
    .modal-form-side {
        padding: 30px 20px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 580px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 30px;
    }
    
    .gallery-image-wrapper {
        height: 220px;
    }
}

