/* =========================================
   LAPAK APLIKASI - MARKETPLACE STYLES
   Modern Digital Marketplace Design
   ========================================= */

:root {
    --primary-blue: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFace, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* =========================================
   NAVIGATION BAR
   ========================================= */

/* Utility Navigation Bar (Top) - Blue Dark */
.utility-nav {
    background: #2850be;
    padding: 0.5rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.utility-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.utility-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem !important;
    transition: color 0.2s ease;
    font-weight: 500;
}

.utility-nav .nav-link:hover {
    color: #fff !important;
}

.utility-nav .status-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.35rem 0.75rem !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.utility-nav .dropdown-toggle::after {
    color: #fff;
}

/* Main Navigation Bar - White/Light */
.navbar {
    background: #0d2559 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff !important;
    text-decoration: none;
}

.navbar-brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
    letter-spacing: -0.5px;
}

.category-nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.category-nav-main .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem !important;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.category-nav-main .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
}

.btn-search {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.4rem 0.8rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.navbar-logo {
    height: 35px;
    width: auto;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Navbar Toggler */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex: 1;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--success);
}

.product-price small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.btn-detail {
    background: var(--primary-blue);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-detail:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    color: white;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn-primary {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
}

.btn-outline-primary:hover {
    background: var(--primary-blue) !important;
    color: white !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .utility-nav {
        padding: 0.4rem 0;
    }

    .utility-left {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .utility-right {
        gap: 0.25rem;
    }

    .utility-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem !important;
    }

    .utility-nav .status-badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.8rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand-text {
        font-size: 1.25rem;
    }

    .navbar-logo {
        height: 28px;
    }

    .category-nav-main {
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
    }

    .category-nav-main .nav-link {
        width: 100%;
        text-align: left;
    }

    .btn-search {
        margin-top: 0.5rem;
    }

    .hero {
        padding: 60px 0 150px;
        margin-bottom: -100px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .category-section {
        padding: 2rem 1rem;
        border-radius: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .search-box input {
        padding: 1rem 4rem 1rem 1rem;
    }

    .search-box button {
        padding: 0.6rem 1.25rem;
        font-size: 0.875rem;
    }
}


/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* =========================================
   HERO, SEARCH, CATEGORY, PRODUCT CARD (ADDED)
   ========================================= */
.hero {
    position: relative;
    padding: 80px 0 200px;
    background: linear-gradient(135deg, rgba(30,58,138,0.97) 0%, rgba(37,99,235,0.92) 50%, rgba(30,64,175,0.95) 100%);
    color: #fff;
    overflow: hidden;
    margin-bottom: -130px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero h1 { 
    font-weight: 800; 
    font-size: 3rem; 
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.hero .lead { 
    font-size: 1.125rem; 
    color: rgba(255,255,255,0.95); 
    max-width: 900px; 
    margin: 0 auto 2rem;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.search-container { 
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.search-box { 
    position: relative; 
    max-width: 800px; 
    margin: 0 auto; 
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 999px; 
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.25), 
        0 10px 25px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.5),
        inset 0 1px 0 rgba(255,255,255,0.9); 
    padding: 0.4rem; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-box:hover {
    box-shadow: 
        0 25px 70px rgba(0,0,0,0.3), 
        0 15px 35px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.6),
        0 0 40px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255,255,255,1);
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.2);
}

.search-box:focus-within {
    box-shadow: 
        0 30px 80px rgba(0,0,0,0.35), 
        0 20px 40px rgba(0,0,0,0.25),
        0 0 0 1px rgba(37, 99, 235, 0.3),
        0 0 60px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255,255,255,1);
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.3);
}

.search-box .search-icon { 
    color: #6b7280; 
    margin-left: 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-box:focus-within .search-icon {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.search-box input { 
    flex: 1; 
    border: none; 
    outline: none; 
    padding: 1rem 1rem 1rem 0.5rem; 
    border-radius: 999px; 
    font-size: 1.05rem;
    color: var(--text-dark);
    background: transparent;
    font-weight: 500;
}

.search-box input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-box input:focus::placeholder {
    color: #d1d5db;
}

.search-box .btn-search-submit { 
    border-radius: 999px;
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(30, 64, 175, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.search-box .btn-search-submit i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.search-box .btn-search-submit::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 ease;
}

.search-box .btn-search-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-blue) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-box .btn-search-submit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(30, 64, 175, 0.6),
        0 0 0 4px rgba(30, 64, 175, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.search-box .btn-search-submit:hover::after {
    opacity: 1;
}

.search-box .btn-search-submit:hover::before {
    left: 100%;
}

.search-box .btn-search-submit:hover i {
    transform: scale(1.15) rotate(-15deg);
}

.search-box .btn-search-submit:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 
        0 3px 10px rgba(30, 64, 175, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.search-box .btn-search-submit:active i {
    transform: scale(1) rotate(0deg);
}

/* Search Icon Styling */
.search-box .search-icon {
    font-size: 1.125rem;
}

/* Search Box Animation on Page Load */
@keyframes searchBoxEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-container {
    animation: searchBoxEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

.category-section { 
    position: relative;
    z-index: 100;
    padding: 0;
    margin-top: 0;
}

.category-section > .container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.1);
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.9);
}

.category-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
}

.category-header h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.btn-all-categories { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.5rem 1rem; 
    border: 1px solid #cbd5e1; 
    color: #64748b; 
    border-radius: var(--radius-md); 
    text-decoration: none; 
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #fff;
}

.btn-all-categories:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-all-categories svg {
    width: 16px;
    height: 16px;
}

.category-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 1.25rem;
}

.category-card { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    background: #f8fafc;
    border-radius: 16px; 
    padding: 1.75rem 1rem; 
    text-decoration: none; 
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-card:hover { 
    transform: translateY(-5px); 
    background: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(30,64,175,0.15);
}

.category-icon { 
    width: 72px; 
    height: 72px; 
    border-radius: 999px; 
    display: grid; 
    place-items: center; 
    background: #eef2ff; 
    color: var(--primary-blue); 
    font-size: 2rem; 
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-name { 
    color: var(--text-dark); 
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.products-section { 
    padding: 4rem 0 4rem;
    margin-top: 3rem;
}

.section-header { 
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-header h5 { 
    font-size: 1.75rem; 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 0.75rem;
}

.section-description { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    line-height: 1.6; 
    max-width: 900px; 
    margin: 0 auto;
}
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-card { background: var(--bg-white); border: 1px solid var(--border-color); border-top: 4px solid var(--primary-blue); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.product-header { position: relative; padding: 0.75rem 1rem; background: var(--bg-white); display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.product-header-badge { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; overflow: hidden; }
.lightning-icon { background: var(--primary-blue); color: #fff; border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; font-size: 1rem; font-weight: 700; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.product-header-name { font-size: 0.7rem; font-weight: 700; color: var(--primary-blue); letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; flex: 1; }
.product-image { position: relative; width: 100%; height: 240px; overflow: hidden; background: #f3f4f6; }
.product-image img { width:100%; height:100%; object-fit: cover; display:block; }
.image-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:#e5e7eb; color:#374151; font-weight:700; }
.version-badge { background: var(--primary-light); color: #fff; border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.7rem; font-weight: 700; box-shadow: var(--shadow-sm); white-space: nowrap; }
.product-body { padding: 1.25rem; display:flex; flex-direction:column; flex: 1; }
.product-features { list-style: none; padding: 0; margin: 0 0 1.25rem 0; }
.product-features li { font-size: 0.8rem; color: var(--text-dark); padding: 0.3rem 0; padding-left: 1.25rem; position: relative; line-height: 1.5; }
.product-features li:before { content: "•"; position: absolute; left: 0; color: var(--primary-blue); font-weight: 700; font-size: 1.1rem; }
.product-title-large { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; line-height: 1.4; }
.product-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.product-name-full { font-size: 0.875rem; color: var(--text-dark); font-weight: 500; margin-top: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-link { font-size: 0.85rem; color: var(--primary-blue); text-decoration: none; display: inline-block; margin-bottom: 0.5rem; }
.product-link:hover { text-decoration: underline; }

/* Tweaks to match reference exactly */
.search-box button { padding: 0.5rem 1rem; font-size: 0.9rem; border-radius: 999px; }

/* Category Icon Colors - Matches Reference */
.category-grid .category-card:nth-child(1) .category-icon { background: #fee2e2; color: #dc2626; }
.category-grid .category-card:nth-child(2) .category-icon { background: #dbeafe; color: #2563eb; }
.category-grid .category-card:nth-child(3) .category-icon { background: #d1fae5; color: #059669; }
.category-grid .category-card:nth-child(4) .category-icon { background: #e9d5ff; color: #9333ea; }
.category-grid .category-card:nth-child(5) .category-icon { background: #fed7aa; color: #ea580c; }
.category-grid .category-card:nth-child(6) .category-icon { background: #e0e7ff; color: #4f46e5; }
@media (max-width: 992px) {
  .category-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 150px;
    margin-bottom: -80px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .search-box {
    max-width: 100%;
    padding: 0.35rem;
    gap: 0.5rem;
  }

  .search-box .search-icon {
    margin-left: 1rem;
  }

  .search-box input {
    padding: 0.85rem 0.75rem 0.85rem 0.5rem;
    font-size: 0.95rem;
  }

  .search-box .btn-search-submit {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }

  .category-section > .container {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .category-header {
    margin-bottom: 1.25rem;
  }

  .category-header h5 {
    font-size: 1.25rem;
  }

  .category-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
  }

  .category-card {
    padding: 1.25rem 0.75rem;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .category-name {
    font-size: 0.85rem;
  }

  .product-grid { 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 1.25rem; 
  }

  .product-image { height: 200px; }
  .product-header { padding: 0.6rem 0.75rem; }
  .product-header-name { font-size: 0.65rem; }
  .lightning-icon { width: 24px; height: 24px; font-size: 0.875rem; }
  .product-features li { font-size: 0.75rem; padding: 0.25rem 0; }
  .product-title-large { font-size: 1rem; }
  .product-body { padding: 1rem; }
}

@media (max-width: 576px) {
  .hero {
    padding: 50px 0 130px;
    margin-bottom: -60px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .lead {
    font-size: 0.9rem;
  }

  .search-box {
    padding: 0.3rem;
    gap: 0.4rem;
  }

  .search-box .search-icon {
    margin-left: 0.75rem;
  }

  .search-box .search-icon svg {
    width: 18px;
    height: 18px;
  }

  .search-box input {
    padding: 0.75rem 0.5rem 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .search-box .btn-search-submit {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .search-box .search-icon {
    font-size: 1rem;
  }

  .category-section > .container {
    padding: 1.25rem;
  }

  .category-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.875rem; 
  }

  .category-card {
    padding: 1rem 0.5rem;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .category-name {
    font-size: 0.8rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   SEARCH MODAL OVERLAY - PREMIUM
   ========================================= */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-container {
  position: relative;
  width: 90%;
  max-width: 700px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 
    0 25px 80px rgba(0,0,0,0.4),
    0 10px 30px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transform: scale(0.9) translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.search-modal-overlay.active .search-modal-container {
  transform: scale(1) translateY(0);
}

.search-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.search-modal-close:hover {
  background: #e5e7eb;
  color: var(--text-dark);
  transform: rotate(90deg);
}

.search-modal-content {
  padding: 3rem 2.5rem 2.5rem;
}

.search-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.search-modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

.search-modal-form {
  margin-bottom: 2rem;
}

.search-modal-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
}

.search-modal-input-wrapper:focus-within {
  background: #fff;
  border-color: var(--primary-blue);
  box-shadow: 
    0 0 0 4px rgba(30, 64, 175, 0.1),
    0 4px 12px rgba(30, 64, 175, 0.15);
}

.search-modal-icon {
  color: var(--text-muted);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.search-modal-input-wrapper:focus-within .search-modal-icon {
  color: var(--primary-blue);
  transform: scale(1.1);
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.75rem 0.5rem;
}

.search-modal-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.search-modal-submit {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
  border: none;
  color: white;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(30, 64, 175, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.search-modal-submit:hover {
  transform: translateX(3px) scale(1.05);
  box-shadow: 
    0 6px 16px rgba(30, 64, 175, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.search-modal-submit:active {
  transform: translateX(2px) scale(1);
}

.search-modal-suggestions {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.suggestions-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.suggestion-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  color: var(--text-dark);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.suggestion-tag:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Search Modal Responsive */
@media (max-width: 768px) {
  .search-modal-container {
    width: 95%;
    border-radius: 20px;
  }

  .search-modal-content {
    padding: 2.5rem 1.5rem 2rem;
  }

  .search-modal-title {
    font-size: 1.5rem;
  }

  .search-modal-subtitle {
    font-size: 0.875rem;
  }

  .search-modal-input {
    font-size: 1rem;
    padding: 0.625rem 0.5rem;
  }

  .search-modal-submit {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .search-modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 576px) {
  .search-modal-content {
    padding: 2rem 1.25rem 1.75rem;
  }

  .search-modal-title {
    font-size: 1.25rem;
  }

  .search-modal-input-wrapper {
    padding: 0.375rem 0.625rem;
  }

  .search-modal-input {
    font-size: 0.95rem;
  }

  .search-modal-submit {
    width: 40px;
    height: 40px;
  }

  .suggestion-tag {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
  }
}

/* =========================================
   GLASS MORPHISM SECTIONS - PREMIUM
   ========================================= */
.glass-section {
  position: relative;
  padding: 4rem 0;
  margin: 3rem 0;
}

.glass-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(37, 99, 235, 0.03) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0;
  z-index: -1;
}

.glass-section .section-header h5 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.glass-section .section-header h5 i {
  color: var(--primary-blue);
  font-size: 1.5rem;
}

/* =========================================
   LATEST PRODUCTS SLIDER - PREMIUM
   ========================================= */
.latest-products-section {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.slider-container {
  position: relative;
  padding: 0 3rem;
}

.slider-wrapper {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

.slider-wrapper::-webkit-scrollbar {
  display: none;
}

.slider-card {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.1),
    0 4px 12px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.slider-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.15),
    0 8px 20px rgba(0,0,0,0.12),
    0 0 0 1px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255,255,255,1);
  border-color: rgba(37, 99, 235, 0.3);
}

.slider-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.slider-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slider-card:hover .slider-card-image img {
  transform: scale(1.1);
}

.slider-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  z-index: 2;
}

.slider-card-badge i {
  font-size: 0.7rem;
}

.slider-card .version-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--primary-blue);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 2;
}

.slider-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slider-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-card-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.slider-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.slider-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--success);
}

.badge-free {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.slider-card-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.slider-card:hover .slider-card-action {
  transform: translateX(4px) scale(1.1);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--primary-blue);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.1),
    0 2px 6px rgba(0,0,0,0.08);
  z-index: 10;
  border: none;
}

.slider-nav:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 
    0 12px 30px rgba(30, 64, 175, 0.4),
    0 4px 10px rgba(0,0,0,0.15);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
  left: 0;
}

.slider-nav.next {
  right: 0;
}

.slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================
   FREE PRODUCTS SECTION - PREMIUM GLASS
   ========================================= */
.free-products-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.03) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.product-card-free {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.product-card-free:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 
    0 20px 50px rgba(16, 185, 129, 0.15),
    0 8px 20px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
}

.free-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.free-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Slider */
@media (max-width: 992px) {
  .slider-container {
    padding: 0 2.5rem;
  }

  .slider-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 768px) {
  .glass-section {
    padding: 3rem 0;
    margin: 2rem 0;
  }

  .slider-container {
    padding: 0 3rem;
  }

  .slider-card {
    flex: 0 0 260px;
  }

  .slider-card-image {
    height: 180px;
  }

  .slider-card-body {
    padding: 1.25rem;
  }

  .slider-card-title {
    font-size: 1rem;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .slider-nav.prev {
    left: -0.5rem;
  }

  .slider-nav.next {
    right: -0.5rem;
  }
}

@media (max-width: 576px) {
  .slider-container {
    padding: 0 2.5rem;
  }

  .slider-card {
    flex: 0 0 240px;
  }

  .slider-card-image {
    height: 160px;
  }

  .slider-card-body {
    padding: 1rem;
  }

  .slider-card-title {
    font-size: 0.95rem;
  }

  .slider-card-price {
    font-size: 1.125rem;
  }

  .slider-nav {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}
