﻿/* CSS Variables for New Design */
:root {
    --primary-color: #f1b92e;
    --primary-dark: #d9a31a;
    --text-main: #1a1a1b;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #f1f3f5;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Base resets & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    animation: pageFadeIn 1s ease-out;
}

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

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    z-index: 2000;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: #111827;
    text-decoration: none;
    min-width: max-content;
    margin-right: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #111827;
    margin-right: 15px;
}

/* --- Advanced Mega Menu Redesign --- */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    list-style: none;
    height: 100%;
    margin: 0 auto;
    flex: 1;
}

.nav-links>li {
    display: flex;
    align-items: center;
}

.nav-links>li>a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 30px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    position: relative;
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-links>li:hover>a::after {
    width: 100%;
}

.has-mega {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 60px 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.has-mega:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.mega-col h4 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    position: relative;
}

.mega-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
}

.mega-col ul {
    list-style: none;
}

.mega-col ul li {
    margin-bottom: 14px;
}

.mega-col ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.mega-col ul li a i {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
    color: var(--primary-color);
}

.mega-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.mega-col ul li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.mega-promo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background: #1a1a1b;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.mega-promo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.8s ease;
}

.mega-promo:hover img {
    transform: scale(1.1);
    opacity: 0.4;
}

.mega-promo-content {
    position: relative;
    z-index: 2;
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: max-content;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 99px;
    padding: 0 16px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.search-input-group:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(241, 185, 46, 0.1);
}

.search-input-group input {
    background: transparent;
    border: none;
    padding: 10px 0 10px 10px;
    width: 180px;
    outline: none;
    font-size: 0.9rem;
    color: #374151;
}

.search-icon {
    color: #9ca3af;
    font-size: 0.9rem;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    padding: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-alt);
}

.search-result-item img {
    width: 40px;
    height: 50px;
    object-fit: contain;
    background: var(--bg-alt);
    border-radius: 4px;
}

.search-result-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.search-result-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}

.icon-circle:hover {
    background: #f3f4f6;
    color: #111827;
}

.icon-user {
    font-size: 1.1rem;
}

.badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff 0%, #fcf7e9 100%);
    overflow: hidden;
    position: relative;
}

