@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #e49027;
    --primary-hover: #c9791b;
    --primary-glow: rgba(228, 144, 39, 0.15);

    --bg-body: #0b0f19;
    --bg-secondary: #0f172a;
    --bg-card: #1e293b;

    --text-main: #fefefe;
    --text-muted: #94a3b8;

    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(228, 144, 39, 0.5);

    --whatsapp: #25d366;
    --whatsapp-hover: #1ebd5d;
    --whatsapp-glow: rgba(37, 211, 102, 0.25);

    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(228, 144, 39, 0.3);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg-body: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #f1f5f9;

    --text-main: #0f172a;
    --text-muted: #64748b;

    --border: rgba(15, 23, 42, 0.08);
    --border-focus: rgba(228, 144, 39, 0.4);

    --shadow-main: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 20px rgba(228, 144, 39, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

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

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

/* Header & Navigation */
header {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 0;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

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

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(228, 144, 39, 0.5));
}

.logo-img {
    height: 58px;
    width: auto;
    max-width: 280px;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.03);
}

/* Search Bar in Header */
.search-container {
    flex: 0 1 450px;
    position: relative;
}

.search-box {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    transition: var(--transition);
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background-color: rgba(11, 15, 25, 0.6);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-body);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-input:focus+.search-icon {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin: 40px auto 30px;
    height: 380px;
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.6) 50%, rgba(11, 15, 25, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    padding: 0 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-glow);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(228, 144, 39, 0.2);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* Category Filters */
.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.category-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background-color: rgba(228, 144, 39, 0.05);
}

.category-btn.active {
    color: var(--text-main);
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(228, 144, 39, 0.4);
}

/* Products Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.section-title span {
    color: var(--primary);
}

.products-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(228, 144, 39, 0.1);
}

/* Image Container */
.product-img-wrapper {
    width: 100%;
    height: 220px;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Product Body */
.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-details {
    margin-bottom: 16px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-main);
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pricing and WhatsApp Button */
.product-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
}

.price-currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-right: 4px;
}

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

.price-decimal {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.15rem;
}

/* Empty/No Results State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

/* Footer Section */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
}

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

.footer-col h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-col p i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

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

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-bottom span {
    color: var(--primary);
    font-weight: 600;
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: scale(1.05);
}

/* In dark mode (default): hide moon icon, show sun icon */
.theme-toggle-btn .icon-moon {
    display: none;
}

.theme-toggle-btn .icon-sun {
    display: block;
}

/* In light mode: hide sun icon, show moon icon */
body.light-mode .theme-toggle-btn .icon-sun {
    display: none;
}

body.light-mode .theme-toggle-btn .icon-moon {
    display: block;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero {
        height: 320px;
    }

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

@media (max-width: 768px) {
    .header-wrapper {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .theme-toggle-btn {
        position: absolute;
        top: 8px;
        right: 20px;
    }

    .logo {
        justify-content: center;
    }

    .search-container {
        flex: 1 1 auto;
    }

    .hero {
        height: auto;
        padding: 40px 0;
        margin-top: 20px;
    }

    .hero-bg {
        display: none;
    }

    .hero-overlay {
        background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-body) 100%);
    }

    .hero-content {
        padding: 0 24px;
        text-align: center;
    }

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

    .categories-tabs {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 18px;
        font-size: 0.88rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-floating:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-floating i {
    font-size: 1.3rem;
}

/* Responsive adjustment for floating button on very small devices */
@media (max-width: 480px) {
    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.88rem;
    }
}

/* How to buy Section */
.steps-section {
    padding: 30px 0 40px;
    margin-bottom: 20px;
}

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

.step-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(228, 144, 39, 0.08);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(228, 144, 39, 0.07);
    position: absolute;
    top: 5px;
    right: 20px;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.step-card:hover .step-number {
    color: rgba(228, 144, 39, 0.15);
    transform: scale(1.1);
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border: 1px solid rgba(228, 144, 39, 0.2);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-card:hover .step-icon {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(228, 144, 39, 0.4);
    transform: scale(1.05);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    position: relative;
    z-index: 2;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}


/* Ensure Hero Text and descriptions stay white/light over the dark banner, regardless of layout theme */
.hero {
    color: #ffffff !important;
}

.hero-desc {
    color: #cbd5e1 !important;
}

/* Adjust search-input in light mode to have clean light gray contrasts */
body.light-mode .search-input {
    background-color: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.12);
}

body.light-mode .search-input:focus {
    background-color: #ffffff;
    border-color: var(--primary);
}