/* ========================================================
   HOMEPAGE PREMIUM UPGRADE CSS
   Modern Ecommerce UI - Matches Shopify Premium Themes
   ======================================================== */

/* ---- SECTION HEADINGS ---- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.6rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--primary, #6B46C1);
    border-radius: 9px;
}

.section-header a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary, #6B46C1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}

.section-header a:hover {
    gap: 0.6rem;
}

/* ---- HERO UPGRADES ---- */
.hero-value-props {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-value-props .vp-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.hero-value-props .vp-item i {
    color: #a78bfa;
    font-size: 1rem;
}

.hero-trust-signals {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-trust-signals .ts-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

.hero-trust-signals .ts-item i {
    color: #a78bfa;
}

/* ---- TRUST BADGES (below hero, separate section) ---- */
.trust-bar-section {
    background: white;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem 0;
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.trust-bar-item:hover {
    background: #f8f7ff;
}

.trust-bar-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B46C1;
    font-size: 1.3rem;
}

.trust-bar-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.1rem;
}

.trust-bar-text span {
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-bar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .trust-bar-item {
        padding: 0.75rem;
        gap: 0.6rem;
    }
}

/* ---- CATEGORY SECTION ---- */
.home-section {
    padding: 4rem 0;
}

.home-section.bg-light {
    background: #fafafa;
}

.categories-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .categories-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ---- PRODUCT CARDS UPGRADE ---- */
.products-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.75rem;
}

.product-card-v2 {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.product-card-v2:hover {
    box-shadow: 0 12px 32px rgba(107, 70, 193, 0.12);
    transform: translateY(-4px);
}

.product-card-v2 .pc-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f8f7ff;
}

.product-card-v2 .pc-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-v2 .pc-image-wrap .hover-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card-v2:hover .pc-image-wrap img.primary-img {
    transform: scale(1.05);
}

.product-card-v2:hover .pc-image-wrap .hover-img {
    opacity: 1;
}

.pc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pc-badge.badge-new {
    background: #6B46C1;
    color: white;
}

.pc-badge.badge-sale {
    background: #ef4444;
    color: white;
}

.pc-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
}

.pc-wishlist:hover,
.pc-wishlist.active {
    color: #ef4444;
    transform: scale(1.1);
}

.pc-quick-view {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 3;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.product-card-v2:hover .pc-quick-view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pc-body {
    padding: 1rem 1.1rem 1.25rem;
}

.pc-category {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6B46C1;
    margin-bottom: 0.35rem;
}

.pc-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.pc-title a {
    color: inherit;
}

.pc-title a:hover {
    color: #6B46C1;
}

.pc-stars {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.pc-stars .stars-html {
    color: #f59e0b;
    font-size: 0.78rem;
}

.pc-stars .review-count {
    font-size: 0.75rem;
    color: #94a3b8;
}

.pc-price-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.pc-price {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.pc-price-sale {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ef4444;
    /* highlighted red */
}

.pc-price-old {
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.pc-add-btn {
    width: 100%;
    padding: 0.65rem;
    background: #6B46C1;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.pc-add-btn:hover {
    background: #553c9a;
    transform: translateY(-1px);
}

/* ---- PROMO BANNER ---- */
.promo-banner {
    background: linear-gradient(135deg, #0f172a 0%, #3b0764 60%, #6B46C1 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 0 0 4rem;
}

.promo-banner::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.08);
    top: -150px;
    right: -100px;
}

.promo-banner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.06);
    bottom: -100px;
    left: -80px;
}

.promo-inner {
    position: relative;
    z-index: 1;
}

.promo-label {
    display: inline-block;
    background: rgba(167, 139, 250, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: #d8b4fe;
    padding: 0.3rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.promo-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.promo-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.promo-banner .btn-promo {
    background: white;
    color: #6B46C1;
    padding: 0.875rem 2.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.promo-banner .btn-promo:hover {
    background: #ede9fe;
    transform: translateY(-2px);
}

/* ---- SOCIAL PROOF STATS ---- */
.stats-section {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.07);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-radius: 16px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B46C1;
}

.stat-icon i,
.stat-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.75px;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- NEWSLETTER ---- */
.newsletter-section {
    background: linear-gradient(135deg, #0f172a, #3b0764);
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.newsletter-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin: 0 auto 2rem;
    font-size: 1rem;
}

.newsletter-form-wrap {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
    border-radius: 99px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.newsletter-form-wrap input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: white;
    color: #0f172a;
}

.newsletter-form-wrap button {
    padding: 1rem 2rem;
    background: #6B46C1;
    color: white;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.newsletter-form-wrap button:hover {
    background: #553c9a;
}

.newsletter-note {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
    .newsletter-form-wrap {
        flex-direction: column;
        border-radius: 12px;
    }

    .newsletter-form-wrap input[type="email"],
    .newsletter-form-wrap button {
        border-radius: 0;
        width: 100%;
    }
}

/* ---- INSTAGRAM FEED ---- */
.instagram-section {
    padding: 4rem 0;
    background: white;
}

.instagram-section .section-top {
    text-align: center;
    margin-bottom: 1.5rem;
}

.instagram-section .section-top h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
}

.instagram-section .section-top p {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.instagram-item {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.instagram-item:hover img {
    transform: scale(1.08);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(107, 70, 193, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 1.8rem;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- MOBILE BOTTOM NAV ---- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0 env(safe-area-inset-bottom, 0.5rem);
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.75rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.2s;
    border: none;
    background: none;
    cursor: pointer;
}

.mbn-item i {
    font-size: 1.3rem;
    line-height: 1;
}

.mbn-item.active,
.mbn-item:hover {
    color: #6B46C1;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }

    .luxe-hero {
        padding-bottom: 0;
    }
}

/* ---- FOOTER IMPROVEMENTS ---- */
.footer-payment-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    padding-top: 2rem;
}

.footer-payment-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.payment-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

/* ---- SWIPEABLE ROWS MOBILE ---- */
@media (max-width: 768px) {
    .products-grid-home {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .products-grid-home::-webkit-scrollbar {
        display: none;
    }

    .product-card-v2 {
        min-width: 200px;
        scroll-snap-align: start;
    }
}

/* ---- MICRO ANIMATIONS ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

/* Stagger delays */
.fade-in-up:nth-child(1) {
    animation-delay: 0s;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
    animation-delay: 0.3s;
}

/* Scroll reveal (JS-activated) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- SMOOTH SCROLL ---- */
html {
    scroll-behavior: smooth;
}