/* shop/assets/css/style.css */
:root {
    --primary-color: #e91e63;
    --secondary-color: #f8f9fa;
    --accent-color: #e91e63;
    --text-color: #222;
    --light-text: #999;
    --background-color: #ffffff;
    --white: #ffffff;
    --border-color: #eee;
    --success: #27ae60;
    --danger: #e91e63;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    --radius: 0;
}

.price-tag {
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: isolate;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #1a1a2e;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ===== HEADER / NAVBAR ===== */
header {
    background: #fff;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    background: #1a1a2e;
    padding: 12px 30px;
    border-radius: 0;
    position: relative;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #e91e63;
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e91e63;
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    /* Start slightly zoomed in */
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.hero-slide.active .hero-bg {
    transform: scale(1);
    /* Smooth zoom out */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    max-width: 900px;
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: -1.5px;
    opacity: 0;
}

.hero-slide .hero-content p {
    font-size: 1.35rem !important;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 35px !important;
    opacity: 0;
}

.hero-slide .hero-content .btn-primary {
    opacity: 0;
    padding: 15px 40px;
    font-size: 1.15rem;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    transition: all 0.3s ease;
}

.hero-slide .hero-content .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.6);
}

/* Staggered Animations Triggered by .active */
.hero-slide.active .hero-content h1 {
    animation: heroFadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards;
}

.hero-slide.active .hero-content p {
    animation: heroFadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s forwards;
}

.hero-slide.active .hero-content .btn-primary {
    animation: heroFadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.7s forwards;
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 400px;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-slide .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        letter-spacing: -0.5px;
    }

    .hero-slide .hero-content p {
        font-size: 1.1rem !important;
        margin-bottom: 25px !important;
    }

    .hero-slide .hero-content .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #e91e63;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #c2185b;
    transform: translateY(-1px);
}

/* Button Loading State */
.btn-loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
    cursor: default !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: btn-spin 0.8s linear infinite;
}

.btn-loading-sm::after {
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border-width: 2px;
}

/* Dark spinner for light buttons */
.btn-loading.btn-loading-dark::after {
    border-color: rgba(233, 30, 99, 0.1);
    border-top-color: #e31e63;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== PRODUCTS GRID ===== */
.section-title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ===== PRODUCT CARD (Unified style) ===== */
.product-card {
    background: #fff;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
    direction: ltr;
    text-align: left;
}

.product-card:hover {
    border-color: #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-image {
    position: relative;
    aspect-ratio: 1/1.1;
    overflow: hidden;
    background: #fafafa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .secondary-img {
    opacity: 0;
}

.product-card:hover .secondary-img {
    opacity: 1;
}

.badge-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e8f5e9;
    color: #2ecc71;
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 3px;
    font-weight: 700;
    z-index: 2;
}

.product-info {
    padding: 20px 15px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #e91e63;
}

.product-price {
    color: #e91e63;
    font-weight: 700;
    font-size: 1.05rem;
}

.old-price {
    text-decoration: line-through;
    color: #bbb;
    font-size: 0.85rem;
    margin-left: 5px;
    font-weight: 400;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: #e91e63;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== INPUTS ===== */
input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;

}

button:active {
    transform: scale(0.98);
}

/* ===== GLOBAL SCROLL ANIMATIONS ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Animations for Cart/Wishlist actions */
.fly-to-target {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.fly-to-target.is-icon {
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    font-size: 24px;
    color: #e91e63;
}

@keyframes shake-icon {
    0% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.3) rotate(-15deg);
        color: #e91e63;
    }

    50% {
        transform: scale(1.3) rotate(15deg);
        color: #e91e63;
    }

    75% {
        transform: scale(1.1) rotate(-8deg);
        color: #e91e63;
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.shake-anim {
    animation: shake-icon 0.6s ease-in-out;
}

/* Optimization for Desktop Margins */
@media (min-width: 1025px) {
    .container {
        max-width: 1420px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .main-header {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .page-header {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Reduce vertical section gaps (currently 80px) */
    .products-section,
    .faq-section,
    .promo-banner,
    .hero-content,
    .section-padding,
    .section-inner,
    [style*="padding: 80px"],
    [style*="padding: 80px 0"],
    [style*="margin-top: 80px"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        margin-top: 40px !important;
    }
}