/* ============================================================
   SECTION 1: GLOBAL RESET & PROFESSIONAL UI SETTINGS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --f-blue: #2874f0;         /* Flipkart Blue Search Border */
    --f-bg-blue: #f0f5ff;      /* Icon backgrounds */
    --f-orange: #fb641b;       /* WhatsApp Buy Button */
    --body-bg: #f1f3f6;        /* Light Gray Page Background */
    --text-dark: #212121;
    --text-muted: #878787;
    --wa-green: #25D366;       /* Official WhatsApp Green */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--body-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   SECTION 2: HEADER, BLACK SEARCH & HOVER EFFECTS
   ============================================================ */
.main-header {
    background: #ffffff;
    padding: 12px 5%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    gap: 20px;
}

.brand-badge {
    background: #f0f0f0;
    padding: 6px 20px;
    border-radius: 50px;
    text-decoration: none;
}

.brand-text {
    font-weight: 800;
    font-style: italic;
    font-size: 1.25rem;
    color: #000;
}

.search-wrapper {
    flex-grow: 1;
    max-width: 700px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #000000; 
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-btn {
    background: #000000;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #333333;
}

.header-wa-btn-black {
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-wa-btn-black:hover {
    background: var(--wa-green);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ============================================================
   SECTION 3: TRUST FEATURES BAR (WHITE THEME)
   ============================================================ */
.trust-features {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 18px 0;
    overflow-x: auto;
}

.features-container {
    display: flex;
    justify-content: space-around;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
}

.feature-icon {
    font-size: 20px;
    background: var(--f-bg-blue);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-text strong {
    font-size: 13px;
    display: block;
    color: #212121;
}

.feature-text span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   SECTION 4: UPDATED BLACK CATEGORY HEADERS & VIEW ALL
   ============================================================ */
.cat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.cat-title-text {
    font-size: 18px;
    font-weight: 800;
    color: #212121;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Changed from Blue to Black Meesho/Flipkart Style */
.cat-view-all-btn {
    text-decoration: none;
    background-color: #000000; /* Black Background */
    color: #ffffff !important;   /* White Text */
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.cat-view-all-btn:hover {
    background-color: #333333; /* Dark Gray on Hover */
    transform: translateX(3px); /* Subtle nudge effect */
}

/* ============================================================
   SECTION 5: PRODUCT GALLERY & GRID
   ============================================================ */
.main-content {
    flex: 1 0 auto;
    padding: 20px 5%;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
}

.card {
    background: #ffffff;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid transparent;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #000;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 220px; 
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 2px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================================
   SECTION 6: PRODUCT DETAIL PAGE - MEESHO STYLE BOXES
   ============================================================ */
.product-info-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Creates clean gap between boxes */
}

/* Uniform Box Style for Title, Details, and Description */
.details-box-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.details-box-card h1 {
    font-size: 22px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 10px;
}

.details-box-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Grid for Details like Size, Frame, etc. */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-item span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-item strong {
    font-size: 14px;
    color: #212121;
    font-weight: 600;
}

.description-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* ============================================================
   SECTION 7: FOOTER (BLACK THEME)
   ============================================================ */
.main-footer {
    background: #212121;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 12px;
    color: #878787;
    display: flex;
    justify-content: space-between;
    max-width: 1440px;
    margin: 20px auto 0;
}

/* ============================================================
   SECTION 8: MOBILE RESPONSIVENESS
   ============================================================ */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .search-wrapper { width: 100%; }
    
    .grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
    }
    
    .card-image { height: 160px; }
    .specs-grid { grid-template-columns: 1fr; gap: 12px; }
    
    .cat-header-row { padding: 12px 15px; }
    .cat-title-text { font-size: 15px; }
    
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* ============================================================
   SECTION 9: BUTTONS
   ============================================================ */
.buy-wa-btn {
    display: block;
    background-color: #FFD814; 
    color: #000000;             
    text-decoration: none;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 800;          
    border: 1px solid #000000; 
    border-radius: 8px;        
    text-align: center;
    transition: all 0.3s ease; 
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;               
    max-width: 400px;          
    margin: 25px auto 0;
}

.buy-wa-btn:hover {
    background-color: #ffffff; 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}