/* ARIKSHA BRAND - Global Stylesheet (V3.0 Ultra-Fast Optimized) 
   Environment: Hostinger Live 
*/

/* 🚀 SPEED FIX: @import removed from here to prevent Render-Blocking. Fonts must be loaded via HTML <link> */

:root { 
    --gold: #C5A059; 
    --black: #000; 
    --dark: #121212; 
    --text: #F5F5F5; 
    --border: #333;
    --white: #ffffff;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    margin: 0; 
    background: var(--black); 
    color: var(--text); 
    font-family: 'Montserrat', sans-serif; 
    overflow-x: hidden; 
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* --- HEADER ARCHITECTURE --- */
header { 
    background: #080808; 
    border-bottom: 1px solid rgba(197, 160, 89, 0.2); 
    padding: 12px 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Safari support */
}

/* 1. Left: Brand/Logo */
.brand { display: flex; align-items: center; gap: 12px; flex: 1; } 
.logo-img { height: 48px; width: auto; object-fit: contain; }
.brand-name { 
    font-family: 'Playfair Display', serif; 
    color: var(--gold); 
    font-size: 26px; 
    letter-spacing: 2px; 
    font-weight: 700; 
    text-transform: uppercase;
}

/* 2. Middle: Search Bar */
.search-bar { 
    display: flex; border: 1px solid var(--border); background: #111; 
    border-radius: 40px; width: 100%; max-width: 500px; height: 44px; 
    overflow: hidden; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 30px; flex: 2; 
}
.search-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 15px rgba(197, 160, 89, 0.15); }
.search-bar input { border: none; background: transparent; padding: 0 20px; color: #fff; width: 100%; outline: none; font-size: 14px; }
.search-bar button { background: transparent; border: none; color: var(--gold); cursor: pointer; padding: 0 20px; font-size: 16px; }

/* 3. Right: Nav Icons */
.nav-links { display: flex; gap: 28px; align-items: center; flex: 1; justify-content: flex-end; }
.nav-links a { font-size: 22px; color: #ccc; position: relative; transition: 0.3s; }
.nav-links a:hover { color: var(--gold); transform: translateY(-2px); }
.badge { 
    position: absolute; top: -10px; right: -12px; background: var(--gold); color: #000; 
    font-size: 10px; padding: 2px 6px; border-radius: 50px; font-weight: 800; border: 2px solid #000; 
}

/* --- PRODUCT GRID SYSTEM --- */
.container { max-width: 1440px; margin: 0 auto; padding: 40px 25px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 35px; }

.card { 
    background: var(--dark); border: 1px solid var(--border); border-radius: 12px; 
    position: relative; overflow: hidden; transition: 0.4s ease; 
    transform: translateZ(0); /* Hardware acceleration for smooth hover */
}
.card:hover { border-color: var(--gold); transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }

.img-box { height: 440px; overflow: hidden; position: relative; background: #080808; }
.img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.8s ease; }
.card:hover .img-box img { transform: scale(1.1); }

/* Floating Icons on Product */
.action-btn { 
    position: absolute; right: 15px; width: 38px; height: 38px; 
    background: rgba(255,255,255,0.98); border-radius: 50%; display: flex; 
    justify-content: center; align-items: center; color: #000; 
    z-index: 10; border: none; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.4); transition: 0.3s;
}
.wish-btn { top: 15px; }
.share-btn { top: 62px; }
.action-btn:hover { background: var(--gold); color: #000; transform: scale(1.15); }

.discount-badge { 
    position: absolute; top: 15px; left: 15px; background: var(--gold); color: #000; 
    padding: 5px 12px; font-weight: 800; font-size: 12px; z-index: 5; border-radius: 5px; letter-spacing: 0.5px;
}

/* Product Content */
.info { padding: 20px; text-align: center; }
.p-name { 
    font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 10px; 
    font-weight: 600; display: block; color: var(--white);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.price { color: var(--gold); font-weight: 700; font-size: 20px; }
.mrp { text-decoration: line-through; color: #777; font-size: 15px; margin-left: 10px; font-weight: 400; }

/* --- MOBILE OPTIMIZATION (Ultra Pro Fix) --- */
@media screen and (max-width: 768px) {
    header { padding: 15px !important; flex-wrap: wrap; }
    
    .brand { flex: 0 0 50%; order: 1; margin: 0; }
    .logo-img { height: 35px !important; }
    .brand-name { font-size: 20px !important; }
    
    .nav-links { flex: 0 0 50%; gap: 20px !important; order: 2; justify-content: flex-end; }
    .nav-links a { font-size: 22px; }

    /* Search Bar */
    .search-bar { order: 3; flex: 0 0 100%; max-width: 100% !important; margin: 15px 0 0 0 !important; height: 42px !important; }

    /* Guaranteed 2-Column Mobile Layout */
    .container { padding: 15px 10px !important; }
    .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .img-box { height: 260px !important; }
    .p-name { font-size: 13px !important; padding: 0 5px; }
    .price { font-size: 15px !important; }
    .mrp { font-size: 11px !important; display: block; margin-left: 0; margin-top: 4px; }
    
    .action-btn { width: 30px; height: 30px; font-size: 12px; right: 10px; }
    .wish-btn { top: 10px; }
    .share-btn { top: 45px; }
    .discount-badge { top: 10px; left: 10px; font-size: 10px; padding: 3px 8px; }
}

/* --- GLOBAL BUTTONS --- */
.btn { 
    width: 100%; padding: 16px; background: var(--gold); color: #000; 
    border: 1px solid var(--gold); font-weight: 800; cursor: pointer; 
    text-transform: uppercase; letter-spacing: 2px; transition: 0.4s; font-size: 14px; border-radius: 6px;
}
.btn:hover { background: transparent; color: var(--gold); }