/* styles.css */
:root {
    --color-primary: #e61445;
    --color-primary-dark: #b81037;
    --color-text: #333333;
    --color-text-light: #777777;
    --color-bg-light: #f5f5f5;
    --color-bg-gray: #e8e8e8;
    --color-white: #ffffff;
    --color-border: #dddddd;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --container-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s ease-out;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.top-bar {
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 0;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__nav a {
    margin-right: 20px;
    font-weight: 500;
}

.top-bar__actions a {
    margin-left: 20px;
    font-weight: 500;
}

.btn-cart {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 4px 10px;
    border-radius: 2px;
}

.main-header {
    padding: 25px 0;
    background: var(--color-white);
    transition: all 0.3s;
    z-index: 1000;
    position: relative;
    border-bottom: 2px solid var(--color-primary);
}

.main-header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.main-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__icon {
    background: var(--color-primary);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
}

.logo__text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-strip {
    background: #e6fae8;
    color: #2e8b3c;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
    border: 1px dashed #2e8b3c;
}

.layout-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.sidebar-left {
    width: 25%;
    flex-shrink: 0;
}

.main-content {
    width: 75%;
}

.category-menu {
    border: 1px solid var(--color-border);
}

.category-menu__header {
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 16px;
    padding: 15px;
    text-transform: uppercase;
}

.category-menu__list li {
    border-bottom: 1px solid var(--color-border);
}

.category-menu__list li:last-child {
    border-bottom: none;
}

.category-menu__list a {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--color-text-light);
    text-transform: uppercase;
    position: relative;
}

.category-menu__list a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
    padding-left: 20px;
}

.hero-slider {
    position: relative;
    background: var(--color-bg-gray);
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-slider__content {
    position: absolute;
    text-align: center;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-slider__content h2 {
    font-family: var(--font-heading);
    font-size: 60px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 8px;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots span.active {
    background: var(--color-primary);
}

.hero-banners {
    display: flex;
    gap: 20px;
}

.hero-banner {
    flex: 1;
    position: relative;
    height: 150px;
    overflow: hidden;
    background: var(--color-bg-gray);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-banner:hover img {
    transform: scale(1.05);
}

.hero-banner__text {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.features-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 30px 0;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.feature-item__icon {
    font-size: 30px;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.feature-item__text h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.feature-item__text p {
    font-size: 13px;
    color: var(--color-text-light);
}

.sidebar-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.mini-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-item {
    display: flex;
    gap: 15px;
}

.mini-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: var(--color-bg-light);
}

.mini-item__info a {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.mini-item__info span {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 700;
}

.post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

.post-card h4 {
    font-size: 15px;
    margin-bottom: 10px;
}

.post-card p {
    font-size: 13px;
    color: var(--color-text-light);
}

.sidebar-banner img {
    width: 100%;
}

.product-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 20px;
    text-transform: uppercase;
    padding-right: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
}

.tabs {
    display: flex;
    gap: 20px;
}

.tabs span {
    font-size: 14px;
    color: var(--color-text-light);
    cursor: pointer;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.tabs span.active {
    color: var(--color-text);
    font-weight: 500;
}

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

.product-card {
    position: relative;
    transition: transform var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card__img {
    position: relative;
    background: var(--color-bg-light);
    overflow: hidden;
}

.product-card__img img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__img img {
    transform: scale(1.05);
}

.countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.countdown div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.countdown span {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 2px;
}

.product-card__info {
    padding: 15px 0;
}

.product-card__info a {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
    color: var(--color-text);
}

.product-card__info .price {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 700;
}

.product-card__info .price span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-light);
}

.section-banner {
    width: 100%;
    height: 200px;
    background: var(--color-bg-gray);
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-banner__text {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 40px;
    color: var(--color-white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.statement-banner {
    background: var(--color-bg-gray);
    padding: 80px 0;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 5vw;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('images/statement-bg.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.footer-top {
    margin-bottom: 50px;
}

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

.footer-widget h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-widget .logo {
    margin-bottom: 15px;
}

.about-widget p {
    font-size: 13px;
    color: var(--color-text-light);
}

.footer-bottom {
    background: var(--color-bg-light);
    padding: 50px 0;
}

.footer-links h5 {
    font-family: var(--font-heading);
    font-size: 14px;
    margin-bottom: 20px;
}

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

.footer-links ul a,
.footer-contact ul li {
    font-size: 13px;
    color: var(--color-text-light);
}

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

.footer-copyright {
    background: var(--color-text);
    color: var(--color-text-light);
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--color-primary);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

.page-content {
    padding: 40px 15px;
}

.text-document {
    background: var(--color-white);
    padding: 40px;
    border: 1px solid var(--color-border);
}

.text-document h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 10px;
}

.text-document .last-updated {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.text-document section {
    margin-bottom: 40px;
}

.text-document h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color-text);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-border);
}

.text-document p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #444;
}

.text-document ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.text-document li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
}

.toc-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.back-link {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 8px 15px;
}

.back-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .layout-grid {
        flex-direction: column;
    }
    .sidebar-left, .main-content {
        width: 100%;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .toc-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .features-row {
        flex-direction: column;
        gap: 20px;
    }
    .hero-slider__content h2 {
        font-size: 40px;
    }
    .container.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 360px) {
    .grid-4, .grid-3, .container.grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-banners {
        flex-direction: column;
    }
}