/* --- GLOBAL VARIABLES --- */
:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --whatsapp: #25D366;
    --telegram: #0088cc;
    --bg-light: #f4f6f8;
    --text-dark: #333;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-light); margin: 0; padding: 0; color: var(--text-dark); }
a { text-decoration: none; color: inherit; }

/* --- NAVBAR --- */
.navbar { background: #fff; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.brand { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.nav-links a { margin-left: 25px; color: #555; font-weight: 600; font-size: 15px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* --- HERO & GENERAL --- */
.hero { background: linear-gradient(135deg, #2c3e50, #4ca1af); color: white; text-align: center; padding: 80px 20px; }
.hero h1 { margin: 0 0 15px; font-size: 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* --- PRODUCT CARD --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; margin-top: 30px; }
.card { background: #fff; border-radius: 12px; padding: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #eee; }
.card:hover { transform: translateY(-7px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.card h3 { font-size: 18px; margin: 10px 0 5px; color: #2c3e50; }
.btn-view { display: block; background: var(--primary); color: #fff; text-align: center; padding: 12px; border-radius: 6px; margin-top: 15px; font-weight: 600; }

/* --- BUTTONS --- */
.btn { padding: 12px; border: none; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; text-align: center; width: 100%; display: block; box-sizing: border-box; transition: transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-buy { background: var(--primary); color: white; }
.btn-cart { background: #e67e22; color: white; }
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-telegram { background: var(--telegram); color: white; }
.badge { padding: 5px 10px; border-radius: 4px; font-size: 11px; color: white; text-transform: uppercase; font-weight: bold; }
.in-stock { background: #27ae60; } .out-stock { background: #c0392b; }

/* --- 3D LOGIN / AUTH STYLES (THE NEW PART) --- */
.auth-bg-gradient {
    /* Deep 3D Gradient Background */
    background: radial-gradient(circle at 10% 20%, rgb(69, 86, 102) 0%, rgb(34, 34, 34) 90%);
    min-height: 85vh; /* Covers most of screen */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card-3d {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    
    /* 3D Floating Shadow Effect */
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5), /* Deep shadow */
        0 0 0 1px rgba(255,255,255,0.2) inset; /* Inner light rim */
    
    transform: perspective(1000px) rotateX(2deg); /* Slight tilt for 3D feel */
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.auth-card-3d:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px); /* Float up on hover */
}

.auth-card-3d h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-3d {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    background: #f8f9fa;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s;
}

.input-3d:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
}

.btn-3d-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-3d-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(44, 62, 80, 0.4);
}

.auth-links-3d { margin-top: 25px; font-size: 14px; color: #666; }
.auth-links-3d a { color: var(--accent); font-weight: bold; margin: 0 5px; }
.auth-links-3d a:hover { text-decoration: underline; }

/* --- FOOTER --- */
.footer { background-color: #2c3e50; color: #ecf0f1; padding: 40px 0 0; margin-top: 0; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-section { flex: 1; min-width: 200px; }
.footer-section h3 { border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.footer-bottom { background: #1a252f; text-align: center; padding: 15px; margin-top: 20px; font-size: 13px; color: #95a5a6; }


/* FORCE SEARCH BUTTON VISIBILITY */
.search-box {
    display: flex;
    align-items: center;
    border: 2px solid #3498db; /* Blue border */
    border-radius: 50px;
    overflow: hidden;
    background: white;
    max-width: 400px;
    margin: 0 15px;
    flex: 1;
}

.search-box input {
    border: none;
    outline: none;
    padding: 10px 15px;
    width: 100%;
    font-size: 14px;
}

.search-box button {
    background: #3498db; /* Bright Blue */
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #2980b9; /* Darker Blue */
}

/* Ensure Icon is Visible */
.search-box button i {
    display: inline-block;
    color: white; 
}

/* --- SEARCH BAR STYLING --- */
.search-box {
    display: flex;
    align-items: center;
    border: 2px solid #3498db; /* Brand Blue Border */
    border-radius: 50px; /* Fully rounded corners */
    overflow: hidden;
    background: white;
    max-width: 500px;
    width: 100%; /* Responsive width */
    margin: 0 20px; /* Space between logo and links */
}

.search-box form {
    display: flex;
    width: 100%;
}

.search-box input {
    flex: 1; /* Takes up all remaining space */
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 15px;
    color: #333;
    border-radius: 50px 0 0 50px;
}

.search-box button {
    background: #3498db; /* Brand Blue */
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    border-radius: 0 50px 50px 0; /* Rounded right side */
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: #2980b9; /* Darker Blue on Hover */
}

.search-box button i {
    color: white !important; /* Force icon to be white */
}

/* Mobile Responsiveness for Search */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap; /* Allow items to stack */
        padding: 10px;
    }
    .search-box {
        order: 3; /* Move search bar to the bottom row on mobile */
        margin: 10px 0 0 0;
        max-width: 100%; /* Full width on mobile */
    }
}

