/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-gradient-start: #1a0f2e;
    --bg-gradient-end: #0d0519;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent-primary: #ff6b9d;
    --accent-secondary: #a855f7;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --container-padding: 20px;
    --max-width: 1200px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header Styles */
.header {
    background: rgba(13, 5, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Category Header Section */
.category-header {
    padding: 60px 0 40px;
    text-align: center;
}

.category-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

/* Для 5 товарів - останні 2 в окремому рядку по лівій стороні на десктопі */
@media (min-width: 1025px) {
    .products-grid > *:nth-child(4) {
        grid-column: 1;
    }
    
    .products-grid > *:nth-child(5) {
        grid-column: 2;
    }
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.product-sticker {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.sticker-cbd {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.sticker-mushroom {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.sticker-lions-mane {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.sticker-fast {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.sticker-relax-cbd {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.product-image {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.product-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

.product-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
    margin-top: auto;
    align-self: center;
}

.product-card-link:hover .product-btn {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}

/* Reviews Section */
.reviews-section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.reviews-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.reviews-placeholder {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Advantages Section */
.advantages-section {
    padding: 60px 0;
}

.advantages-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: center;
}

.advantage-item {
    margin-bottom: 35px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.advantage-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.advantage-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Special Offer Section */
.special-offer-section {
    padding: 60px 0;
}

.offer-box {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
}

.offer-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.offer-text {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.offer-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--accent-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

/* SEO Section */
.seo-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.2);
}

.seo-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

/* Sticky Order Button */
.sticky-order-btn {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: none;
}

.sticky-order-btn.show {
    display: block;
}

.order-now-btn {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 30px rgba(168, 85, 247, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.order-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.6);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-info {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-secondary);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 998;
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .category-title {
        font-size: 40px;
    }
    
    .category-description {
        font-size: 17px;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-name {
        font-size: 22px;
    }
    
    .offer-box {
        padding: 40px 30px;
    }
    
    .seo-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .logo-subtitle {
        font-size: 10px;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 15px;
        padding-top: 20px;
        background: rgba(13, 5, 25, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 15px;
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .category-header {
        padding: 40px 0 30px;
    }
    
    .category-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .category-description {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-image {
        height: 260px;
        margin-bottom: 15px;
    }
    
    .product-name {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .product-description {
        font-size: 14px;
        margin-bottom: 15px;
        min-height: auto;
    }
    
    .product-sticker {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .reviews-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .reviews-content {
        padding: 30px 20px;
    }
    
    .advantages-section {
        padding: 40px 0;
    }
    
    .intro-text {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .advantage-item {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .advantage-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .advantage-text {
        font-size: 15px;
    }
    
    .special-offer-section {
        padding: 40px 0;
    }
    
    .offer-box {
        padding: 30px 20px;
    }
    
    .offer-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .offer-text {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .offer-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .seo-section {
        padding: 40px 0;
    }
    
    .seo-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .seo-content {
        padding: 0 10px;
    }
    
    .seo-content p {
        font-size: 15px;
        text-align: left;
    }
    
    .sticky-order-btn {
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    .order-now-btn {
        width: 100%;
        text-align: center;
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer-info {
        font-size: 13px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 12px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .category-header {
        padding: 30px 0 20px;
    }
    
    .category-title {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .category-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .products-section {
        padding: 30px 0;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-image {
        height: 220px;
        margin-bottom: 12px;
    }
    
    .product-name {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .product-description {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    
    .product-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .product-sticker {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .reviews-section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .reviews-content {
        padding: 25px 15px;
    }
    
    .advantages-section {
        padding: 30px 0;
    }
    
    .intro-text {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .advantage-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .advantage-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .advantage-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .special-offer-section {
        padding: 30px 0;
    }
    
    .offer-box {
        padding: 25px 15px;
    }
    
    .offer-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .offer-text {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .offer-btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .seo-section {
        padding: 30px 0;
    }
    
    .seo-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .seo-content p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .sticky-order-btn {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    
    .order-now-btn {
        padding: 14px 25px;
        font-size: 15px;
    }
    
    .scroll-to-top {
        bottom: 80px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .footer {
        padding: 25px 0 12px;
    }
    
    .footer-info {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* Policy Section Styles */
.policy-section {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.policy-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.policy-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.policy-content h2:first-of-type {
    margin-top: 0;
}

.policy-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.policy-content p.intro-text {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 500;
}

.policy-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.policy-content ul li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.policy-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .policy-section {
        padding: 40px 0;
    }
    
    .policy-title {
        font-size: 32px;
    }
    
    .policy-content {
        padding: 30px 20px;
    }
    
    .policy-content h2 {
        font-size: 24px;
    }
    
    .policy-content p {
        font-size: 14px;
    }
    
    .policy-content p.intro-text {
        font-size: 16px;
    }
    
    .policy-content ul li {
        font-size: 14px;
    }
}

