/*
 * Sauce Theme - Stylesheet
 * Inspiré de Chroma.pl
 */

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
    background: #fff;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; }
ul, ol { list-style: none; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER - Style Chroma.pl
   ========================================================================== */

.sauce-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sauce-header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */

.sauce-header__top {
    border-bottom: 1px solid #eee;
}

.sauce-header__top .sauce-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 30px;
}

/* Logo */
.sauce-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sauce-header__logo img {
    height: 40px;
    width: auto;
}

.sauce-header__logo span {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Search */
.sauce-header__search {
    flex: 1;
    max-width: 500px;
}

.sauce-header__search form {
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    overflow: hidden;
}

.sauce-header__search input[type="search"] {
    flex: 1;
    height: 100%;
    padding: 0 15px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.sauce-header__search input[type="search"]::placeholder {
    color: #999;
}

.sauce-header__search button {
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.sauce-header__search button:hover {
    background: #333;
}

/* Actions */
.sauce-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.sauce-header__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    padding: 5px;
}

.sauce-header__action svg {
    width: 22px;
    height: 22px;
}

.sauce-header__action span {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sauce-header__action:hover {
    opacity: 0.7;
}

.sauce-header__cart em {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Burger */
.sauce-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
}

.sauce-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    transition: 0.3s;
}

/* ===== NAVIGATION BAR ===== */

.sauce-header__nav {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.sauce-header__nav .sauce-header__container {
    display: flex;
    align-items: center;
}

/* Nav list */
ul.sauce-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

li.sauce-nav__item {
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

li.sauce-nav__item > a {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 16px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
}

li.sauce-nav__item > a:hover {
    background: #f5f5f5 !important;
}

li.sauce-nav__item > a svg {
    width: 10px !important;
    height: 10px !important;
    transition: transform 0.2s !important;
}

li.sauce-nav__item:hover > a svg {
    transform: rotate(180deg) !important;
}

/* ===== DROPDOWN / MEGA MENU ===== */

.sauce-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 600px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100;
}

li.sauce-nav__item:hover .sauce-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sauce-dropdown__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    padding: 30px;
}

.sauce-dropdown__col {
    min-width: 0;
}

a.sauce-dropdown__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #000;
}

a.sauce-dropdown__title:hover {
    opacity: 0.7;
}

.sauce-dropdown__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sauce-dropdown__col ul li {
    margin-bottom: 8px;
}

.sauce-dropdown__col ul li a {
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
}

.sauce-dropdown__col ul li a:hover {
    color: #000;
}

/* ===== MOBILE MENU ===== */

.sauce-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.sauce-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sauce-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: #fff;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sauce-mobile-menu.active {
    transform: translateX(0);
}

.sauce-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sauce-mobile-menu__header button {
    font-size: 28px;
    line-height: 1;
}

.sauce-mobile-menu__search {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.sauce-mobile-menu__search input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.sauce-mobile-menu__list {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sauce-mobile-menu__list li {
    border-bottom: 1px solid #eee;
}

.sauce-mobile-menu__list li a {
    display: block;
    padding: 15px 20px;
    font-weight: 500;
}

.sauce-mobile-menu__list li a:hover {
    background: #f5f5f5;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .sauce-header__search {
        display: none;
    }
    
    .sauce-header__action span {
        display: none;
    }
    
    .sauce-header__actions {
        gap: 15px;
    }
    
    .sauce-header__burger {
        display: flex;
    }
    
    .sauce-header__nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .sauce-header__top .sauce-header__container {
        height: 60px;
    }
    
    .sauce-header__logo span {
        font-size: 20px;
    }
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide-inner {
    position: relative;
    aspect-ratio: 21/9;
    min-height: 400px;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 70%);
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
}

.carousel-content h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.7);
}

.carousel-dot.is-active {
    background: #fff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.carousel-arrow:hover {
    background: #f0f0f0;
}

.carousel-arrow--prev { left: 20px; }
.carousel-arrow--next { right: 20px; }

@media (max-width: 768px) {
    .carousel-slide-inner {
        aspect-ratio: 4/3;
        min-height: 300px;
    }
    
    .carousel-content {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .carousel-content h2 {
        font-size: 28px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.25s;
    cursor: pointer;
}

.btn--primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn--primary:hover {
    background: transparent;
    color: #000;
}

.btn--secondary {
    background: transparent;
    color: #000;
    border-color: #000;
}

.btn--secondary:hover {
    background: #000;
    color: #fff;
}

.btn--white {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn--white:hover {
    background: transparent;
    color: #fff;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1,
.section-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   CATEGORIES GRID
   ========================================================================== */

.categories-section {
    padding: 40px 0 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
}

.category-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-card-content span {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.category-card--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.category-card--featured .category-card-content h3 {
    font-size: 24px;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card--featured {
        grid-column: span 1;
    }
}

/* ==========================================================================
   FEATURES
   ========================================================================== */

.features-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */

.products-grid,
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-card,
.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
}

.product-image,
.woocommerce ul.products li.product a img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-price,
.woocommerce ul.products li.product .price {
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section {
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.faq-question:hover {
    opacity: 0.7;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.is-open .faq-question svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

/* ==========================================================================
   ECOLOGY
   ========================================================================== */

.ecology-hero {
    padding: 80px 0;
    background: #f5f5f5;
    text-align: center;
}

.ecology-hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.ecology-hero p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.ecology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ecology-card {
    padding: 30px;
    border: 1px solid #eee;
    transition: border-color 0.2s;
}

.ecology-card:hover {
    border-color: #000;
}

.ecology-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ecology-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .ecology-grid {
        grid-template-columns: 1fr;
    }
    
    .ecology-hero h1 {
        font-size: 28px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #000;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #888;
    max-width: 280px;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #888;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-copyright {
    color: #666;
    font-size: 14px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: #fff;
    border-color: #fff;
}

.footer-social a:hover svg {
    stroke: #000;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================================================
   WOOCOMMERCE
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    background: #f5f5f5;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: transparent !important;
    color: #000 !important;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.mt-4 { margin-top: 20px; }
.mt-8 { margin-top: 40px; }
.mb-4 { margin-bottom: 20px; }
.mb-8 { margin-bottom: 40px; }
