:root {
    --primary-color: #f70d44;
    --secondary-color: #1a1a1a;
    --orange-color: #3a3a3a;
    --light-bg: #f9fafb; /* chosen unified background */
}

/* Base */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Alternate body font utility */
.font-body { font-family: 'Mulish', sans-serif; }

/* Color Utilities */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.text-orange { color: var(--orange-color) !important; }

.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-orange { background-color: var(--orange-color) !important; }

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 10px 24px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #d60036;
    transform: translateY(-2px);
    color: white;
}

.btn-orange {
    background-color: var(--orange-color);
    color: white;
    font-weight: 700;
    border: none;
    transition: all 0.2s;
}
.btn-orange:hover {
    background-color: #e65c00;
    color: white;
    transform: translateY(-1px);
}

/* Topbar & Navbar */
.topbar {
    background-color: var(--secondary-color);
    font-size: 13px;
}

.navbar-brand span:first-child { color: var(--primary-color); }
.navbar-brand span:last-child { color: var(--secondary-color); }

.nav-link-custom {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #4b5563;
    letter-spacing: 0.5px;
}
.nav-link-custom:hover { color: var(--primary-color); }

/* Search: combined styles for both variants used */
.search-container input,
.search-input {
    background-color: #f3f4f6;
    border-radius: 50px;
    padding-right: 50px;
}
.search-container input { /* legacy from original - kept in case markup uses this exact selector */
    background-color: #f9f9f9;
}
.search-container button,
.search-btn {
    border-radius: 50px;
    padding: 6px 20px;
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background-color: var(--primary-color);
    border: none;
    color: white;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    padding-top: 80px;
    padding-bottom: 100px;
    position: relative;
}
.hero-bg-grid {
    background-image: linear-gradient(#f70d4408 1px, transparent 1px), linear-gradient(90deg, #f70d4408 1px, transparent 1px);
    background-size: 30px 30px;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Trust badge */
.trust-badge {
    background: white;
    border: 1px solid #ffedd5;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.trust-badge:hover { transform: translateY(-2px); }

/* Floating Elements Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.floating-card {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Categories */
.category-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
}
.category-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: rgba(247, 13, 68, 0.3);
}
.category-card:hover .icon-wrapper { transform: scale(1.1); }
.icon-wrapper { transition: transform 0.3s; margin-bottom: 12px; font-size: 32px; }

/* Products */
.product-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}
.product-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.flash-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: #00c9e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-right-radius: 16px;
    z-index: 10;
}
.heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    transition: all 0.2s;
    z-index: 10;
}
.heart-btn:hover { background: #fee2e2; }
.product-img { height: 180px; object-fit: cover; width: 100%; background: #f3f4f6; }

/* Sellers */
.seller-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}
.seller-scroll-container::-webkit-scrollbar { display: none; }
.seller-card {
    min-width: 280px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s;
}
.seller-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.diamond-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #9333ea;
    font-size: 20px;
}

/* Stats & Features */
.feature-box {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}
.feature-box:hover { transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.stats-section {
    background-color: var(--secondary-color);
    background-image: radial-gradient(#f70d44 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Testimonials */
.review-card {
    background-color: #f9fafb;
    padding: 32px;
    border-radius: 16px;
    position: relative;
    padding-top: 48px;
}
.quote-icon {
    position: absolute;
    top: -20px;
    left: 32px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* CTA */
.cta-box {
    background-color: var(--primary-color);
    border-radius: 32px;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-circle-1 { position: absolute; top: 0; left: 0; width: 250px; height: 250px; background: white; opacity: 0.1; border-radius: 50%; transform: translate(-50%, -50%); }
.cta-circle-2 { position: absolute; bottom: 0; right: 0; width: 300px; height: 300px; background: black; opacity: 0.1; border-radius: 50%; transform: translate(30%, 30%); }

/* Blog */
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* Product Page Styles */
.rounded-xl { border-radius: 12px; }
.card-custom {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Gallery */
.gallery-main {
    aspect-ratio: 16/9;
    background-color: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.thumb-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.thumb-item {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.2s;
}
.thumb-item.active {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(0.95);
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-custom {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    padding: 4px;
}

/* Custom Banner */
.custom-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, #f70d44, #ff4d7d);
    opacity: 0.95;
}
.custom-banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}
.banner-title {
    color: #fcd34d;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 4px 6px rgba(0,0,0,0.1);
    line-height: 1.1;
}

/* Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    background-color: var(--orange-color);
    color: white;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background-color: #e65c00; }

/* Suggested Items */
.suggested-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.3s;
}
.suggested-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.suggested-img { height: 160px; width: 100%; object-fit: cover; }

/* Footer */
.footer-social-link,
.social-link {
    width: 36px;
    height: 36px;
    background-color: #f3f4f6;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}
.footer-social-link:hover,
.social-link:hover { background-color: var(--primary-color); color: white; }

.footer-links a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}
.footer-links a:hover { color: var(--primary-color); }

.footer-newsletter input {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
}

/* Misc utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }