/* ============================================
   COMPLY — SHARED BASE STYLES
   Common header, navigation, footer and brand
   variables used across every page. Load this
   file BEFORE each page's own stylesheet so
   page-specific rules can still override it.
   ============================================ */

:root {
    --primary-blue: #0056b3;
    --dark-blue: #004a9e;
    --accent-green: #7ed321;
    --accent-yellow: #c4d600;
    --wood-light: #d4a574;
    --wood-medium: #c4956a;
    --wood-dark: #b8860b;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray: #5a5a5a;
    --light-gray: #f5f5f5;
    --csr-green: #8bc34a;
    --sale-red: #d32f2f;

    /* Fluid Typography Scale */
    --font-sm: clamp(0.8rem, 2vw, 1rem);
    --font-md: clamp(1rem, 2.5vw, 1.2rem);
    --font-lg: clamp(1.5rem, 4vw, 2.5rem);
    --font-xl: clamp(2rem, 5vw, 3rem);

    /* Fluid Spacing Scale */
    --spacing-sm: clamp(10px, 2vw, 20px);
    --spacing-md: clamp(20px, 4vw, 40px);
    --spacing-lg: clamp(40px, 8vw, 80px);

    --font-comic: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background-color: var(--light-gray);
}

/* =========================================
   HEADER
   ========================================= */
.header {
    background-color: var(--primary-blue);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    color: var(--primary-blue);
    font-size: clamp(20px, 4vw, 28px);
    border: 3px solid white;
    flex-shrink: 0;
}

.logo-text {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: bold;
    letter-spacing: -1px;
    color: white;
    line-height: 1;
}

.logo-text span {
    color: var(--accent-green);
}

.tagline {
    font-size: clamp(10px, 2vw, 11px);
    color: var(--accent-green);
    margin-top: 2px;
    letter-spacing: 2px;
    text-transform: lowercase;
}

.menu-btn {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    display: block;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav-menu {
    background-color: var(--primary-blue);
    padding: 0;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
}

.nav-menu.active {
    display: flex;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: var(--font-md);
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link i {
    font-size: 12px;
    margin-left: 8px;
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    background-color: var(--dark-blue);
    padding-left: 20px;
}

.dropdown-content.active {
    display: block;
}

.dropdown-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-size: var(--font-sm);
    font-weight: normal;
    text-transform: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: background-color 0.3s;
}

.dropdown-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .header {
        padding: 15px 40px;
    }

    .menu-btn {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        gap: 5px;
        width: auto;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 14px;
        border-top: none;
        border-radius: 5px;
        white-space: nowrap;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-blue);
        padding: 10px 0;
        min-width: 220px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        border-radius: 5px;
        z-index: 1000;
    }

    .nav-dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content.active {
        display: none;
    }

    .dropdown-link {
        padding: 12px 20px;
        border-top: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-link:last-child {
        border-bottom: none;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--primary-blue);
    padding: var(--spacing-md) var(--spacing-sm);
    color: white;
    width: 100%;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: clamp(16px, 3vw, 20px);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: white;
    transform: scale(1.1);
    color: var(--primary-blue);
}

.sitemap {
    max-width: 1200px;
    margin: 0 auto;
}

.sitemap-title {
    color: var(--accent-green);
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sitemap-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sitemap-column a {
    color: #ccc;
    text-decoration: none;
    font-size: var(--font-md);
    transition: all 0.3s ease;
}

.sitemap-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
    color: rgba(255,255,255,0.5);
    font-size: var(--font-sm);
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   FLOATING CONTACT BUTTONS
   ========================================= */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    color: white;
    font-size: clamp(20px, 4vw, 24px);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* =========================================
   PRODUCT CARDS (price at a glance + cart)
   ========================================= */
.shop-section {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.shop-section h2 {
    text-align: center;
    font-size: var(--font-lg);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.shop-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.shop-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.shop-card .discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-green);
    color: var(--black);
    font-weight: bold;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.shop-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.shop-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.shop-card-body h3 {
    font-size: 1.1rem;
    color: var(--black);
}

.shop-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-price-was {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.shop-price-now {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.25rem;
}

.shop-price-save {
    background: #fff3e0;
    color: #c0392b;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 12px;
}

.add-to-cart-btn {
    margin-top: auto;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--dark-blue);
}

.add-to-cart-btn.added {
    background: var(--accent-green);
    color: var(--black);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-section {
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--light-gray);
}

.testimonials-section h2 {
    text-align: center;
    font-size: var(--font-lg);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-stars {
    color: #f5b301;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.testimonial-quote {
    color: var(--gray);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: bold;
    color: var(--black);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--gray);
}

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
}

.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-stat strong {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--accent-green);
}

.trust-stat span {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* =========================================
   CART ICON + DRAWER
   ========================================= */
.cart-icon-btn {
    position: relative;
    background: transparent;
    border: 2px solid white;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    margin-left: 10px;
    flex-shrink: 0;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-green);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.cart-drawer-overlay.open {
    display: block;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    max-width: 90vw;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 16px rgba(0,0,0,0.2);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    background: var(--primary-blue);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}

.cart-drawer-empty {
    color: var(--gray);
    text-align: center;
    margin-top: 40px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item-name {
    font-weight: bold;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-item-was {
    text-decoration: line-through;
    color: #bbb;
    font-size: 0.8rem;
}

.cart-item-save {
    color: #c0392b;
    font-size: 0.78rem;
    font-weight: bold;
    margin-top: 2px;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.cart-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--light-gray);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 12px;
}

.cart-savings-row {
    color: #c0392b;
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-checkout-btn {
    width: 100%;
    background: var(--accent-green);
    color: var(--black);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.call-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #007bff 100%);
    border: 3px solid white;
    animation: pulse-blue 2s infinite;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: 3px solid white;
    animation: pulse-green 2s infinite;
    animation-delay: 0.5s;
}

.btn-label {
    position: absolute;
    right: 70px;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn:hover .btn-label {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 86, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
