@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #08070c;        /* Deep midnight/obsidian black */
    --card-bg: rgba(255, 255, 255, 0.03); /* Translucent glassmorphic white */
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --text-main: #f5f5f7;       /* Apple clean white */
    --text-muted: #8e8e93;      /* Muted silver gray */
    
    --accent-primary: #8f5bff;  /* Vibrant electric violet */
    --accent-hover: #7a46e5;
    --accent-light: rgba(143, 91, 255, 0.12);
    
    /* Premium purple-to-blue gradient for elements */
    --accent-gradient: linear-gradient(135deg, #8f5bff 0%, #3b82f6 100%);
    --accent-gradient-hover: linear-gradient(135deg, #a275ff 0%, #5191ff 100%);
    
    --border-color: rgba(255, 255, 255, 0.08); /* Thin transparent glass border */
    --border-hover: rgba(143, 91, 255, 0.3);
    --focus-ring: rgba(143, 91, 255, 0.25);
    
    /* premium glowing shadows */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.8);
    --glow-effect: 0 0 24px rgba(143, 91, 255, 0.25);
}

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

body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(143, 91, 255, 0.2); }
    50% { box-shadow: 0 0 30px rgba(143, 91, 255, 0.4); }
}

/* Glassmorphism Header */
.site-header {
    position: sticky; 
    top: 0; 
    z-index: 100;
    background: rgba(8, 7, 12, 0.75); 
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 0 2rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    height: 80px; 
    font-size: 15px; 
    font-weight: 500;
}

.logo { 
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none; 
    font-weight: 800; 
    font-size: 26px; 
    letter-spacing: -0.03em; 
    transition: filter 0.3s;
}
.logo:hover {
    filter: brightness(1.1);
}

.auth-links { 
    margin-left: 2.5rem; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}
.auth-links a { 
    color: var(--text-main); 
    text-decoration: none; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    font-weight: 600; 
    padding: 10px 16px; 
    border-radius: 12px;
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}
.auth-links a:hover { 
    color: #ffffff; 
    background: var(--accent-light); 
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(143, 91, 255, 0.15);
}
.welcome { 
    color: var(--accent-primary); 
    font-weight: 800; 
    font-size: 14px; 
    background: var(--accent-light);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(143, 91, 255, 0.2);
}

