/* ============================================
 * NUTRIFACTOR THEME - Main Stylesheet
 * ============================================
 * Professional eCommerce Design System
 * Date: March 4, 2026
 * ============================================ */

:root {
    /* Brand Colors */
    --primary-color: #946fd6;
    --primary-hover: #b497ed;
    --secondary-color: #232323;
    --accent-color: #c2b1f7;
    
    /* Text Colors */
    --text-primary: #232323;
    --text-secondary: #3c3c3c;
    --text-light: #ebebeb;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #232323;
    --bg-purple: #946fd6;
    
    /* Border Colors */
    --border-color: #ebebeb;
    --border-light: #dcdcdc;
    --border-dark: #dadada;
    
    /* Font Families */
    --font-heading-family: 'Poppins', sans-serif;
    --font-body-family: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
}

/* ============================================
 * GLOBAL STYLES
 * ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body-family);
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading-family);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
 * LAYOUT UTILITIES
 * ============================================ */

.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-full {
    width: 100%;
    padding: 0 40px;
}

.d-flex {
    display: flex;
}

.flex-jc-between {
    justify-content: space-between;
}

.flex-jc-center {
    justify-content: center;
}

.flex-align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ============================================
 * BUTTONS
 * ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* ============================================
 * HEADER & NAVIGATION
 * ============================================ */

.header {
    border-bottom: 1px solid var(--border-color);
}

.header-navigation {
    box-shadow: 0 3px 3px -3px rgba(0,0,0,.1);
    background: var(--bg-white);
}

.header__icon {
    padding: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.header__icon:hover {
    color: var(--primary-color);
}

.cart-count-bubble {
    position: absolute;
    top: -7px;
    right: -10px;
    background: var(--secondary-color);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Menu Styles */
.main-menu {
    position: relative;
}

.list-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.menu-lv-1__action {
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 400;
    text-transform: capitalize;
    color: var(--text-primary);
}

.menu-lv-1__action:hover {
    color: var(--primary-color);
}

/* ============================================
 * PRODUCT CARDS
 * ============================================ */

.product {
    position: relative;
    padding: 15px;
    transition: var(--transition-fast);
}

.product:hover {
    box-shadow: var(--shadow-md);
}

.card-product {
    position: relative;
    overflow: hidden;
}

.card-media {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.card-media img {
    width: 100%;
    height: auto;
    transition: var(--transition-normal);
}

.product:hover .card-media img {
    transform: scale(1.05);
}

.card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    background: #ef6454;
    color: var(--text-white);
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0;
    color: var(--text-primary);
}

.card-title:hover {
    color: var(--primary-color);
}

.card-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.price--on-sale .price-item--regular {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.price-item--sale {
    color: #d12442;
    font-weight: 700;
}

/* ============================================
 * SLIDESHOW / HERO SECTION
 * ============================================ */

.slideshow-wrapper {
    position: relative;
    overflow: hidden;
}

.slideshow {
    position: relative;
}

.slide-block {
    position: relative;
}

.slide-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slick-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
}

.slick-dots li {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slick-dots li.active,
.slick-dots li:hover {
    background: var(--text-white);
}

/* ============================================
 * SECTIONS
 * ============================================ */

.section-block {
    padding: 60px 0;
}

.halo-block-header {
    margin-bottom: 40px;
}

.halo-block-header .title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
}

/* Product Tabs */
.product-tab-block {
    background: var(--bg-white);
}

.list-product-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.list-product-tabs a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.list-product-tabs a:hover,
.list-product-tabs a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ============================================
 * CERTIFICATE / BRAND SECTION
 * ============================================ */

.certificate-section-wrapper {
    background: linear-gradient(to left, rgba(162, 132, 255, 0) 0%, rgba(162, 132, 255, 0.5) 100%);
    border-radius: 12px;
    padding: 22px 14px;
    position: relative;
    margin: 0 20px;
}

.certificate-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
}

/* ============================================
 * FOOTER
 * ============================================ */

.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding-top: 60px;
}

.footer-block__heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer .list-menu__item--link {
    color: var(--text-light);
    font-size: 12px;
    line-height: 33px;
}

.footer .list-menu__item--link:hover {
    color: var(--text-white);
}

/* ============================================
 * RESPONSIVE STYLES
 * ============================================ */

@media (max-width: 1024px) {
    .container-full {
        padding: 0 20px;
    }
    
    .section-block {
        padding: 40px 0;
    }
    
    .halo-block-header .title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .container-full {
        padding: 0 15px;
    }
    
    .section-block {
        padding: 30px 0;
    }
    
    .halo-block-header .title {
        font-size: 20px;
    }
    
    .list-product-tabs a {
        font-size: 14px;
    }
    
    .certificate-content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ============================================
 * ANIMATIONS
 * ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* ============================================
 * UTILITY CLASSES
 * ============================================ */

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Lazy loading placeholder */
.lazyload,
.lazyloading {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazyloaded {
    opacity: 1;
}
