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

:root {
    --primary-color: #3b6de9;
    --primary-dark: #46c5e5;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --dark-color: #1e293b;
    --text-color: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --light-bg: #f8fafc;
    --light-gray: #f1f5f9;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #e0e7ff;
    --gray-500: #475569;
    --purple-start: #3b6de9;
    --purple-end: #46c5e5;
    --purple-light: #8b5cf6;
    --indigo: #6366f1;
    --indigo-dark: #4338ca;
    --pink: #ec4899;
    --pink-light: #f093fb;
    --cyan: #06b6d4;
    --red: #ef4444;
    --red-dark: #dc2626;
    --blue-light: #e3f2fd;
    --blue-dark: #1565c0;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--gray-300) 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo-text .tagline {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 8rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 8s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--accent-color), var(--pink));
    top: -250px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), var(--cyan));
    bottom: -200px;
    right: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--purple-light), var(--indigo));
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1) translateY(-20px);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span, .btn svg {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.8s both;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    background: white;
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    animation: fadeIn 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.no-photo svg {
    opacity: 0.5;
}

.no-photo span {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-photo-modal {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-light);
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 900;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.product-info {
    padding: 0.85rem;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    letter-spacing: 0.8px;
}

.product-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.store-info {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.store-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
}

.promo-hint {
    font-size: 0.7rem;
    color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    font-weight: 700;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.price-current {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-price .price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-buy:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--indigo-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

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

.about-content > p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-weight: 700;
}

.feature p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

/* Footer Navigation - Mobile only */
.footer-nav {
    display: none;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.footer-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
}

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

.footer-section h3 {
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 0.75rem;
    opacity: 0.85;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Price Comparison Table */
.price-comparison {
    margin: 2rem 0;
}

.price-comparison h3 {
    margin-bottom: 1.25rem;
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--gray-200) 100%);
    font-weight: 700;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.comparison-table tr {
    transition: var(--transition);
}

.comparison-table tr:hover {
    background: var(--light-bg);
}

.comparison-table .best-price {
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 1.1rem;
}

.comparison-table .has-promo {
    background: rgba(16, 185, 129, 0.05);
}

.promo-code-box {
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.promo-code-box h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.promo-code {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 1rem 0;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.promo-code:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.copy-hint {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    /* Hide header navigation on mobile */
    .header .nav {
        display: none;
    }

    /* Show footer navigation on mobile */
    .footer-nav {
        display: flex;
        flex-direction: row;
    }

    .footer {
        padding: 1rem 0 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Product Page Styles */
.product-page {
    padding: 3rem 0 5rem;
    background: transparent;
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--dark-color);
    font-weight: 600;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.product-detail-image {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
}

.no-photo-large {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-light);
}

.product-badge-large {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-badge-large {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 15px;
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-category-large {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.2;
    margin: 0;
}

.product-description-large {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.product-price-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--gray-200) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-old {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 1rem;
}

.price-save {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.btn-large {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.btn-back {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
}

.info-box {
    background: var(--blue-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.info-box p {
    margin: 0;
    color: var(--blue-dark);
    font-size: 0.95rem;
}

.best-price-note {
    color: #666;
    font-size: 1rem;
    margin: 1.5rem 0;
}

.best-price-note strong {
    color: var(--secondary-color);
}

/* Buy Button Styles - Enhanced */
.btn-buy-product {
    position: relative;
    width: 100%;
    padding: 1.75rem 2.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 50%, var(--pink-light) 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4), 0 0 0 0 rgba(102, 126, 234, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-buy-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-buy-product:hover::before {
    left: 100%;
}

.btn-buy-product::after {
    content: '🚀';
    position: absolute;
    right: 2rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.btn-buy-product:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.4);
    animation: none;
    background: linear-gradient(135deg, var(--purple-end) 0%, var(--purple-start) 50%, var(--pink-light) 100%);
}

.btn-buy-product:hover::after {
    transform: translateX(5px) rotate(20deg);
}

.btn-buy-product:active {
    transform: translateY(-2px) scale(1);
}

/* Pulse animation for buy button */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

.btn-buy-product.pulse {
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Error Page Styles */
.error-page {
    padding: 5rem 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 1rem 0;
}

.error-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Product HTML Description */
.product-html-description {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin: 3rem 0;
    animation: fadeInUp 0.6s ease;
}

.product-html-description h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-html-description h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-html-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.product-html-description ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.product-html-description ul li {
    padding: 1rem 0 1rem 2.5rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-500);
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.product-html-description ul li:last-child {
    border-bottom: none;
}

.product-html-description ul li::before {
    content: '🔥';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.product-html-description ul li:hover {
    background: var(--light-bg);
    padding-left: 3rem;
}

.product-html-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

.product-html-description .highlight {
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.7;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Responsive for Product Page */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-title-large {
        font-size: 1.75rem;
    }

    .price-current {
        font-size: 2rem;
    }

    .error-code {
        font-size: 5rem;
    }

    .product-html-description {
        padding: 1.5rem;
    }

    .product-html-description h3 {
        font-size: 1.5rem;
    }

    .product-html-description h4 {
        font-size: 1.25rem;
    }

    .product-html-description p,
    .product-html-description ul li {
        font-size: 1rem;
    }
}

/* Product Actions - кнопки в карточках товаров */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

/* Small buttons */
.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}

/* Override btn-secondary for product cards (white background) */
.product-card .btn-secondary {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--dark-color);
    border: 2px solid var(--gray-300);
    transition: var(--transition);
}

.product-card .btn-secondary:hover {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 109, 233, 0.2);
}

/* Category tag */
.category-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    color: white;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Badge hot */
.badge-hot {
    background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 0.65rem;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .price-current {
        font-size: 1rem;
    }

    .btn-sm {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    .btn-sm svg {
        width: 12px;
        height: 12px;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 109, 233, 0.3);
}

.pagination-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 109, 233, 0.4);
}

.pagination-btn-disabled {
    background: var(--gray-200);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

.pagination-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-number:hover {
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    color: white;
    border-color: var(--purple-start);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 109, 233, 0.3);
}

.pagination-number-active {
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    color: white;
    border-color: var(--purple-start);
    box-shadow: 0 4px 15px rgba(59, 109, 233, 0.4);
    cursor: default;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .pagination {
        gap: 0.5rem;
    }

    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .pagination-btn svg {
        width: 16px;
        height: 16px;
    }

    .pagination-number {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .pagination-ellipsis {
        width: 38px;
        height: 38px;
    }
}
