/* Modern E-Commerce Design System 2025 */

:root {
    /* Color Palette - Neutral Core with Vibrant Accents */
    --bg-body: #ffffff;
    --bg-surface: #f8f9fa;
    --bg-dark: #121212;

    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #ffffff;

    /* Vibrant Accents */
    --accent-blue: #2563eb;
    /* Royal Blue */
    --accent-blue-hover: #1d4ed8;
    --accent-green: #10b981;
    /* Emerald */

    /* Functional */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Spacing */
    --container-width: 1280px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Noto Sans Georgian', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* GLOBAL LINK STYLING - NO UNDERLINES */
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: none;
    /* Override global max-width 100% which caused issue if container was small */
}

/* Toggle Buttons */
.collection-toggles {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    font-size: 1.1rem;
}

.toggle-btn:hover {
    border-color: var(--accent-blue);
    background: var(--bg-surface);
    color: var(--accent-blue);
}

.toggle-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background: var(--bg-surface);
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none !important;
}

.nav-link:hover {
    color: var(--accent-blue);
}

/* Search Bar */
.search-form {
    flex: 0 1 400px;
    position: relative;
    margin: 0 2rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    background: var(--bg-surface);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section - Immersive */
.hero {
    padding-top: var(--header-height);
    margin-top: 0;
    height: 90vh;
    /* Slightly reduced height for better mobile feel */
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-dark);
    color: white;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://ecase.ge/uploads/pexels-japy-34624326.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Desktop default */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    padding: 0 1.5rem;
}

.hero-title {
    /* Adjusted for mobile: Starts smaller */
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-text {
    /* Adjusted for mobile: Smaller text */
    font-size: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-container {
    display: none;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

/* Product Grid - Optimized for Mobile */
.product-grid {
    display: grid;
    /* Allows 2 columns on screens as small as ~340px wide */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .product-grid {
        gap: 2rem;
        /* Larger cards on tablet/desktop */
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

.product-card {
    background: var(--bg-body);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border for definition */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f1f1f1;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
}

.product-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: 700;
    color: var(--text-primary);
}

.btn-add-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    text-decoration: none !important;
}

.btn-add-cart:hover {
    background: var(--text-primary);
    color: white;
}

/* Footer - Simplified and Clean */
.footer {
    background-color: #111;
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #888;
    transition: color 0.2s;
    text-decoration: none !important;
}

.footer-links a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    text-decoration: none !important;
}

.social-link:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 991px) {

    .navbar {
        height: auto;
        min-height: var(--header-height);
    }

    .nav-content {
        padding: 0 1rem;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .search-form {
        width: 100%;
        margin: 1rem 0 0 0;
        flex: 1 1 100%;
        order: 3;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {

    /* Hero Adjustments for Mobile */
    .hero {
        background-attachment: scroll;
        /* DISARMS PARALLAX on mobile to fix zoom/distortion */
        background-position: center;
        height: 80vh;
        /* Shorter hero on mobile */
        align-items: center;
        /* Center vertically */
    }

    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }

    /* Product Grid is handled by auto-fill minmax above (150px) */

    /* Font Sizes Specifics for very small screens */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-padding {
        padding: 3rem 0;
    }
}