/* Core Variables & Reset */
:root {
    --primary: #FF6600;
    --dark: #2C3E50;
    --light-bg: #F8F9FA;
    --text-color: #333333;
    --border: #E0E0E0;
    --wa-green: #25D366;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #FFFFFF;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background-color: var(--dark);
    color: #FFF;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    color: #FFF;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.logo-img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
    background-color: #FFF;
    border-radius: 5px;
    object-fit: contain;
}

.desktop-nav a {
    color: #FFF;
    text-decoration: none;
    margin: 0 15px;
    font-size: 15px;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.cart-toggle {
    background-color: var(--primary);
    color: #FFF;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #FFF;
    border-radius: 5px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.mobile-menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg); }

.mobile-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    display: none;
}

.mobile-nav {
    position: fixed;
    top: 0; left: -250px;
    width: 250px; height: 100vh;
    background-color: var(--dark);
    z-index: 101;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.mobile-nav.active { left: 0; }

.mobile-nav a {
    color: #FFF;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid #444;
}

.mobile-nav a:hover {
    color: var(--primary);
    background-color: #1a252f;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../hero.avif') no-repeat center center/cover;
    color: #FFF;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 25px; }

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary { background-color: var(--primary); color: #FFF; }
.btn-outline { background-color: transparent; border: 2px solid var(--primary); color: var(--primary); }

/* Sitelink Sections & Grid (Strict 2 items per row on mobile) */
.sitelink-section { padding: 50px 20px; max-width: 1200px; margin: 0 auto; }
.sitelink-section.bg-light { background-color: var(--light-bg); }
.sitelink-section h2 { font-size: 2rem; color: var(--dark); margin-bottom: 10px; text-align: center; }
.section-desc { text-align: center; margin-bottom: 30px; color: #666; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Product Card */
.card {
    background: #FFF;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 5px; }
.card p.desc { font-size: 0.85rem; color: #777; flex-grow: 1; margin-bottom: 10px; }
.card p.price { font-size: 1.1rem; font-weight: bold; color: var(--primary); margin-bottom: 15px; }
.card-actions { display: flex; flex-direction: column; gap: 8px; }
.card-actions .btn { width: 100%; padding: 10px; font-size: 0.9rem; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: #FFF; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-left: 4px solid var(--primary); }

/* Footer */
footer { background-color: var(--dark); color: #CCC; padding: 40px 20px 20px; margin-top: 40px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.footer-col h3 { color: #FFF; margin-bottom: 15px;}
.footer-col a { display: block; color: #CCC; text-decoration: none; margin-bottom: 8px;}
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #444; }

/* Floating Action Buttons */
.floating-buttons { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.fab { padding: 12px 20px; border-radius: 50px; color: #FFF; text-decoration: none; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3); text-align: center; }
.fab-wa { background-color: var(--wa-green); }
.fab-call { background-color: var(--primary); }

/* Cart Sidebar & Controls */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; }
.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 100%; max-width: 400px; height: 100%;
    background: #FFF; z-index: 1001; display: flex; flex-direction: column;
    transition: right 0.3s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px; background: var(--dark); color: #FFF; display: flex; justify-content: space-between; }
.close-cart { background: none; border: none; color: #FFF; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 15px; }
.cart-item-info h4 { font-size: 0.9rem; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { padding: 5px 10px; cursor: pointer; border: 1px solid #CCC; background: #EEE; border-radius: 4px; font-weight: bold; }
.delete-btn { background: none; border: none; color: #e74c3c; font-size: 1.2rem; cursor: pointer; margin-left: 10px; padding: 5px; transition: transform 0.2s ease; }
.delete-btn:hover { transform: scale(1.1); }
.clear-cart-btn { background: none; border: none; color: #888; text-decoration: underline; cursor: pointer; font-size: 0.9rem; margin-bottom: 10px; }
.clear-cart-btn:hover { color: #e74c3c; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.checkout-btn { width: 100%; padding: 15px; background: var(--wa-green); color: #FFF; border: none; border-radius: 5px; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-top: 15px; }

/* Media Queries for Responsiveness */
@media(min-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .desktop-nav { display: block; }
}

@media(min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media(max-width: 767px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero h1 { font-size: 1.8rem; }
    .logo-text { font-size: 16px; }
    .hide-mobile { display: none; }
}