/* 
* FRKHD Shop - Main Stylesheet
* Minimalist design with bold, confident vibe
* Color palette: black, white, gray + neon accent
*/

:root {
    /* Color Variables */
    --color-black: #0b0b0c;
    --color-white: #f5f6f7;
    --color-gray-dark: #121315;
    --color-gray: #1e1f22;
    --color-gray-light: #2a2c30;
    /* Subtle slate accent for underlines and small highlights */
    --color-accent: #7a8694;
    --color-accent-hover: #9aa5b1;
    /* De-emphasized neon to near-neutral */
    --color-neon: #aab2bb;
    /* Bridge variables used by cart.css */
    --color-dark: #141518;
    --color-light: #c8ccd2;
    
    /* Font Variables */
    --font-primary: 'Montserrat', sans-serif;
    
    /* Spacing Variables */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Animation Variables */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Accounts for fixed navbar height */
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 2px;
}

.btn:hover {
    color: var(--color-white); /* Using variable for consistency */
    transform: translateY(-2px); /* Softer hover effect */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); /* Shadow already updated, keeping it */
}

.btn-primary {
    background-color: var(--color-gray);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--color-gray-light);
    transform: translateY(-2px);
    box-shadow: none;
}

/* .btn-primary::before removed for cleaner look */

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.18);
    overflow: hidden;
}

.btn-secondary:hover {
    background-color: var(--color-gray);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: none;
}

/* .btn-secondary::before removed for cleaner look */

.btn-add-cart {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.18);
    transition: all 0.25s ease;
}