.hero-decorative {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(241, 185, 46, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 25px;
    letter-spacing: -2.5px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(241, 185, 46, 0.2);
    z-index: -1;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn-main,
.btn-outline {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-main {
    background: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 10px 20px rgba(241, 185, 46, 0.3);
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(241, 185, 46, 0.4);
    background: var(--primary-dark);
}

.btn-outline {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-alt);
    transform: translateY(-3px);
}

.hero-stats {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat-group h3 {
    font-size: 1.8rem;
    font-weight: 900;
}

.stat-group p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-sep {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-visual {
    position: relative;
}

.hero-img-wrap {
    position: relative;
    z-index: 2;
}

.hero-img-wrap img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.12));
}

.hero-floating-badge {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

.badge-icon {
    width: 45px;
    height: 45px;
    background: #e8f5e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
}

.badge-label {
    font-weight: 800;
    font-size: 0.9rem;
    margin: 0;
}

.badge-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-info h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-info p {
    font-weight: 700;
    font-size: 1rem;
}

/* Footer Section Refactor */
.hero-footer {
    padding: 80px 0 40px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo .logo-box {
    background: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.footer-links {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.copyright {
    color: #adb5bd;
    font-size: 0.85rem;
    margin: 0;
}

/* Illustration Mockup Placeholders */
.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 8px;
    padding: 24px 0;
    font-size: 0.85rem;
    color: #adb5bd;
    flex-wrap: wrap;
}

.breadcrumbs a {
    text-decoration: none;
    color: inherit;
}

.breadcrumbs span {
    color: var(--text-muted);
}

/* Pattern Page Header */
.page-header {
    margin-bottom: 48px;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-header p {
    color: var(--text-muted);
    max-width: 800px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Layout for Listing */
.listing-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    padding-bottom: 80px;
}

/* Sidebar Filters */
.sidebar-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.sidebar {
    background: #fff;
    transition: var(--transition);
}

.filter-group {
    margin-bottom: 32px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-option:hover {
    color: var(--text-main);
}

.filter-option input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.btn-clear {
    width: 100%;
    border: 1px solid var(--border-color);
    background: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-clear:hover {
    background: var(--bg-alt);
    border-color: var(--text-muted);
}

/* Pattern Cards - Specific Visual Style */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.pattern-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.pattern-card:hover {
    transform: translateY(-5px);
}

.pattern-image {
    aspect-ratio: 4/5;
    background: #f8f9fa;
    position: relative;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.pattern-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.pattern-card:hover .pattern-image img {
    transform: scale(1.1) rotate(2deg);
}

/* Hover Actions Overlay */
.pattern-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.pattern-card:hover .pattern-actions {
    bottom: 0;
    opacity: 1;
}

.action-btn {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.pattern-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--text-main);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pattern-info {
    padding: 20px 0;
}

.pattern-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pattern-name {
    font-weight: 700;
    font-size: 1.1rem;
    flex: 1;
    margin-right: 15px;
    color: var(--text-main);
}

.pattern-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.pattern-download-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 60px;
}

.btn-load {
    background: white;
    border: 1px solid var(--border-color);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Responsiveness & Navigation */
@media (max-width: 1024px) {
    .mega-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    /* Mobile Toggle */
    .mobile-toggle {
        display: block !important;
        order: 3;
    }

    .nav-container {
        justify-content: space-between;
    }

    .logo-group {
        order: 1;
        font-size: 0.9rem;
        margin-right: 0 !important;
    }

    .nav-right {
        order: 2;
        gap: 15px;
    }

    /* Hide Search on Mobile Header */
    .search-input-group {
        display: none !important;
    }

    /* Menu Side Drawer */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 60px 0;
        transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        overflow-y: auto;
        z-index: 2100;
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.2);
        display: flex !important;
        visibility: hidden;
    }

    .nav-links.active {
        left: 0;
        visibility: visible;
    }

    .nav-links>li {
        width: 100%;
        display: block;
    }

    .nav-links>li>a {
        width: 100%;
        padding: 18px 25px;
        border-bottom: 1px solid var(--border-color);
        justify-content: space-between;
        font-size: 1.1rem;
        font-weight: 700;
    }

    /* Mega Menu on Mobile (Accordion) */
    .mega-menu {
        position: static !important;
        visibility: visible;
        opacity: 1;
        display: none;
        padding: 0;
        transform: none !important;
        box-shadow: none !important;
        border-top: none;
        pointer-events: auto;
        background: var(--bg-alt);
    }

    .has-mega.open .mega-menu {
        display: block;
    }

    .mega-container {
        grid-template-columns: 1fr !important;
        padding: 15px 25px 25px !important;
        gap: 20px !important;
    }

    .mega-col h4 {
        margin-bottom: 15px;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .mega-col h4::after {
        bottom: -5px;
    }

    .mega-col ul li {
        margin-bottom: 8px;
    }

    .mega-col ul li a {
        padding: 6px 0;
        font-size: 0.9rem;
    }

    .mega-promo {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 3.2rem;
        letter-spacing: -1.5px;
    }

    .hero-desc {
        margin: 0 auto 30px;
        font-size: 1.1rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 40px auto 0;
    }
}

@media (max-width: 768px) {
    .listing-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 15px;
        margin-bottom: 25px;
        border-bottom: 2px solid var(--border-color);
    }

    .sidebar-title {
        display: none;
    }

    .filter-group {
        margin-bottom: 0;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .filter-option {
        margin-bottom: 0;
        font-size: 0.85rem;
        padding: 8px 12px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 30px;
    }

    .btn-clear {
        width: auto;
        margin-top: 0;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center !important;
        gap: 25px !important;
        margin-top: 30px !important;
    }

    .stat-sep {
        display: none;
    }

    .page-header h2 {
        font-size: 1.8rem;
    }

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

    .pattern-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mega-promo-content {
        padding: 30px !important;
    }

    .mega-promo-content h3 {
        font-size: 1.8rem !important;
    }

    .footer-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .promo-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-footer {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-main,
    .btn-outline {
        width: 100%;
    }

    .action-group {
        flex-direction: column;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .badge-pill {
        font-size: 0.65rem;
        padding: 4px 12px;
    }

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

/* Sale Styles */
.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.sale-price {
    color: #ef4444 !important;
    font-weight: 800;
}

.original-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

.pd-price-row .original-price {
    font-size: 1.2rem;
    margin-left: 10px;
}

.pd-price-row .sale-price {
    font-size: 2.2rem;
}

/* ========================================
   Tailwind-Compatible Utility Classes for Footer
   ======================================== */

/* Layout Utilities */
.grid {
    display: grid;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-12 {
    gap: 3rem;
}

/* Grid Utilities */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Spacing Utilities */
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pt-8 {
    padding-top: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

/* Size Utilities */
.size-6 {
    width: 1.5rem;
    height: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.max-w-\[1280px\] {
    max-width: 1280px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Typography Utilities */
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-bold {
    font-weight: 700;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Color Utilities */
.text-primary {
    color: var(--primary-color);
}

.bg-white {
    background-color: #ffffff;
}

.border-t {
    border-top-width: 1px;
}

.border-\[#e6e3db\] {
    border-color: #e6e3db;
}

/* Opacity */
.opacity-60 {
    opacity: 0.6;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-70 {
    opacity: 0.7;
}

/* Border Radius */
.rounded-full {
    border-radius: 9999px;
}

/* List Utilities */
.space-y-4>*+* {
    margin-top: 1rem;
}

/* Hover Effects */
.hover\:bg-primary:hover {
    background-color: var(--primary-color);
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:text-primary:hover {
    color: var(--primary-color);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined.\!text-\[14px\] {
    font-size: 14px !important;
}

/* Responsive Utilities */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:px-10 {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Footer Specific Overrides */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e6e3db;
    padding: 4rem 1.5rem;
    margin-top: 2.5rem;
}

footer .max-w-\[1280px\] {
    max-width: 1280px;
    margin: 0 auto;
}

footer h2,
footer h4 {
    margin: 0;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer a {
    text-decoration: none;
    color: inherit;
}

footer svg {
    display: block;
}

/* Ensure proper spacing for footer links */
footer .space-y-4 li {
    margin-bottom: 0;
}

footer .space-y-4 li+li {
    margin-top: 1rem;
}

/* ========================================
   PROFESSIONAL FOOTER STYLES
   ======================================== */

.professional-footer {
    background: linear-gradient(135deg, #1a1a1b 0%, #2d2d2f 100%);
    color: #ffffff;
    padding: 80px 0 0;
    margin-top: 80px;
    border-top: 4px solid var(--primary-color);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand Section */
.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

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

.footer-logo .logo-box {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1b;
    font-size: 1.1rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #1a1a1b;
    transform: translateY(-3px);
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a i {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
}

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.payment-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-payment i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-payment i:hover {
    color: var(--primary-color);
}

/* Responsive Footer */
/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Responsive Navbar and General */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 20px;
        position: relative;
    }

    .mobile-toggle {
        display: block;
        order: -1;
        /* Move toggle to left */
    }

    .logo-group {
        margin-right: auto;
        margin-left: 10px;
    }

    /* Mobile Menu Drawer */
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links>li {
        width: 100%;
        display: block;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links>li>a {
        padding: 18px 25px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        font-size: 1rem;
    }

    .nav-links>li:hover>a::after {
        width: 0;
    }

    /* Mobile Mega Menu */
    .mega-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: 1px solid #f3f4f6;
        padding: 0;
        display: none;
        /* Hidden by default, toggled via JS */
        background: #f9fafb;
    }

    .has-mega.open .mega-menu {
        display: block;
    }

    .mega-container {
        grid-template-columns: 1fr;
        padding: 20px 25px;
        gap: 30px;
    }

    .mega-col h4 {
        margin-bottom: 15px;
        color: var(--primary-dark);
    }

    .mega-col ul li a {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    /* Mobile Search */
    .search-input-group {
        background: transparent;
        border: none;
        padding: 0;
        width: auto;
    }

    .search-input-group input {
        display: none;
        /* Hide input on mobile initially or use a toggle */
        position: absolute;
        top: 100%;
        right: 0;
        width: 280px;
        background: white;
        padding: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        margin-top: 15px;
    }

    .search-input-group.active input {
        display: block;
    }

    .search-icon {
        position: static;
        font-size: 1.2rem;
        padding: 8px;
        color: #374151;
        cursor: pointer;
    }

    .badge {
        right: -5px;
        top: -5px;
    }
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        max-width: 100%;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .professional-footer {
        padding: 60px 0 0;
        margin-top: 60px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 40px;
    }

    .footer-brand {
        text-align: center;
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

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

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}