/*
Theme Name: Zonata theme
Version: 1.0.0
Description: Theme for Zonata
Text Domain: zonata
Author: Ali
*/

/* Import Archivo Font */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --beige: #f5f1ed;
    --green-beige: #e8f5e9;
    --red: #dc2626;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --gold: #fbbf24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   HEADER - BLACK WITH HAMBURGER
   ======================================== */
.site-header {
    background: var(--black);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 1rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hamburger - Always First */
.mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    justify-content: center;
    order: -1;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Logo - Centered */
.site-logo {
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-logo a {
    color: var(--white);
}

.site-logo img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-toggle,
.account-link,
.cart-link {
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-count {
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Search Dropdown */
.search-form-wrapper {
    position: relative;
}

.search-form {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 1.5rem;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-family: 'Archivo', sans-serif;
}

.search-form button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
}

.search-form label {
    display: none;
}

/* ========================================
   FULL SCREEN MENU
   ======================================== */
.main-navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    z-index: 9999;
}

.main-navigation.mobile-open {
    display: block;
}

.main-navigation::before {
    content: '×';
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}

.main-navigation > ul {
    max-width: 600px;
    margin: 0 auto;
}

.main-navigation > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-navigation > ul > li > a {
    color: var(--white);
    font-size: 1rem;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-has-children > a::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.menu-item-has-children.open > a::after {
    transform: rotate(45deg);
}

.mega-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.menu-item-has-children.open .mega-menu {
    max-height: 2000px;
    opacity: 1;
    padding: 1.5rem 1rem;
    margin-top: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 0.5rem;
}

.mega-menu-column a {
    color: rgba(255,255,255,0.85);
    display: block;
    padding: 0.75rem 0;
}

.mega-menu-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mega-menu-product {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
}

.mega-menu-product img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.mega-menu-product-title {
    color: var(--white);
    font-size: 0.875rem;
}

.menu-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.menu-cta-btn {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.hero-slide {
    display: none;
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 400px;
}

@media (min-width: 768px) {
    .hero-slide {
        aspect-ratio: 21 / 9;
        min-height: 500px;
    }
}

@media (min-width: 1024px) {
    .hero-slide {
        min-height: 600px;
    }
}

.hero-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide.active img,
.hero-slide.active video {
    animation: quickZoom 0.5s ease-out forwards;
}

@keyframes quickZoom {
    0% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);  /* WHITE TEXT */
    max-width: 800px;
    padding: 2rem;
    z-index: 10;
}

.hero-slide.active .hero-content {
    animation: contentFadeIn 0.5s ease-in-out 0.2s both;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--white);  /* WHITE TEXT */
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--white);  /* WHITE TEXT */
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.125rem;
    }
}

.hero-badge {
    background: var(--red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.hero-badge.new {
    background: var(--black);
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--white);
    width: 32px;
    border-radius: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    display: none;
}

@media (min-width: 768px) {
    .slider-arrow {
        display: block;
    }
}

.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: 1rem; }

@media (min-width: 1024px) {
    .slider-arrow.prev { left: 2rem; }
    .slider-arrow.next { right: 2rem; }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

.section-beige {
    background: var(--beige);
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Archivo', sans-serif;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

.view-all-link {
    display: block;
    text-align: center;
    color: var(--text);
    text-decoration: underline;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

/* ========================================
   PRODUCT CARDS - EXACT MATCH
   ======================================== */
.product-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.product-slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.5rem 0 1rem;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 260px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

@media (min-width: 640px) {
    .product-card {
        min-width: 280px;
    }
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Product Image with + Button */
.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--white);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
}

.secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--beige);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .secondary-image {
    opacity: 1;
}

/* + Add to Cart Button */
.add-to-cart-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-card:hover .add-to-cart-overlay {
    opacity: 1;
}

.add-to-cart-overlay:hover {
    background: var(--black);
    color: var(--white);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--red);
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.product-badge.new {
    background: var(--black);
}

/* Product Info */
.product-info {
    padding: 1rem;
}

.product-category {
    font-size: 0.6875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-title a {
    color: var(--text);
}

.product-title a:hover {
    color: var(--red);
}

/* Star Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}

.stars {
    color: var(--gold);
    font-size: 0.875rem;
}

.review-count {
    color: var(--text-light);
    font-size: 0.8125rem;
}

/* Price */
.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.price-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.price-amount del {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .slider-nav {
        display: flex;
    }
}

.slider-nav.prev { left: -20px; }
.slider-nav.next { right: -20px; }

/* ========================================
   SMARTER IS CLEAN - GREEN BACKGROUND
   ======================================== */
.smarter-clean-section {
    background: var(--green-beige);
    padding: 5rem 0;
}

.smarter-clean-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .smarter-clean-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.smarter-clean-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .smarter-clean-content h2 {
        font-size: 2.5rem;
    }
}

.smarter-clean-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .smarter-clean-content p {
        font-size: 1.125rem;
    }
}

/* Icons Grid */
.features-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 640px) {
    .features-icons {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
}

.feature-icon img {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ========================================
   PROMO SECTIONS
   ======================================== */
.promo-section {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .promo-section {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .promo-section.reversed {
        direction: rtl;
    }
    
    .promo-section.reversed > * {
        direction: ltr;
    }
}

.promo-image img {
    border-radius: 0.5rem;
    width: 100%;
}

.promo-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.promo-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .promo-title {
        font-size: 2.5rem;
    }
}

.promo-description {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
    text-align: center;
}

.btn:hover {
    opacity: 0.85;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.375rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: 'Archivo', sans-serif;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
    .account-link span:not(.cart-count),
    .cart-link span:not(.cart-count) {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .features-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
