/* =========================================
   1. GLOBAL SETTINGS & VARIABLES
   ========================================= */
:root {
    --primary-blue: #2c96f4;
    --primary-dark: #001f3f;
    --primary-hover: #1b68b3;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-muted: #888888;
    --white: #ffffff;
    --bg-blue-light: #f0f8ff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; transition: var(--transition); }

/* =========================================
   2. HEADER
   ========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo { 
    font-size: 36px;
    font-weight: 800; 
    color: var(--primary-blue); 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-img { 
    height: 80px; 
    width: auto; 
    object-fit: contain; 
    transition: var(--transition); 
}

.logo-img:hover { 
    transform: scale(1.05); 
}

.nav-menu { 
    display: flex; 
    gap: 45px;
    align-items: center; 
    font-weight: 700; 
    font-size: 16px; 
}

.nav-menu a { 
    color: var(--text-gray); 
}

.nav-menu a:hover, .nav-menu a.active { 
    color: var(--primary-blue);
}

.header-icons { 
    display: flex; 
    gap: 30px; 
    font-size: 24px; 
    color: var(--text-gray); 
    align-items: center;
}

.header-icons i:hover, .header-icons a:hover { 
    color: var(--primary-blue);
}

/* =========================================
   3. REUSABLE COMPONENTS
   ========================================= */
.section { padding: 100px 8%; }
.text-center { text-align: center; }

.bg-white { background-color: var(--white); }
.bg-blue-light { background-color: var(--bg-blue-light); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.btn {
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: var(--transition);
}

.btn-solid { background: var(--primary-blue); color: var(--white); }
.btn-solid:hover { background: var(--primary-hover); }

.btn-outline { border: 2px solid var(--primary-blue); color: var(--primary-blue); background: transparent; }
.btn-outline:hover { background: var(--primary-blue); color: var(--white); }

.btn-primary-full {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================
   4. HOME & PRODUCT CARDS
   ========================================= */
.hero {
    height: 80vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 50%, rgba(255,255,255,1) 100%), 
                url('https://images.unsplash.com/photo-1542385151-efd9000785a0?w=1600&q=80') center/cover;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-bottom: 80px;
}

.hero-text h1 { font-size: 48px; color: var(--primary-blue); font-weight: 800; margin-bottom: 10px; }

.card { 
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    transition: var(--transition); 
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }

.category-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 6px solid var(--primary-blue);
    text-align: left;
}

.price-tag {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.variant-select {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    outline: none;
    cursor: pointer;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.split-text { text-align: left; }
.split-text h3 { font-size: 24px; margin-bottom: 15px; color: var(--primary-dark); }
.split-text ul { list-style: none; margin: 20px 0; }
.split-text ul li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.split-text ul li::before { content: "•"; color: var(--primary-blue); position: absolute; left: 0; font-weight: bold; }

/* Size Table */
.size-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    text-align: left;
}

.size-table th { color: var(--primary-blue); padding: 10px 5px; border-bottom: 2px solid #f0f0f0; }
.size-table td { padding: 12px 5px; border-bottom: 1px solid #f0f0f0; }

/* =========================================
   5. REVIEWS
   ========================================= */
.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.review-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--bg-blue-light);
}

.stars { color: #f39c12; margin-bottom: 15px; }
.quote { font-size: 14px; color: var(--text-gray); font-style: italic; margin-bottom: 20px; min-height: 80px; }
.author { font-size: 13px; font-weight: 700; }

/* =========================================
   6. LOGIN PAGE
   ========================================= */
.login-body {
    background: var(--bg-blue-light);
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--white);
    padding: 45px 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-header .logo { justify-content: center; margin-bottom: 20px; }

.input-group-container { margin-bottom: 20px; text-align: left; }
.input-group-container label { font-weight: 700; font-size: 13px; display: block; margin-bottom: 8px; }

.input-with-icon { position: relative; }
.input-with-icon i:first-child { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--primary-blue); }
.input-with-icon input { width: 100%; padding: 14px 45px; border: 1.5px solid #ececec; border-radius: 12px; outline: none; }

.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #ccc; }

.login-divider { margin: 30px 0; border-bottom: 1px solid #f0f0f0; position: relative; }
.login-divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); padding: 0 15px; font-size: 11px; color: #bbb; }

.social-wrapper { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.social-icon-btn { width: 45px; height: 45px; border: 1px solid #f0f0f0; border-radius: 10px; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.social-icon-btn img { width: 22px; height: 22px; object-fit: contain; }

/* =========================================
   7. MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 31, 63, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 380px;
    text-align: center;
}

.modal-icon { font-size: 60px; color: #4CAF50; margin-bottom: 20px; }

/* =========================================
   8. FOOTER & SCROLL TO TOP
   ========================================= */
.footer { background: var(--primary-dark); color: var(--white); padding: 60px 8%; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 30px; }
.footer-col h3, .footer-col h4 { margin-bottom: 20px; }
.footer-col a { color: rgba(255, 255, 255, 0.9); font-size: 14px; margin-bottom: 10px; display: block; }

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 20px;
}

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .nav-menu { gap: 20px; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split-layout, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .nav-menu { display: none; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 32px; }
}