.btn-add-cart:hover {
    background-color: var(--color-gray);
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.btn-add-cart.added {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-notify {
    background-color: var(--color-gray);
    color: var(--color-white);
}

.btn-notify:hover {
    background-color: var(--color-gray-light);
    box-shadow: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background-color: rgba(0, 0, 0, 0.9);
    transition: all var(--transition-fast);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    width: 120px; /* Fixed width to maintain layout when hidden */
    height: 40px; /* Fixed height to maintain layout */
    display: flex;
    align-items: center;
}

.logo a {
    color: var(--color-white);
    transition: color var(--transition-fast), opacity 0.5s ease, transform 0.5s ease;
}

.logo a:hover {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: var(--spacing-md);
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-icon {
    position: relative;
}

.cart-icon i {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-black);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(122, 134, 148, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.animated-logo {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
    0% { text-shadow: 0 0 2px rgba(154, 165, 177, 0.35); }
    50% { text-shadow: 0 0 6px rgba(154, 165, 177, 0.45); }
    100% { text-shadow: 0 0 2px rgba(154, 165, 177, 0.35); }
}

.slogan {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

/* Catalog Section */
.catalog {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-gray-dark);
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.category-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    margin: 0 var(--spacing-xs);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.category-btn:hover::after,
.category-btn.active::after {
    width: 80%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.product-card {
    background-color: var(--color-black);
    transition: transform var(--transition-medium);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.hover-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm);
    background-color: rgba(0, 0, 0, 0.8);
    transition: bottom var(--transition-medium);
    text-align: center;
}

.product-card:hover .hover-overlay {
    bottom: 0;
}

.product-info {
    padding: var(--spacing-sm);
    text-align: center;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.view-more {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-black);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text {
    padding-right: var(--spacing-md);
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-svg {
    width: 100%;
    height: 100%;
    max-height: 400px;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease, opacity 0.4s ease;
    filter: grayscale(100%) contrast(1.03);
    opacity: 0.96;
}

.about-image:hover .brand-svg {
    transform: scale(1.05);
    filter: grayscale(100%) contrast(1.03);
    opacity: 0.98;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(110, 0, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: lightSweep 6s linear infinite;
    pointer-events: none;
}

@keyframes lightSweep {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(110, 0, 255, 0.2), transparent);
    pointer-events: none;
}

/* Collaborations Section */
.collaborations {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-gray-dark);
}

.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.collab-card {
    position: relative;
    overflow: hidden;
}

.collab-image {
    position: relative;
    aspect-ratio: 16/9;
}

.collab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.collab-card:hover .collab-image img {
    transform: scale(1.05);
}

.collab-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    text-align: center;
}

.collab-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.collab-overlay p {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    opacity: 0.8;
}

.upcoming .collab-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.upcoming .collab-overlay h3 {
    color: var(--color-neon);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-black);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.info-item i {
    font-size: 1.5rem;
    margin-right: var(--spacing-sm);
    color: var(--color-accent);
}

.social-links {
    display: flex;
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-gray);
    margin-right: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
}

.social-link i {
    font-size: 1.5rem;
    color: var(--color-white);
}

.newsletter {
    background-color: var(--color-gray-dark);
    padding: var(--spacing-md);
    border-radius: 5px;
}

.newsletter h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.newsletter p {
    margin-bottom: var(--spacing-md);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
}

.subscribe-form input {
    padding: 12px;
    margin-bottom: var(--spacing-sm);
    background-color: var(--color-gray);
    border: none;
    color: var(--color-white);
    font-family: var(--font-primary);
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
    background-color: var(--color-gray-dark);
    border-top: 1px solid var(--color-gray);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    margin: 0 var(--spacing-sm);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Section Transitions */
section {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
}

/* Smooth scrolling for anchor links */
a[href^="#"] {
    transition: color 0.3s ease;
}

/* Enhanced hover effects */
.nav-menu a::after {
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card, .collab-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

/* Button hover glow effect */
.btn-primary:hover {
    background-color: var(--color-gray-light);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-notify {
    position: relative;
}

/* Removed flashy pulse for business feel; using subtle hover above */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 240, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-image {
        order: -1;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--color-black);
        width: 80%;
        height: calc(100vh - 70px);
        padding: var(--spacing-md);
        transition: right var(--transition-medium);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: var(--spacing-sm) 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .collab-grid {
        grid-template-columns: 1fr;
    }
    
    .animated-logo {
        font-size: 3.5rem;
    }
    
    .slogan {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        margin: var(--spacing-xs) 0;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }
}

/* Cookie Consent Modal Styles */
.cookie-consent-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95); /* Dark, slightly transparent background */
    color: var(--color-white);
    padding: var(--spacing-md);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000; /* Ensure it's above other content */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid var(--color-gray);
}

.cookie-consent-modal.show {
    display: flex; /* Use flex to center content easily */
}

.cookie-consent-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-icon {
    margin-bottom: var(--spacing-sm);
}

.cookie-svg-icon {
    color: var(--color-accent); /* Use accent color for the icon */
}

.cookie-consent-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
}

.cookie-consent-modal p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-consent-modal p a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-consent-modal p a:hover {
    color: var(--color-accent-hover);
}

#accept-cookie-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* Responsive adjustments for the modal */
@media (max-width: 768px) {
    .cookie-consent-modal {
        padding: var(--spacing-sm);
    }

    .cookie-consent-modal h2 {
        font-size: 1.25rem;
    }

    .cookie-consent-modal p {
        font-size: 0.85rem;
    }
}

/* About Section Image Styling */
.about-image .brand-svg {
    width: 100%;      /* Занять всю ширину контейнера .about-image */
    height: 400px;    /* Фиксированная высота (можно настроить) */
    display: block;   /* Убирает возможное лишнее пространство */
    object-fit: cover; /* Масштабирует изображение с сохранением пропорций, заполняя контейнер. Обрежет лишнее. */
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mini Cart Drawer */
.mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 1500;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.mini-cart-overlay.show {
    opacity: 1;
}

.mini-cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--color-black);
    border-left: 1px solid var(--color-gray);
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
    z-index: 1600;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-medium);
}

.mini-cart.open {
    right: 0;
}

.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mini-cart-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.mini-cart-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.mini-cart-close:hover { opacity: 1; }

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.mini-cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: var(--spacing-sm);
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mini-cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.mini-cart-item-title { font-size: 0.95rem; font-weight: 700; }
.mini-cart-item-meta { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }
.mini-cart-item-remove { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 0.9rem; margin-top: 6px; }

.mini-cart-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--spacing-md);
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.mini-cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-sm); }

@media (max-width: 480px) {
    .mini-cart { width: 100%; }
}

/* Content / Legal Pages */
.content-page {
    padding: var(--spacing-xl) 0;
}

.content-header {
    margin-top: 80px; /* offset fixed navbar */
    margin-bottom: var(--spacing-md);
}

.content-header .lead {
    color: rgba(255,255,255,0.8);
    margin-top: var(--spacing-xs);
    font-size: 1.05rem;
}

.content-page section {
    background: var(--color-gray-dark);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.content-page h1.section-title { margin-bottom: var(--spacing-sm); }
.content-page h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-page p { margin-bottom: var(--spacing-sm); }

.content-page ul, .content-page ol {
    padding-left: 1.2rem;
}

.content-page li { margin-bottom: 0.5rem; }

.content-page a { color: var(--color-neon); text-decoration: underline; }
.content-page a:hover { color: var(--color-accent-hover); }
