:root {
    --primary: #FF6B00;
    --primary-hover: #e66000;
    --primary-light: rgba(255, 107, 0, 0.08);
    --bg: #F3F5F9; /* Very soft, cool gray-blue */
    --card-bg: #FFFFFF;
    --text: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --radius: 20px;
    --radius-sm: 12px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.85);
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* Dark Header Theme */
.header {
    background-color: #111827; /* Dark black/gray */
    isolation: isolate; /* Prevents blend-mode bleeding */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 16px 0 8px;
    transition: all 0.3s ease;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-decoration: none;
    background: linear-gradient(135deg, #FF6B00, #FF3D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

@keyframes slideInRight {
    0% { transform: translateX(30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.animate-slide-right {
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.search-bar-container {
    position: relative;
    width: 100%;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    background-color: #1F2937;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-input:focus {
    box-shadow: 0 0 0 3px var(--primary-light), 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: fill 0.3s ease;
    pointer-events: none;
}
.search-input:focus + .search-icon {
    fill: var(--primary);
}

/* Category Pills */
.categories-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 16px 0;
    scrollbar-width: none;
}
.categories-slider::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 8px 20px;
    background-color: #1F2937;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    color: #D1D5DB;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.category-chip:hover {
    background-color: #374151;
    color: #fff;
    border-color: #4B5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.category-chip.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255,107,0,0.2);
}

/* Sections */
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 28px 0 20px;
    letter-spacing: -0.3px;
    color: var(--text);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

/* Product Card - Enhanced Premium UI */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.8); /* Subtle highlight for glass effect */
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.product-card:active {
    transform: translateY(-2px) scale(0.98);
}

.product-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background-color: #f1f5f9;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumb {
    transform: scale(1.05); /* Soft zoom on hover */
}

.rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--text);
}

.rating-badge .star {
    color: #FFB020;
    font-size: 0.9rem;
}

.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

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

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    line-height: 1.5;
}

/* Pulsing Buy Button */
@keyframes softPulse {
    0% { box-shadow: 0 0 0 0 var(--primary-light); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
    animation: softPulse 2.5s infinite;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
}

/* Product Detail Page */
.pd-media {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--hover-shadow);
    background: #000;
}

.pd-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 177.77%;
}

.pd-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pd-info-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 100px;
    border: 1px solid rgba(255,255,255,0.6);
}

.pd-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.pd-rating {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFBEB;
    padding: 6px 12px;
    border-radius: 100px;
    color: #D97706;
}

.pd-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.pd-description ul {
    margin-left: 20px;
    margin-top: 12px;
    color: var(--text);
}

.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 16px 14px; /* Reduced padding for slimmer profile */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    z-index: 100;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.4);
}

.btn-buy-large {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    text-align: center;
    padding: 16px 24px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    width: 100%;
    max-width: 400px;
    display: block;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
}
.btn-buy-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.4);
}

/* Tablet (>= 768px) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .pd-media {
        max-width: 400px;
        margin: 0 auto 30px;
    }
}

/* Mobile Search Bar Expansion */
@media (max-width: 767px) {
    .search-bar-container {
        width: 44px; /* Icon width */
        max-width: 44px;
        flex: none;
        transition: all 0.3s ease;
    }
    .search-bar-container:not(:focus-within):not(.has-text) {
        height: 44px;
        border: 2px solid #252c43;
        border-radius: 50%;
    }
    .search-bar-container:not(:focus-within):not(.has-text) .search-icon {
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .search-input {
        color: transparent;
        cursor: pointer;
        padding: 14px 16px 14px 44px;
        background-color: transparent;
        border-color: transparent;
        box-shadow: none;
    }
    .search-input::placeholder {
        color: transparent;
    }
    .search-bar-container:focus-within,
    .search-bar-container.has-text {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        max-width: 100%;
        width: calc(100% - 32px);
        margin: 0 16px;
        z-index: 200;
    }
    .search-bar-container:focus-within .search-input,
    .search-bar-container.has-text .search-input {
        color: #fff;
        background-color: #1F2937;
        border-color: var(--primary);
        cursor: text;
    }
    .search-bar-container:focus-within .search-input::placeholder,
    .search-bar-container.has-text .search-input::placeholder {
        color: #9CA3AF;
    }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    .search-bar-container {
        max-width: 400px;
    }
    .header-top {
        display: flex;
        align-items: center;
    }
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .product-detail-layout {
        display: grid;
        grid-template-columns: 440px 1fr;
        gap: 60px;
        align-items: start;
        margin-top: 40px;
    }
    .pd-media {
        margin: 0;
    }
    .fixed-bottom-bar {
        position: static;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        margin-top: 30px;
        justify-content: flex-start;
        border: none;
    }
    .btn-buy-large {
        max-width: 320px;
    }
    .pd-info-card {
        margin-bottom: 0;
    }
}

/* Social CTAs & Glass Panel */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.btn-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.btn-youtube {
    background-color: #FF0000;
}
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
}
.category-chip i {
    font-size: 1.1rem;
}

