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

:root {
    --primary: #ff0000;
    --primary-dark: #780404;
    --accent: #f59e0b;
    --dark: #1f2937;
    --gray: #f3f4f6;
    --light-gray: #e5e7eb;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* background: linear-gradient(135deg, var(--white) 0%, var(--gray) 100%); */
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    opacity: 0.3;
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 100px 0 50px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto 0;
}

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--light-gray);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-card .icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.about-card p {
    color: var(--text-gray);
}

.checkout-section {
    background: var(--gray);
    padding: 80px 0;
}

.checkout-container {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cart-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.empty-cart {
    text-align: center;
    color: var(--text-gray);
    padding: 40px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.item-name {
    color: var(--text-dark);
    font-weight: 500;
}

.item-price {
    color: var(--primary);
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

.remove-btn:hover {
    color: var(--primary);
}

.cart-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total span:first-child {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-total span:last-child {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.checkout-summary h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.order-item span:first-child {
    color: var(--text-dark);
}

.order-item span:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

.articles {
    background: var(--gray);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 25px;
}

.article-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.article-card p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.article-card time {
    display: block;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 18px;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.read-more:hover {
    color: var(--primary-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    text-align: left;
    border: 1px solid var(--light-gray);
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card.featured {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.15);
}

.badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

.product-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    background: var(--gray);
}

.product-content {
    padding: 24px;
}

.product-category {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-desc {
    min-height: 78px;
    color: var(--text-gray);
    margin-bottom: 18px;
}

.price {
    margin-bottom: 16px;
}

.price .currency {
    font-size: 20px;
    vertical-align: top;
}

.price .amount {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
}

.price .period {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--light-gray);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
}

.product-actions .btn {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
}

.features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

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

.features li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

footer {
    background: var(--white);
    padding: 60px 0 20px;
    border-top: 1px solid var(--light-gray);
}

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

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col p,
.footer-col address {
    color: var(--text-gray);
    font-style: normal;
    line-height: 1.8;
}

.footer-col a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    color: var(--text-gray);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.toast-notification {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(340px, calc(100vw - 24px));
    padding: 14px 14px 14px 16px;
    background:var(--primary);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #d1fae5;
}

.toast-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #f8fafc;
}

.toast-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--light-gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.checkout-summary {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.checkout-summary h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
}

.checkout-summary p {
    color: var(--text-gray);
    margin-bottom: 5px;
}

.checkout-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

.detail-page {
    padding-top: 120px;
    background: var(--gray);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 40px;
    align-items: start;
}

.detail-image {
    width: 100%;
    min-height: 460px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--light-gray);
}

.detail-panel {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 34px;
}

.detail-panel h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.detail-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.detail-price {
    color: var(--primary);
    font-size: 32px;
    font-weight: 800;
    margin: 22px 0;
}

.detail-back {
    margin-left: 10px;
}

.detail-list {
    margin: 24px 0;
    padding-left: 20px;
    color: var(--text-gray);
}

.detail-list li {
    margin-bottom: 10px;
}

.article-detail {
    max-width: 860px;
    margin: 0 auto;
}

.article-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 32px;
}

.article-detail h1 {
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.article-detail time {
    display: block;
    color: var(--text-gray);
    margin-bottom: 28px;
}

.article-body {
    background: var(--white);
    border-radius: 8px;
    padding: 34px;
    border: 1px solid var(--light-gray);
}

.article-body p {
    color: var(--text-gray);
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        max-height: 400px;
    }
    
    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .about-grid,
    .articles-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-panel h1,
    .article-detail h1 {
        font-size: 34px;
    }

    .detail-image,
    .article-hero-img {
        min-height: 280px;
        height: 280px;
    }

    .detail-back {
        display: block;
        margin: 12px 0 0;
        text-align: center;
    }
}
