/* ============================================
   VARIABLES
   ============================================ */
:root {
    --primary: #0066FF;
    --secondary: #0A1F44;
    --button: #111111;
    --button-hover: #0066FF;
    --white: #ffffff;
    --light: #f5f7fa;
    --gray: #6b7280;
    --border: #e5e7eb;
    --text: #1f2937;
    --success: #10b981;
    --danger: #ef4444;
}

/* ============================================
   RESET
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn, button.btn, input[type="submit"] {
    display: inline-block;
    background: var(--button);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover { background: var(--button-hover); }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span { margin-right: 20px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 30px;
}

.site-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.header-search button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 20px;
}

.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--secondary);
    position: relative;
}

.header-icon .icon { font-size: 20px; }

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    background: var(--secondary);
    padding: 0;
}

.primary-menu {
    display: flex;
    gap: 30px;
}

.primary-menu li a {
    display: block;
    color: var(--white);
    padding: 15px 0;
    font-weight: 500;
    transition: color 0.3s;
}

.primary-menu li a:hover { color: var(--primary); }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.slider-wrapper { position: relative; height: 500px; }

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s;
    display: flex;
    align-items: center;
}

.slide.active { opacity: 1; }

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 68, 0.6);
}

.slide-content {
    position: relative;
    color: var(--white);
    max-width: 600px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-prev:hover, .slider-next:hover { background: var(--primary); }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active { background: var(--primary); }

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* ============================================
   CATEGORIES
   ============================================ */
.featured-categories { padding: 60px 0; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,102,255,0.1);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
}

.category-card span {
    font-size: 12px;
    color: var(--gray);
}

/* ============================================
   PRODUCTS
   ============================================ */
.featured-products,
.best-sellers,
.new-arrivals {
    padding: 60px 0;
    background: var(--light);
}

.featured-products { background: var(--white); }

/* WooCommerce product grid override */
.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0 !important;
}

.product {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    padding: 0 !important;
}

.product:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product img { width: 100%; }

.product h2, .product .woocommerce-loop-product__title {
    font-size: 15px !important;
    padding: 15px !important;
    color: var(--secondary);
}

.product .price {
    padding: 0 15px 15px !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
}

.product .button {
    margin: 0 15px 15px !important;
    width: calc(100% - 30px) !important;
    text-align: center !important;
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 60px 0;
}

.sidebar .widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col p, .footer-col li {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--primary); }

.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-icons a { font-size: 14px; }

.footer-payments {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

.payment-icon {
    background: var(--white);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

#back-to-top.show { opacity: 1; visibility: visible; }

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-btn:hover { transform: scale(1.1); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page { padding: 60px 0; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
}

.contact-info h3 { margin-bottom: 20px; color: var(--secondary); }
.contact-info p { margin-bottom: 15px; }

/* ============================================
   404
   ============================================ */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 120px;
    color: var(--primary);
    line-height: 1;
}

.error-404 h2 { margin: 20px 0; color: var(--secondary); }
.error-404 p { margin-bottom: 30px; color: var(--gray); }