/* ==========================================================================
   Base & Clean Variables
   ========================================================================== */
:root {
    --bg-body: #f8faff;
    --bg-card: #ffffff;
    --primary-blue: #0a74da;
    --primary-blue-hover: #085bb0;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #20b858;
    --text-main: #2d3748;
    --text-muted: #718096;
    --border-light: #e2e8f0;
    
    /* Clean Subtle Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-card: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 25px rgba(10, 116, 218, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==========================================================================
   Header (Clean & Professional)
   ========================================================================== */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.cart-link {
    display: flex;
    align-items: center;
}

.cart-badge {
    background: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 5px;
}

/* ==========================================================================
   Hero & Search Bar
   ========================================================================== */
.hero {
    padding: 80px 5%;
    text-align: center;
    background: linear-gradient(to bottom, #e3effa, var(--bg-body));
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-bar {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 5px;
    box-shadow: var(--shadow-card);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 20px;
    font-size: 1rem;
    background: transparent;
}

.search-bar button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-bar button:hover { background: var(--primary-blue-hover); }

/* ==========================================================================
   Product Grid & Clean Cards
   ========================================================================== */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    font-size: 2rem;
    color: var(--text-main);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 0 5% 80px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.trust-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e6f6ec;
    color: #1a9e4d;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
}

.product-img-placeholder {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes buttons to the bottom */
}

.product-info h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.product-info .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.product-info .desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Solid Buttons for Better Visibility --- */
.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    display: block;
    transition: background 0.3s ease;
}
.btn-primary:hover { background: var(--primary-blue-hover); }

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); }

/* ==========================================================================
   Premium Dark Footer (Properly Styled)
   ========================================================================== */
.site-footer {
    background-color: #0b192c;
    color: #cbd5e1;
    padding: 60px 5% 20px;
    border-top: 4px solid var(--primary-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: white; }

.trust-badges-footer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.trust-badges-footer span {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ==========================================================================
   Product Details Page & Cart Additions
   ========================================================================== */
.product-detail-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-image-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 5%;
}

.cart-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th, .cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.btn-danger {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-danger:hover { background: #fca5a5; }

@media (max-width: 768px) {
    .product-detail-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; } /* Use simple toggle for mobile later */
}