.nav-icon { 
    font-size: 18px; 
    line-height: 1; 
}
.nav-text { 
    display: inline; 
}
.cart-badge {
    background: var(--accent-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(143, 91, 255, 0.4);
}

/* Beautiful Search Form */
.search-form { 
    display: flex; 
    align-items: center; 
    position: relative;
}
.search-form input { 
    border: 1px solid var(--border-color); 
    background: rgba(255, 255, 255, 0.03); 
    padding: 12px 20px; 
    font-size: 15px; 
    outline: none; 
    width: 240px; 
    border-radius: 999px; 
    color: var(--text-main); 
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-form input::placeholder {
    color: var(--text-muted);
}
.search-form input:focus {
    width: 300px; 
    border-color: var(--accent-primary); 
    box-shadow: 0 0 0 4px var(--focus-ring), 0 0 15px rgba(143, 91, 255, 0.2); 
    background: rgba(0, 0, 0, 0.4);
}
.search-form button { 
    position: absolute; 
    right: 14px;
    background: transparent; 
    border: none; 
    cursor: pointer; 
    color: var(--text-muted); 
    font-size: 18px; 
    transition: all 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    transform: none !important;
}
.search-form button:hover { 
    color: var(--accent-primary); 
    transform: scale(1.15) !important; 
}

/* Premium Buttons & Links */
.btn, button, .hero-cta {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    padding: 14px 30px; 
    border-radius: 999px; 
    font-size: 15px; 
    font-weight: 700; 
    text-decoration: none; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    border: 2px solid transparent; 
    letter-spacing: 0.5px;
    font-family: inherit;
    outline: none;
    box-shadow: var(--shadow-sm);
}

/* Primary Button / Gradient Button */
.btn-primary, button, .hero-cta { 
    background: var(--accent-gradient); 
    color: #ffffff; 
    border: 0;
    box-shadow: 0 4px 15px rgba(143, 91, 255, 0.35);
}
.btn-primary:hover, button:hover, .hero-cta:hover { 
    background: var(--accent-gradient-hover);
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(143, 91, 255, 0.5), var(--glow-effect); 
}
.btn-primary:active, button:active, .hero-cta:active { 
    transform: translateY(-1px); 
}

/* Outline Button */
.btn-outline { 
    border: 2px solid var(--border-color); 
    color: var(--text-main); 
    background: rgba(255, 255, 255, 0.02); 
}
.btn-outline:hover { 
    background: rgba(255, 255, 255, 0.05); 
    color: #ffffff; 
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(143, 91, 255, 0.15);
}
.btn-outline.light-outline { 
    border: 2px solid rgba(255, 255, 255, 0.2); 
    color: #ffffff; 
}
.btn-outline.light-outline:hover { 
    background: #ffffff; 
    color: #000000; 
    border-color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* Danger Button */
button.danger { 
    background: linear-gradient(135deg, #ff4e4e 0%, #d32f2f 100%); 
    box-shadow: 0 4px 15px rgba(255, 78, 78, 0.25);
}
button.danger:hover { 
    background: linear-gradient(135deg, #ff6b6b 0%, #e53935 100%); 
    box-shadow: 0 8px 25px rgba(255, 78, 78, 0.45); 
    transform: translateY(-3px);
}

/* Landing Heroes */
.apple-hero { 
    text-align: center; 
    padding: 6rem 2rem 3rem; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    position: relative;
}
.apple-hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(143, 91, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    z-index: 0;
    pointer-events: none;
}
.apple-hero.light-bg { 
    background: linear-gradient(180deg, #0d0c15 0%, var(--bg-color) 100%); 
    border-bottom: 1px solid var(--border-color);
}
.apple-hero.dark-bg { 
    background: linear-gradient(180deg, var(--bg-color) 0%, #0c0b16 100%); 
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title { 
    font-size: 80px; 
    font-weight: 800; 
    letter-spacing: -0.03em; 
    margin-bottom: 16px; 
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle { 
    font-size: 24px; 
    font-weight: 400; 
    color: var(--text-muted); 
    margin-bottom: 2.5rem; 
}
.hero-actions { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center; 
}
.hero-image-wrapper { 
    margin-top: 4rem; 
    width: 100%; 
    max-width: 950px; 
    display: flex; 
    justify-content: center; 
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}
.hero-image-wrapper img { 
    max-width: 100%; 
    height: auto; 
    object-fit: cover; 
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
    transition: transform 0.5s ease;
}
.hero-image-wrapper:hover img {
    transform: translateY(-5px);
}

/* Content structure */
.page-content { 
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 3rem 2rem; 
}
.section-heading { 
    text-align: left; 
    font-size: 40px; 
    font-weight: 800; 
    margin: 4rem 0 2rem; 
    letter-spacing: -0.02em; 
    color: #ffffff;
    position: relative;
}

/* Dynamic Products Grid */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); 
    gap: 2rem; 
}

/* Premium Card Design */
.product-card {
    text-decoration: none; 
    color: inherit; 
    background: var(--card-bg); 
    border-radius: 24px; 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    text-align: left;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-sm); 
    position: relative; 
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(143, 91, 255, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
.product-card:hover::before {
    opacity: 1;
}

.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg), var(--glow-effect); 
    border-color: var(--border-hover);
    background: var(--card-hover-bg);
}

.product-card > a {
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}
.product-card img { 
    width: 100%; 
    height: 220px; 
    object-fit: contain; 
    margin-bottom: 2rem; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3)); 
}
.product-card:hover img { 
    transform: scale(1.08) rotate(-1deg); 
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.pill { 
    color: var(--accent-primary); 
    font-size: 12px; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin-bottom: 0.75rem; 
    letter-spacing: 1.5px;
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(143, 91, 255, 0.15);
    z-index: 1;
}

.product-card h3 { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
    color: #ffffff; 
    z-index: 1;
}
.product-card h3 a {
    color: inherit;
    text-decoration: none;
}
.product-card h3 a:hover {
    color: var(--accent-primary);
}

.product-card p { 
    color: var(--text-muted); 
    font-size: 14px; 
    margin-bottom: 1.5rem; 
    line-height: 1.5; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    z-index: 1;
}

.price-row { 
    margin-top: auto; 
    font-size: 16px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-weight: 700; 
    width: 100%;
    z-index: 1;
}
.price { 
    color: #ffffff; 
    font-size: 22px; 
    font-weight: 800; 
}
.old-price { 
    text-decoration: line-through; 
    color: var(--text-muted); 
    font-size: 14px; 
    font-weight: 500;
}
.badge { 
    background: rgba(239, 68, 68, 0.15); 
    color: #ef4444; 
    font-size: 12px; 
    font-weight: 800; 
    padding: 4px 10px; 
    border-radius: 999px; 
    margin-left: auto; 
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.stock { 
    color: var(--text-muted); 
    font-size: 13px; 
    margin-top: 0.75rem; 
    width: 100%; 
    z-index: 1;
}

/* Add to cart inline form inside cards */
.product-card form { 
    width: 100%; 
    margin-top: 1.5rem; 
    z-index: 1;
}
.product-card button { 
    width: 100%; 
    padding: 12px 20px;
    font-size: 14px;
}

/* Product detail page */
.product-detail { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    margin-top: 3rem; 
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1); 
}
.main-image { 
    width: 100%; 
    border-radius: 28px; 
    box-shadow: var(--shadow-md); 
    object-fit: contain; 
    border: 1px solid var(--border-color); 
    background: rgba(255, 255, 255, 0.01); 
    padding: 3rem;
    transition: border-color 0.3s;
}
.main-image:hover {
    border-color: rgba(143, 91, 255, 0.25);
}

.product-detail-info { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.product-detail h1 { 
    font-size: 50px; 
    font-weight: 800; 
    line-height: 1.15; 
    margin-bottom: 1rem; 
    color: #ffffff; 
    letter-spacing: -0.02em;
}
.product-short { 
    font-size: 22px; 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
    font-weight: 400; 
    line-height: 1.4;
}
.detail-price-row { 
    display: flex; 
    align-items: baseline; 
    gap: 1.5rem; 
    margin-bottom: 2rem; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 2rem; 
}
.detail-price { 
    font-size: 44px; 
    font-weight: 800; 
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.description { 
    font-size: 17px; 
    line-height: 1.7; 
    color: var(--text-main); 
    margin: 1.5rem 0 2.5rem; 
    font-weight: 400; 
    opacity: 0.85;
}
.cart-inline { 
    display: flex; 
    gap: 1.2rem; 
    align-items: center; 
    margin-top: 1.5rem; 
    background: var(--card-bg); 
    padding: 1rem; 
    border-radius: 20px; 
    box-shadow: var(--shadow-sm); 
    border: 1px solid var(--border-color); 
    width: max-content;
}
.cart-inline input { 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--text-main); 
    padding: 10px; 
    width: 80px; 
    text-align: center; 
    background: rgba(0, 0, 0, 0.3); 
    outline: none; 
    transition: all 0.3s;
}
.cart-inline input:focus { 
    border-color: var(--accent-primary); 
    box-shadow: 0 0 10px rgba(143, 91, 255, 0.2);
}

/* Dynamic Alerts / Messages */
.messages { 
    margin-bottom: 2.5rem; 
    display: grid; 
    gap: 1rem; 
    margin-top: 1rem; 
    animation: fadeInUp 0.4s; 
}
.message { 
    padding: 1rem 1.5rem; 
    border-radius: 14px; 
    background: var(--card-bg); 
    font-size: 15px; 
    font-weight: 600; 
    border: 1px solid var(--border-color); 
    border-left: 5px solid var(--border-color); 
    box-shadow: var(--shadow-sm); 
    color: var(--text-main); 
    display: flex; 
    align-items: center;
}
.message.success { 
    border-left-color: #10b981; 
    background: rgba(16, 185, 129, 0.08); 
    border-color: rgba(16, 185, 129, 0.15);
}
.message.error, .message.danger {
    border-left-color: #ef4444; 
    background: rgba(239, 68, 68, 0.08); 
    border-color: rgba(239, 68, 68, 0.15);
}

/* Split layouts for Checkout & summary */
.split-layout h1 {
    text-align: left; 
    font-size: 42px; 
    font-weight: 800; 
    margin-bottom: 2rem; 
    letter-spacing: -0.02em; 
    color: #ffffff;
}
.split-layout { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 3.5rem; 
    margin-top: 2rem; 
    animation: fadeInUp 0.5s; 
}
.summary-card { 
    background: var(--card-bg); 
    border-radius: 24px; 
    padding: 2.5rem; 
    box-shadow: var(--shadow-md); 
    border: 1px solid var(--border-color); 
    align-self: start; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.summary-card h2 { 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 2rem; 
    color: #ffffff; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 1.5rem; 
}
.summary-card p { 
    font-size: 16px; 
    margin-bottom: 1.2rem; 
    display: flex; 
    justify-content: space-between; 
    font-weight: 500; 
    color: var(--text-muted);
}
.summary-card p strong { 
    color: #ffffff; 
    font-weight: 800; 
}
.summary-card hr { 
    border: 0; 
    border-top: 1px solid var(--border-color); 
    margin: 2rem 0; 
}

/* Cart Table and Rows */
.cart-table { 
    display: grid; 
    gap: 1.5rem; 
    margin: 2rem 0; 
}
.cart-row { 
    background: var(--card-bg); 
    border-radius: 24px; 
    padding: 1.5rem 2rem; 
    display: grid; 
    grid-template-columns: 100px 2fr 1.5fr 1fr auto; 
    gap: 2rem; 
    align-items: center; 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-sm); 
    font-weight: 600; 
    font-size: 17px; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cart-row:hover { 
    box-shadow: var(--shadow-md), var(--glow-effect); 
    border-color: var(--border-hover);
    transform: translateX(6px); 
    background: var(--card-hover-bg);
}
.cart-row img { 
    width: 100px; 
    height: 100px; 
    object-fit: contain; 
    border-radius: 16px; 
    background: rgba(255, 255, 255, 0.02); 
    padding: 8px;
    border: 1px solid var(--border-color);
}
.cart-row h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 4px;
}
.cart-row p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
.cart-row form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-row form input[type="number"] {
    width: 70px;
    padding: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 8px;
    outline: none;
    text-align: center;
    font-weight: 700;
}
.cart-row form button {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* Elevated Forms */
.checkout-form, .login-card { 
    background: var(--card-bg); 
    padding: 3rem; 
    border-radius: 28px; 
    box-shadow: var(--shadow-md); 
    border: 1px solid var(--border-color); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.checkout-form p, .login-card p { 
    margin-bottom: 1.8rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.8rem; 
}
.checkout-form label, .login-card label { 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--text-main); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}
.checkout-form input, .checkout-form textarea, .login-card input { 
    width: 100%; 
    padding: 16px; 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    font-size: 16px; 
    font-family: inherit; 
    color: var(--text-main); 
    font-weight: 500; 
    background: rgba(0, 0, 0, 0.3); 
    transition: all 0.3s;
}
.checkout-form input:focus, .checkout-form textarea:focus, .login-card input:focus { 
    border-color: var(--accent-primary); 
    outline: none; 
    background: rgba(0, 0, 0, 0.5); 
    box-shadow: 0 0 0 4px var(--focus-ring), 0 0 15px rgba(143, 91, 255, 0.15); 
    transform: translateY(-2px);
}
.checkout-form button, .login-card button { 
    margin-top: 2rem; 
    width: 100%; 
    font-size: 17px; 
    padding: 16px; 
    letter-spacing: 1px; 
    border-radius: 12px;
}

form.cart-inline, .cart-row form { margin:0; }
form input, form textarea { font-family: inherit; }

/* Interactive Category Buttons */
.category-section {
    margin: 4rem 0 2rem;
}
.category-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.category-btn {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.category-btn:hover {
    border-color: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(143, 91, 255, 0.2);
}
.category-btn.active {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(143, 91, 255, 0.4), var(--glow-effect) !important;
}

.filter-tip {
    font-size: 14px;
    color: var(--text-muted);
}

/* Checkout Page Addons */
.checkout-form button {
    margin-top: 1rem;
}

/* Footer structure if any */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6rem;
    background: rgba(255, 255, 255, 0.01);
}

@media (max-width: 960px) {
    .product-detail { grid-template-columns: 1fr; gap: 3rem; }
    .split-layout { grid-template-columns: 1fr; gap: 3rem; }
    .cart-row { grid-template-columns: 80px 1.5fr 1fr auto; gap: 1rem; }
    .hero-title { font-size: 60px; }
    .search-form input { width: 180px; }
    .search-form input:focus { width: 220px; }
}

@media (max-width: 768px) {
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "logo auth"
            "search search";
        gap: 12px;
        height: auto;
        padding: 16px 1rem;
    }
    .logo {
        grid-area: logo;
        font-size: 22px;
        align-self: center;
    }
    .auth-links {
        grid-area: auth;
        margin-left: 0;
        gap: 0.5rem;
        justify-self: end;
        align-self: center;
    }
    .auth-links a {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    .nav-text {
        display: none; /* Hide text label on mobile, leaving beautiful clean icons */
    }
    .welcome {
        display: none; /* Hide username in mobile header to avoid overlap */
    }
    .search-form {
        grid-area: search;
        width: 100%;
    }
    .search-form input {
        width: 100% !important;
        padding: 12px 18px;
    }
    .search-form input:focus {
        width: 100% !important;
    }
    .page-content {
        padding: 1.5rem 1rem;
    }
    .apple-hero {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    .hero-title {
        font-size: 44px;
    }
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        padding: 0 1rem;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .product-card img {
        height: 180px;
        margin-bottom: 1.5rem;
    }
    .category-buttons-container {
        gap: 0.5rem !important;
        margin: 1rem 0 !important;
    }
    .category-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
    .cart-row {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "img info"
            "img price"
            "form form"
            "total total"
            "delete delete";
        gap: 0.75rem;
        padding: 1.25rem;
        justify-items: start;
        text-align: left;
    }
    .cart-row img {
        grid-area: img;
        width: 80px;
        height: 80px;
    }
    .cart-row > div:nth-child(2) {
        grid-area: info;
    }
    .cart-row form {
        grid-area: form;
        width: 100%;
        margin-top: 0.5rem;
    }
    .cart-row > strong {
        grid-area: total;
        margin-top: 0.25rem;
    }
    .cart-row > form:last-child {
        grid-area: delete;
        width: 100%;
    }
    .cart-row > form:last-child button {
        width: 100%;
        margin-top: 0.5rem;
    }
}
