@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary: #DC2626;
    --primary-hover: #B91C1C;
    --primary-light: #FEF2F2;
    --primary-gradient: linear-gradient(135deg, #DC2626 0%, #E7000B 50%, #C10007 100%);
    --secondary: #101828;
    --text-main: #0A0A0A;
    --text-muted: #4A5565;
    --text-light: #6A7282;
    --bg-light: #F9FAFB;
    --bg-alt: #F9FAFB;
    --border-color: #F3F4F6;
    --white: #FFFFFF;
    --shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-full: 9999px;
    --radius-lg: 24px;
    --container-width: 1216px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif !important;
}

html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] p,
html[lang="ar"] span,
html[lang="ar"] div,
html[lang="ar"] a,
html[lang="ar"] input,
html[lang="ar"] button,
html[lang="ar"] label,
html[lang="ar"] * {
    font-family: 'Tajawal', sans-serif !important;
}

html[lang="ar"] i[class^="ri-"],
html[lang="ar"] i[class*=" ri-"] {
    font-family: 'remixicon' !important;
}

html,
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

i {
    font-size: 20px;
}

.modal {
    z-index: 99999 !important;
}

/* Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 28px;
    /* Reduced from 36px */
    color: var(--text-main);
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    font-size: 20px;
    /* Reduced from 20px */
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 48px;
}

.show-desktop {
    display: flex !important;
}



/* navbar/Top Bar */
.navbar {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* Main Header / Hero Slider */
.header {
    position: relative;
    height: 96vh;
    overflow: hidden;
}

.swiper-hero {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top;
    transform: scaleX(-1);
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

html[lang="ar"] .header-overlay {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}



.header-content-box {
    width: 100%;
    display: flex;
    height: 100%;
    align-items: center;
}

.header-content {
    position: relative;
    z-index: 20;
    color: var(--white);
}

.header-badge {
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 400;
    display: inline-block;
    margin-bottom: 24px;
}

.header-title {
    font-size: 40px;
    /* Reduced from 72px */
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 24px;
    max-width: 600px;
}

.header-text {
    font-size: 16px;
    /* Reduced from 24px */
    color: #E5E7EB;
    margin-bottom: 40px;
    max-width: 500px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.header-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 30;
}

.swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: var(--radius-full) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1 !important;
    margin: 0 !important;
}

.swiper-pagination-bullet-active {
    width: 48px !important;
    background: var(--white) !important;
}

.swiper-pagination {
    bottom: 155px !important;
    display: flex;
    justify-content: center;
}

.header-divider {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 149px;
    background: url('../imgWeb/Vector1.webp') no-repeat center bottom;
    background-size: 100% 100%;
    z-index: 10;
    pointer-events: none;
}

/* Nav components */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--secondary);
    width: 40px;
}



.logo {
    display: inline-block;
}

.logo img {
    height: 55px;
    width: auto;
}


.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 10px 18px;
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link::after {
    display: none;
}


.nav-link.active {
    font-weight: 600;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-main);
}

.navbar-actions a,
.navbar-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    position: relative;
    padding: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-actions a:hover,
.navbar-actions button:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.navbar-actions .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(237, 28, 36, 0.2);
}


/* Feature Bar */
.feature-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}




.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #FEF2F2;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-info h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Banners */
.hero-banners {
    padding-top: 40px;
    position: relative;
    overflow: hidden;
}

.decoration-glow {
    position: absolute;
    width: 451.1px;
    height: 451.1px;
    background: radial-gradient(70.71% 70.71% at 50% 50%, #FFE5E9 0%, rgba(227, 24, 55, 0.04) 50%, rgba(0, 0, 0, 0) 100%);
    filter: blur(110px);
    border-radius: 139px 0px 318px;
    transform: rotate(39deg);
    z-index: -1;
    top: 100px;
    right: 100px;
}

.decoration-glow-2 {
    position: absolute;
    width: 554.85px;
    height: 554.85px;
    background: radial-gradient(70.71% 70.71% at 50% 50%, #E8F5F0 0%, rgba(231, 0, 11, 0.04) 50%, rgba(0, 0, 0, 0) 100%);
    filter: blur(115px);
    transform: rotate(41.5deg);
    z-index: -2;
    top: 50px;
    left: 100px;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.banner-card {
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-card:hover .banner-img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    color: var(--white);
}

.badge-limited {
    display: inline-block;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    width: fit-content;
}

.banner-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 12px;
}

.banner-text {
    font-size: 18px;
    color: #E5E7EB;
    margin-bottom: 24px;
}

.shop-now-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

/* Shop by Age */
.shop-by-age {
    position: relative;
    overflow: hidden;
}

.age-glow-1 {
    position: absolute;
    width: 451px;
    height: 451px;
    left: 50%;
    top: 200px;
    background: radial-gradient(70.71% 70.71% at 50% 50%, #FFE5E9 0%, rgb(227 24 55 / 30%) 50%, rgba(0, 0, 0, 0) 100%);
    filter: blur(110px);
    border-radius: 139px 0px 318px;
    transform: translateX(-50%) rotate(39deg);
    z-index: 0;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.age-card {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 50%, #FEF2F2 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.age-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.age-card h2 {
    font-size: 36px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 12px;
}

.age-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Product Section */
.product-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.product-section .container {
    padding-left: 5px !important;
    padding-right: 5px !important;
}


.section-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-navbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-navbar-left .icon {
    color: var(--primary);
    font-size: 26px;
}

.view-all {
    color: var(--primary);
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Specific grids for Shop and Offers when there is a sidebar */
.custom-shop-layout .product-grid,
.shop-layout .product-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Product Card */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    position: relative;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-badges {
    position: absolute;
    top: 16px;
    left: 7px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.badge {
    padding: 2px 8px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.badge-new {
    margin-top: 7px;
    background: var(--primary);
}

.badge-offer {
    background: #c4d600;
}

.badge-img {
    padding: 0 !important;
    box-shadow: none !important;
}

.product-badges2 {
    direction: ltr !important;
    left: 7px !important;
    right: 0 !important;
    top: 0 !important;
    align-items: flex-start !important;
}

.badge-discount {
    background: #00C950;
}

.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 7px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    color: var(--primary);
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.quick-add-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 80%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    opacity: 0;
}

.product-card:hover .quick-add-btn {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.price-current {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
}

.price-old {
    font-size: 14px;
    color: #99A1AF;
    text-decoration: line-through;
}

/* CTA Section */
.cta-section {
    padding-bottom: 100px !important;
}

.cta-card {
    height: 384px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, #DC2626 0%, #E7000B 50%, #C10007 100%);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgWeb/cta_bg.webp');
    background-size: cover;
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 600px;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 24px;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 500;
    display: inline-block;
}

/* Trust Section */
.trust-section {
    padding: 100px 0;
    background: linear-gradient(90deg, #101828 0%, #364153 100%);
    padding-bottom: 200px
}

.trust-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.trust-title {
    font-size: 36px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
}

.trust-text {
    font-size: 18px;
    line-height: 1.6;
    color: #D1D5DC;
    margin-bottom: 40px;
}

.trust-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-trust-white {
    background: var(--white);
    color: var(--secondary);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 16px;
    box-shadow: var(--shadow-xl);
    display: inline-block;
}

/* Footer */
.footer {
    background: #f5f9fe;
    padding: 80px 0 40px;
    color: #4A5565;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 24px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 440px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: #4A5565;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-col h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #4A5565;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #E5E7EB;
    padding-bottom: 50px !important;
    padding-top: 50px !important;
}

.newsletter-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    align-items: center;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 24px;
    background: var(--white);
    border: 1px solid #D1D5DC;
    border-radius: var(--radius-full);
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-subscribe {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-subscribe:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    border-top: 1px solid #E5E7EB;
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #4A5565;
    margin-bottom: 8px;
}

.developed-by {
    margin-bottom: 50px !important;
    margin-top: 15px;
}

.developed-by a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgb(39, 141, 198);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 6px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 99px;
    text-decoration: none;
}

.developed-by .dev-brand {
    font-weight: 700;
    color: rgb(39, 141, 198);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.developed-by a:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

.developed-by a:hover .dev-text {
    color: var(--text-main);
}

.developed-by a:hover .dev-brand {
    color: var(--primary);
}


/* Footer Bottom Divider Shape */
.footer-divider {
    background: url(../imgWeb/Vector1.webp) no-repeat center bottom;
    background-size: 100% 100%;
    position: absolute;
    top: -145px;
    left: 0;
    width: 100%;
    height: 149px;
    z-index: 1;
    pointer-events: none;
}

/* Shop Page Styles */
.shop-page {
    padding: 100px 0 100px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.shop-title-box h1 {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary);
}

.shop-title-box p {
    font-size: 16px;
    color: var(--text-muted);
}

.sort-dropdown {
    position: relative;
    cursor: pointer;
    background: #f9fafb;
    padding: 10px 16px;
    border: 1.27px solid #F3F4F6;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.sort-dropdown:hover {
    border-color: var(--primary);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 500;
    color: #364153;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1.27px solid #F3F4F6;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    min-width: 180px;
    list-style: none;
    padding: 8px;
}

.sort-dropdown.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    color: #364153;
    transition: all 0.2s;
}

.dropdown-menu li:hover {
    background: var(--bg-light);
    color: var(--primary);
}


/* Category Filter Bar */
.category-filter-bar {
    display: flex;
    gap: 12px;
}

.shop-header-actions {
    width: 75%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.btn-filter {
    border: none;
    padding: 10px 24px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 16px;
    color: #364153;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-filter.active {
    box-shadow: 0 1px 5px 1px #0000003b;
    background: var(--primary);
    color: var(--white);
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 32px;
}

.shop-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 32px;
}

.filter-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    margin-bottom: 80px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D1D5DC;
    border-radius: 10px;
    font-weight: 500;
    color: #364153;
    transition: all 0.3s ease;
}

.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-btn:hover:not(.active) {
    background: var(--bg-light);
}


/* --- Product Details Page --- */
.product-details-page {
    padding-top: 100px;
    margin-bottom: 120px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    padding: 31px 0;
    gap: 8px;
    /* Based on Figma 7.99px */
}

.breadcrumb a,
.breadcrumb i {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #6A7282;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.breadcrumb i {
    font-size: 16px;
    color: #6A7282;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span.current {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #101828;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 49% 49%;
    gap: 20px;
    align-items: start;
    margin-bottom: 80px;
    margin-top: 20px;
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-container {
    width: 100%;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.gallery-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.gallery-nav-btn {
    position: absolute;
    top: 49%;
    width: 36px;
    height: 36px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--white);
}

.gallery-nav-btn.prev {
    left: 16px;
}

.gallery-nav-btn.next {
    right: 16px;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 5px;
}

.thumbnail-list::-webkit-scrollbar {
    display: none;
}

.thumbnail-btn {
    flex: 0 0 80px;
    width: 80px;
    height: 96px;
    border-radius: 16px;
    border: 1.27px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1.2px;
    background: var(--border-color);
}

.thumbnail-btn.active {
    border-color: var(--primary);
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* Info Section */
.product-main-info {
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-age-range {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    /* Reduced from 16px */
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.price-large {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-main);
}

.price-old-large {
    font-size: 14px;
    color: #99A1AF;
    text-decoration: line-through;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00A63E;
    font-size: 16px;
    margin-bottom: 24px;
}

.product-description-text {
    font-size: 16px;
    line-height: 24px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 516px;
}

/* Selectors */
.option-group {
    margin-bottom: 24px;
}

.option-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
    color: var(--text-main);
}

.size-selector {
    display: flex;
    gap: 12px;
}

.size-btn {
    width: 70px;
    height: 50px;
    border: 1.27px solid #D1D5DC;
    border-radius: 16px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn.active,
.size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.color-selector {
    display: flex;
    gap: 12px;
}

.color-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1.27px solid #D1D5DC;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}


/* Qty & Actions */
.quantity-row {
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1.27px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-value {
    font-size: 16px;
    font-weight: 400;
    width: 20px;
    text-align: center;
    color: var(--text-main);
}

.action-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-add-cart-large {
    flex: 1;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart-large:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-wishlist-detail {
    width: 48px;
    height: 48px;
    border: 1.27px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist-detail:hover,
.btn-wishlist-detail.active {
    color: var(--primary);
    border-color: var(--primary);
    background: #fff;
}

.product-meta-box {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.meta-label {
    color: var(--text-muted);
}

.meta-value {
    color: var(--text-main);
}

/* Related Grid */
.related-header {
    margin-bottom: 32px;
}

.related-header h2 {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-main);
}

.related-section {
    overflow: hidden;
}

.related-grid {
    margin-bottom: 50px;
    display: flex !important;
    gap: 32px;
    overflow-x: auto !important;
    scroll-behavior: auto;
    padding: 10px 10px 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.related-grid:active {
    cursor: grabbing;
}

.related-grid::-webkit-scrollbar {
    display: none;
    /* Hide for Chrome/Safari */
}

.related-grid .product-card {
    flex: 0 0 calc(25% - 18px) !important;
    flex-shrink: 0 !important;
    min-width: 280px;
    pointer-events: none;
    /* Prevent interference during drag testing */
}

.related-grid .product-card * {
    pointer-events: auto;
    /* Re-enable for inner buttons */
}



/* Newsletter Refined */
.footer-newsletter-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1.27px solid var(--border-color);
    padding: 49px 0;
    gap: 40px;
}

.newsletter-text {
    max-width: 443px;
}

.newsletter-text h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 12px;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 22px;
}

.newsletter-form-container {
    flex: 1;
    max-width: 672px;
}



/* --- Contact Page --- */
.contact-hero {
    background: var(--primary-gradient);
    padding: 100px 0 160px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../imgWeb/cta_bg.webp");
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.contact-hero h1 {
    font-size: 36px;
    /* Reduced from 56px */
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-hero p {
    font-size: 16px;
    /* Reduced from 24px */
    line-height: 1.5;
    color: var(--primary-light);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.info-card {
    background: var(--white);
    border: 1.27px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 24px;
    padding: 32px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FFE2E2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.info-icon-box i {
    font-size: 24px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 8px;
}

.info-card .info-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 4px;
    display: block;
}

.info-card .info-sub {
    font-size: 16px;
    color: var(--text-light);
}

/* Contact Main Section */
.contact-page {
    padding-bottom: 100px;
}

.contact-main {
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-form-side h2,
.contact-info-side h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-main);
}

.contact-form-side p,
.contact-info-side p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #364153;
}

.form-input {
    background: #F3F3F5;
    border: 1.27px solid #D1D5DC;
    border-radius: 20px;
    padding: 14px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form-textarea {
    min-height: 170px;
    resize: vertical;
}

.btn-send {
    grid-column: span 2;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-send:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Map & Side info */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

.map-placeholder i {
    color: var(--primary);
}

.response-box {
    background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%);
    border: 1.27px solid #FFE2E2;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.response-box h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 16px;
}

.response-box p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    padding: 80px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 64px;
}

.faq-header h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
}

.faq-header p {
    font-size: 17px;
    color: var(--text-muted);
}

.faq-container {
    max-width: 832px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: var(--white);
    border: 1.27px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.faq-item h3 i {
    transition: transform 0.3s ease;
}

.faq-item.active h3 i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active p {
    max-height: 500px;
    opacity: 1;
    margin-top: 16px;
}

.faq-footer {
    text-align: center;
    margin-top: 60px;
}

.faq-footer p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.faq-footer a {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Story / Blog Page --- */
.story-page {
    padding-bottom: 100px;
}

.story-hero {
    background: var(--primary-gradient);
    padding: 80px 0;
    /* Unified padding */
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.story-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../imgWeb/cta_bg.webp");
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.story-hero .container {
    position: relative;
    z-index: 2;
}

.story-hero h1 {
    font-size: 36px;
    /* Reduced */
    font-weight: 500;
    margin-bottom: 20px;
}

.story-hero p {
    font-size: 16px;
    /* Reduced */
    line-height: 1.5;
    color: var(--primary-light);
    max-width: 600px;
    margin: 0 auto;
}

.filter-bar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    top: 80px;
    z-index: 20;
    margin-bottom: 60px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-filter-story {
    padding: 8px 24px;
    border-radius: var(--radius-full);
    border: none;
    background: #F3F4F6;
    color: #364153;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-story.active {
    background: #ED1C24;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 384px;
    gap: 32px;
    margin-bottom: 80px;
}

/* Sidebar */
.story-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;

}

.widget-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input-box {
    position: relative;
}

.search-input-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #99A1AF;
}

.search-field {
    width: 100%;
    padding: 14px 16px 14px 40px;
    background: #F9FAFB;
    border: 1.27px solid #E5E7EB;
    border-radius: 20px;
}

.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-post-item {
    padding-bottom: 12px;
    border-bottom: 1.27px solid #F3F4F6;
    transition: all 0.3s ease;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--secondary);
    line-height: 1.4;
}

.popular-post-item span {
    font-size: 16px;
    color: var(--text-light);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.3s ease;
    color: #364153;
    font-size: 14px;
}

.category-item:hover {
    background: #F3F4F6;
}

.cat-count {
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 16px;
    color: var(--text-muted);
}

.newsletter-widget {
    background: linear-gradient(135deg, #ED1C24 0%, #C4161E 100%) !important;
    color: var(--white);
}

.newsletter-widget .widget-title {
    color: var(--white);
}

.newsletter-widget p {
    font-size: 16px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-field {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    margin-bottom: 12px;
    color: var(--white);
}

.newsletter-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-subscribe-story {
    width: 100%;
    padding: 12px;
    background: var(--white);
    color: #ED1C24;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
}

/* Main Content */
.featured-post {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 400px 1fr;
}

.featured-img-box {
    position: relative;
    height: 100%;
}

.featured-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ED1C24;
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
}

.featured-content {
    display: flex;
    padding: 20px;
    flex-wrap: wrap;
}

.post-meta {
    display: flex;
    gap: 16px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.post-meta i {
    vertical-align: middle;
    margin-right: 4px;
}

.featured-content h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--secondary);
    line-height: 1.2;
}

.featured-content p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.read-more-link {
    color: #ED1C24;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Grid Posts */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.card-img-box {
    height: 192px;
    position: relative;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--secondary);
    line-height: 1.4;
}

.card-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Pagination */
.story-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.btn-page-story {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.27px solid #D1D5DC;
    border-radius: 10px;
    background: var(--white);
    color: #364153;
    font-weight: 500;
    cursor: pointer;
}

.btn-page-story.active {
    background: #ED1C24;
    color: var(--white);
    border-color: #ED1C24;
}

/* --- Page Specific Styles --- */

/* About Page */
.about-page {
    padding-bottom: 100px;
}

.about-hero {
    background: var(--primary-gradient);
    padding: 80px 0;
    /* Unified padding */
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.about-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../imgWeb/cta_bg.webp");
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 36px;
    /* Reduced */
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-hero-subtitle {
    font-size: 16px;
    /* Reduced */
    line-height: 1.5;
    color: var(--primary-light);
    max-width: 600px;
    margin: 0 auto;
}

.mission-section {
    padding: 100px 0;
    background: var(--white);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.mission-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 99px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
}

.mission-title {
    font-size: 28px;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 32px;
}

.mission-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.mission-image-container {
    position: relative;
}

.mission-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.badge-card {
    position: absolute;
    left: -40px;
    bottom: 40px;
    background: var(--primary);
    color: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 200px;
}

.badge-value {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.badge-label {
    font-size: 14px;
    opacity: 0.9;
}

.values-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #FFE2E2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 24px;
}

.value-icon-box i {
    font-size: 26px;
}

.value-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 16px;
}

.value-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

.stats-banner {
    background: var(--primary-gradient);
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #FFE2E2;
}

.cta-bottom {
    padding: 100px 0;
    text-align: center;
}

.cta-bottom h2 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 16px;
}

.cta-bottom p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Offers Page */
.offer-page,
.shop-page {
    padding-bottom: 200px;
}

.offers-hero {
    margin-top: 75px;
    background: var(--primary-gradient);
    padding: 50px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.offers-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgWeb/cta_bg.webp');
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.offers-hero-content {
    position: relative;
    z-index: 2;
}

.offers-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.offers-hero-title {
    font-size: 32px;
    /* Reduced from 50px */
    font-weight: 500;
    margin-bottom: 24px;
}

.offers-hero-subtitle {
    font-size: 16px;
    line-height: 1.4;
    color: var(--primary-light);
    max-width: 700px;
    margin: 0 auto;
}

.offers-highlight-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    border: 1px solid #FFE2E2;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.highlight-info h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 4px;
}

.highlight-info p {
    font-size: 16px;
    color: var(--text-muted);
}

.filter-section {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.filter-title-box h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.filter-title-box p {
    font-size: 16px;
    color: var(--text-muted);
}

.custom-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.sidebar-widget {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #D1D5DC;
    border-radius: 4px;
    background: var(--white);
    accent-color: var(--primary);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #D1D5DC;
    cursor: pointer;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.price-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-field span {
    font-size: 16px;
    color: #6B7280;
}

.price-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1.27px solid #F3F4F6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #1F2937;
    outline: none;
}

.price-divider {
    margin-top: 20px;
    color: #D1D5DC;
}

/* Dual Range Slider Styles */
.price-range-slider {
    height: 6px;
    position: relative;
    background: #F3F4F6;
    border-radius: 5px;
}

.price-range-slider input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: -1px;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.price-range-slider input::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary);
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.color-btn.active {
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 2px #fff;
    transform: scale(1.1);
}

.color-btn.active::after {
    content: '\eb7a';
    font-family: 'remixicon' !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
}


/* Account Section */
.account-page {
    background-color: var(--white);
    padding-top: 150px;
    padding-bottom: 200px !important;
}

.account-hero {
    margin-top: 75px;
    background: var(--primary-gradient);
    padding: 50px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-bottom: -60px;
}

.account-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../imgWeb/cta_bg.webp");
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.account-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.account-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    font-size: 30px;
}

.account-hero-title {
    font-size: 32px;
    /* Reduced from 50px */
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

.account-hero-subtitle {
    font-size: 16px;
    color: var(--primary-light);
    margin: 0;
}

.account-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    position: relative;
    z-index: 3;
}

.account-sidebar {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.user-profile-brief {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.avatar-mini {
    width: 56px;
    height: 56px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    box-shadow: var(--shadow-md);
}

.user-info h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
}

.user-info p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #364153;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-item i {
    font-size: 17px;
}

.menu-item.active {
    background: var(--primary);
    color: var(--white);
}

.menu-item:not(.active):hover {
    background: var(--bg-light);
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.content-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    margin-bottom: 32px;
}

.card-header h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--secondary);
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #99A1AF;
    font-size: 17px;
}

.account-input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 50px;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    font-size: 16px;
    color: var(--text-main);
}

.account-input::placeholder {
    color: rgba(10, 10, 10, 0.4);
}

.btn-account-save {
    background: var(--primary);
    color: var(--white);
    padding: 16px 48px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: fit-content;
    align-self: flex-end;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.btn-account-save:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.password-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background-color: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

/* Invoice Details */
.invoice-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.invoice-header-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.invoice-id-badge {
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 12px;
    font-weight: 600;
    color: var(--secondary);
}

.invoice-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.info-block h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.info-block p {
    font-size: 16px;
    color: var(--secondary);
    line-height: 1.6;
}

.invoice-table-container {
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th {
    background: var(--bg-light);
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.invoice-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--secondary);
}

.product-item-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-item-detail img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.invoice-summary-detail {
    width: 350px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-muted);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    padding-top: 16px;
    border-top: 1.27px solid var(--border-color);
}

.invoice-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.order-card:hover {
    border-color: var(--primary);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-id-group {
    display: flex;
    flex-direction: column;
}

.order-label {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.order-value {
    font-size: 17px;
    font-weight: 900;
    color: var(--text-main);
}

.status-badge {
    padding: 6px 16px;
    background: #ECFDF5;
    color: #008236;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.total .order-value {
    color: var(--primary);
}

/* Global Utility Classes */
.nav-action-active {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.nav-action-active i {
    font-size: 17px;
}

.mb-24 {
    margin-bottom: 24px;
}

.fs-16 {
    font-size: 16px !important;
}


/* Layout Utilities */
.vh-80 {
    min-height: 80vh !important;
}

.flex-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.w-100 {
    width: 100% !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-24 {
    margin-top: 24px !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.max-w-600 {
    max-width: 600px !important;
}

.py-60 {
    padding: 60px 0 !important;
}

.color-primary {
    color: var(--primary) !important;
}

.fw-600 {
    font-weight: 500 !important;
}

.fs-36 {
    font-size: 28px !important;
}

.color-text-muted {
    color: var(--text-muted) !important;
}

/* Responsive Navbar Styles */
.menu-toggle {
    display: none;
    font-size: 22px;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

/* --- Story Details Page --- */
.story-details-main {
    padding-top: 100px;
    padding-bottom: 200px;
}

.story-details-breadcrumbs {
    margin-bottom: 24px;
}

.breadcrumb-link {
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb-separator {
    font-size: 14px;
    color: var(--border-color);
}

.breadcrumb-current {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.story-detail-header {
    margin-bottom: 32px;
}

.story-detail-badge {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
}

.story-detail-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.25;
    margin-bottom: 20px;
}

.story-detail-meta {
    margin-bottom: 0;
}

/* Note: `.story-main-img` with `border-radius: 20px; box-shadow: var(--shadow-sm);` might already exist, so I'll just refine it for details. */

.story-main-img-detail {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.story-main-img-detail img {
    width: 100%;
    height: auto;
    display: block;
}

.story-text-content-detail {
    font-size: 17px;
    line-height: 1.8;
    color: #4B5563;
}

.story-text-content-detail p {
    margin-bottom: 24px;
}

.story-text-content-detail h2 {
    font-size: 24px;
    color: var(--secondary);
    margin: 40px 0 20px;
    font-weight: 500;
}

.story-detail-blockquote {
    background: #F9FAFB;
    border-left: 4px solid #ED1C24;
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    font-style: italic;
    color: var(--secondary);
}

.story-footer-detail {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1.27px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tag-item {
    padding: 6px 16px;
    background: #F3F4F6;
    border-radius: 99px;
    color: #4B5563;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #E5E7EB;
}

.share-post-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-icon-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.27px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    transition: all 0.3s;
    text-decoration: none;
}

.share-icon-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.story-nav-container {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.story-nav-btn {
    padding: 24px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.story-nav-btn:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.story-nav-btn.next {
    justify-content: flex-end;
    text-align: right;
}

.story-nav-icon {
    font-size: 24px;
    color: var(--primary);
}

.story-nav-text {
    flex: 1;
}

.story-nav-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.story-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    display: block;
    line-height: 1.4;
    transition: color 0.3s;
}

.story-nav-btn:hover .story-nav-title {
    color: var(--primary);
}


.comments-area-detail {
    margin-top: 64px;
}

.comments-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 32px;
}

.comments-list-detail {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.comment-item-detail {
    display: flex;
    gap: 20px;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.comment-content-detail {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
}

.comment-date {
    font-size: 13px;
    color: var(--text-light);
}

.comment-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.reply-link-detail {
    font-size: 14px;
    font-weight: 500;
    color: #ED1C24;
    text-decoration: none;
}

.leave-comment-detail {
    background: #F9FAFB;
    padding: 40px;
    border-radius: 24px;
}

.leave-comment-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 24px;
}

.comment-form-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form-detail .full-width {
    grid-column: span 2;
}

.comment-input-detail {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1.27px solid #E5E7EB;
    background: var(--white);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-input-detail:focus {
    border-color: var(--primary);
}

.comment-textarea-detail {
    resize: vertical;
    min-height: 120px;
}

.popular-post-sidebar-item {
    display: block;
    text-decoration: none;
}

/* Footer Newsletter Styles */
.footer-newsletter-row {
    display: flex;
    border-top: 1.27px solid var(--border-color);
    padding: 49px 0;
    gap: 40px;
    align-items: flex-start;
}



.newsletter-text h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 12px;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 22px;
}

.newsletter-input {
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--primary);
}

/* Checkout Page */
.checkout-page {
    padding-top: 150px;
    padding-bottom: 100px;
    margin-bottom: 80px;
    background-color: #FDFDFD;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: flex-start;
}

.checkout-section {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.checkout-section-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-section-title i {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.delivery-card {
    border: 1.27px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.delivery-card:hover {
    border-color: var(--primary);
    background: #FFFAFA;
}

.delivery-card.active {
    border-color: var(--primary);
    background: #FFFAFA;
    box-shadow: 0 0 0 1px var(--primary);
}

.delivery-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-price {
    font-weight: 600;
    color: var(--secondary);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-option {
    border: 1.27px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary);
    background: #FFFAFA;
}

.payment-option.active {
    border-color: var(--primary);
    background: #FFFAFA;
    box-shadow: 0 0 0 1px var(--primary);
}

.payment-option-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary);
}

/* Order Summary Sidebar */
.order-summary-sidebar {
    position: sticky;
    top: 100px;
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar for list */
.summary-items-list::-webkit-scrollbar {
    width: 4px;
}

.summary-items-list::-webkit-scrollbar-thumb {
    background: #D1D5DC;
    border-radius: 10px;
}

.summary-item-card {
    display: flex;
    gap: 16px;
}

.summary-item-card img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.summary-item-info {
    flex: 1;
}

.summary-item-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 4px;
}

.summary-item-price {
    font-size: 14px;
    color: var(--text-muted);
}

.promo-code-box {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.promo-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.27px solid #D1D5DC;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: var(--white);
}

.btn-apply-promo {
    padding: 0 20px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-apply-promo:hover {
    background: var(--text-main);
}

.summary-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-muted);
}

.total-row.grand-total {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 8px;
}

.btn-place-order {
    width: 100%;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-place-order:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Register Grid */
.register-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.max-w-700 {
    max-width: 700px !important;
}

/* Modern Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Softer Dark Slate */
    backdrop-filter: blur(12px);
    /* Slightly more blur for search */
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-modal-container {
    width: 100%;
    max-width: 800px;
    margin-top: 15vh;
    padding: 0 24px;
    position: relative;
    transform: translateY(40px);
    /* Smaller movement for softness */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal.active .search-modal-container {
    transform: translateY(0);
}

.search-close-btn {
    position: absolute;
    top: -80px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
}

.search-close-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
    box-shadow: var(--shadow-md);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 60px;
}

.search-input-wrapper i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: var(--primary);
}

.search-main-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2.5px solid #E5E7EB;
    padding: 24px 0 24px 60px;
    font-size: 28px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    color: var(--white);
    outline: none;
    transition: border-color 0.4s ease;
}

.search-main-input:focus {
    border-color: var(--primary);
}

.search-main-input::placeholder {
    color: #ffffff47 !important;
}

.search-suggestions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-block h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: white;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    font-weight: 600;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-light);
    border-radius: 16px;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.suggestion-link i {
    font-size: 18px;
    color: var(--text-light);
}

.suggestion-link:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
    color: var(--primary);
}

.suggestion-link:hover i {
    color: var(--primary);
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trending-tag {
    padding: 10px 24px;
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.trending-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3.17px);
}

/* Cart Sidebar (Drawer) */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.4s ease;
    overflow: hidden;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--white);
    z-index: 4001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 25px 0 60px rgba(0, 0, 0, 0.15);
    border-radius: 0 32px 32px 0;
}

.cart-overlay.active .cart-drawer {
    transform: translateX(0);
}


.cart-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-header h2 span {
    font-size: 14px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 99px;
}

.close-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: var(--primary);
    color: var(--white);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item {
    padding-bottom: 10px;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    gap: 15px;
    position: relative;
}

.cart-item-img {
    width: 90px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item-price {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.cart-quantity-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    width: fit-content;
    padding: 4px 8px;
    border-radius: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
}

.remove-item {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: var(--primary);
}

.cart-footer {
    padding: 32px;
    border-top: 1px solid #e7e7e7;
    background: var(--white);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-muted);
}

.summary-line.total {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    padding-top: 12px;
    border-top: 1px solid #e7e7e7;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-view-cart {
    width: 100%;
    padding: 14px;
    background: var(--bg-light);
    color: var(--secondary);
    text-align: center;
    border-radius: 12px;
    font-weight: 500;
}

/* Wishlist Sidebar */
.wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.4s ease;
    overflow: hidden;
}

.wishlist-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wishlist-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 420px;
    height: 100%;
    background: var(--white);
    z-index: 4001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 25px 0 60px rgba(0, 0, 0, 0.15);
    border-radius: 0 32px 32px 0;
}

.wishlist-overlay.active .wishlist-drawer {
    transform: translateX(0);
}


.wishlist-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.wishlist-header h2 span {
    font-size: 14px;
    background: #FFF0F0;
    color: #FF4D4D;
    padding: 2px 10px;
    border-radius: 99px;
}

.close-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-wishlist:hover {
    background: var(--primary);
    color: var(--white);
}

.wishlist-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.wishlist-items-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wishlist-item {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 24px;
    border-bottom: 1px solid #e7e7e7;
}

.wishlist-item-img {
    width: 90px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
}

.wishlist-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.wishlist-item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
}

.wishlist-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.btn-add-to-cart-small {
    padding: 10px 16px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-add-to-cart-small:hover {
    background: var(--primary);
}

.remove-wishlist {
    position: absolute;
    top: 4px;
    right: 0;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.remove-wishlist:hover {
    color: #FF4D4D;
}

/* Login Sidebar */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.4s ease;
    overflow: hidden;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.login-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 420px;
    height: 100%;
    background: var(--white);
    z-index: 4001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 25px 0 60px rgba(0, 0, 0, 0.15);
    border-radius: 0 32px 32px 0;
}

.login-overlay.active .login-drawer {
    transform: translateX(0);
}


.login-header {
    padding: 40px 48px 24px;
    text-align: center;
    position: relative;
}

.close-login {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-login:hover {
    background: var(--primary);
    color: var(--white);
}

.login-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.login-form-container {
    flex: 1;
    padding: 0 48px;
    overflow-y: auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
}

.login-input-group input {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-input-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.login-footer-links {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 4px;
}

.login-footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    user-select: none;
}

.remember-me input {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    accent-color: var(--primary);
}

.social-login-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-login-title::before,
.social-login-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-buttons {
    display: flex;
    gap: 16px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--bg-light);
    border-color: var(--secondary);
}

.login-bottom-cta {
    padding: 32px 48px 48px;
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
}

.login-bottom-cta a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

/* Active Filters Bar */
.active-filters-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--bg-light);
    flex-wrap: wrap;
    gap: 16px;
}

.active-filters-bar.visible {
    display: flex;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.filter-tag:hover {
    background: var(--white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.filter-tag i {
    cursor: pointer;
    font-size: 18px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.filter-tag i:hover {
    color: var(--primary);
}

.btn-clear-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 8px;
}

.btn-clear-all:hover {
    background: var(--primary-light);
}

/* Category Sidebar (Drawer) */
.category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.4s ease;
    overflow: hidden;
}

.category-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.category-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 420px;
    height: 100%;
    background: var(--white);
    z-index: 4001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 25px 0 60px rgba(0, 0, 0, 0.15);
    border-radius: 0 32px 32px 0;
}

.category-overlay.active .category-drawer {
    transform: translateX(0);
}



.category-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
}

.close-category {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

/* Nested Accordion Styles */
.category-nav-list {
    display: flex;
    flex-direction: column;
}

.main-cat-item {
    border-bottom: 1px solid #e7e7e7;
}

.main-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid transparent;
}

.main-cat-header:hover {
    color: var(--primary);
    background: var(--bg-light);
    border-left-color: var(--primary-light);
}

.main-cat-header i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.main-cat-item.active>.main-cat-header {
    color: var(--primary);
    background: var(--primary-light);
    border-left-color: var(--primary);
}

.main-cat-item.active>.main-cat-header i {
    transform: rotate(90deg);
}

/* Sub-categories (Second Level) */
.sub-cat-list {
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-cat-item.active .sub-cat-list {
    max-height: 1500px;
}

.sub-cat-item {
    border-bottom: 1px solid #f2f2f2;
}

.sub-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px 14px 48px;
    /* Extra left padding for hierarchy */
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}

.sub-cat-header:hover {
    color: var(--primary);
}

.sub-cat-header i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.sub-cat-item.active>.sub-cat-header {
    color: var(--primary);
    font-weight: 600;
}

.sub-cat-item.active>.sub-cat-header i {
    transform: rotate(180deg);
}

/* Age groups (Third Level) */
.age-group-list {
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    transition: max-height 0.4s ease;
}

.sub-cat-item.active .age-group-list {
    max-height: 300px;
    padding-bottom: 10px;
}

.age-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px 12px 64px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.age-link::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.age-link:hover {
    color: var(--primary);
    padding-left: 68px;
    background: var(--white);
}

.age-link:hover::before {
    background: var(--primary);
    transform: scale(1.4);
}

.category-footer {
    padding: 32px;
    border-top: 1px solid var(--border-color);
}

/* Language Sidebar (Drawer) */
.language-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    /* Softer Dark Slate */
    backdrop-filter: blur(8px);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.language-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.language-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 420px;
    height: 100%;
    background: var(--white);
    z-index: 4001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 25px 0 60px rgba(0, 0, 0, 0.15);
    border-radius: 0 32px 32px 0;
}

.language-overlay.active .language-drawer {
    transform: translateX(0);
}

.language-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
}

.close-language {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-option:hover,
.lang-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.lang-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-flag {
    font-size: 24px;
}

.lang-name {
    font-weight: 500;
    color: var(--secondary);
}

.lang-check {
    color: var(--primary);
    font-size: 20px;
    opacity: 0;
}

.lang-option.active .lang-check {
    opacity: 1;
}

/* Mobile Menu Sidebar (Hamburger) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    /* Softer Dark Slate */
    backdrop-filter: blur(8px);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 4001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 25px 0 60px rgba(0, 0, 0, 0.15);
    border-radius: 0 32px 32px 0;
}

.mobile-menu-overlay.active .mobile-menu-drawer {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header img {
    height: 45px;
}

.close-mobile-menu {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--secondary);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #e7e7e7;
    transition: all 0.3s ease;
}

.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-menu-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.mobile-account-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
    text-decoration: none;
}

.mobile-account-btn i {
    font-size: 22px;
    color: var(--primary);
}


/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-radius: 25px;
    z-index: 5000;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-bottom-nav.nav-hidden {
    transform: translateX(-50%) translateY(110px);
}

.nav-item {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #364153;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 50px;
    height: 50px;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active {
    position: relative;
    top: -20px;
    width: 50px;
    height: 50px;
    background: #E7000B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 10px 20px rgba(231, 0, 11, 0.3);
    border: 4px solid var(--white);
    transition: all 0.3s ease;
}

.nav-item-home:active {
    transform: scale(0.9);
}

.nav-item-home i {
    font-size: 22px;
    color: var(--white);
}

.nav-item .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.main-image-container {
    height: 500px;
}

body.swal2-toast-shown .swal2-container {
    height: fit-content;
    z-index: 9999999999;
}

@media (min-width: 768px) {
    .register-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Size Guide Page */
.size-guide-page .mission-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.size-chart-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    flex: 1.2;
    border: 1px solid var(--border-color);
}

.size-chart-container h3 {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 24px;
    font-weight: 600;
}

.size-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.size-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.size-table th {
    background: var(--primary-light);
    color: var(--secondary);
    font-weight: 600;
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid var(--primary);
}

.size-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    transition: background 0.3s ease;
}

.size-table tr:last-child td {
    border-bottom: none;
}

.size-table tr:hover td {
    background: var(--bg-light);
}

.size-guide-info {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.size-guide-info i {
    font-size: 18px;
    color: var(--primary);
}

.guide-steps .feature-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.guide-steps .feature-item:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}


/* Size Guide Responsive & Updated Layout */
.size-guide-page .mission-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.mission-content {
    flex: 1;
    min-width: 300px;
}

.size-chart-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    flex: 0 0 60%;
    /* Occupy 60% on large screens */
}

@media (max-width: 1200px) {
    .size-chart-container {
        flex: 1;
        /* Allow to grow if screen is smaller but not yet mobile */
    }
}

@media (max-width: 991px) {
    .size-guide-page .mission-grid {
        flex-direction: column;
    }

    .size-chart-container {
        flex: 0 0 100%;
        width: 100%;
        padding: 20px;
    }

    .size-table th,
    .size-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .size-chart-container h3 {
        font-size: 20px;
    }

    .size-table-wrapper {
        margin: 0 -10px;
        /* Bleed out slightly for more space */
        padding: 0 10px;
    }
}

/* Invoice Details Responsive - Forced Overrides */
@media (max-width: 768px) {

    .newsletter-form {
        flex-direction: column;
        padding: 0 15px;
    }

    .newsletter-input,
    .btn-subscribe {
        width: 100%;
        text-align: center;
    }

    .invoice-card {
        padding: 15px !important;
        width: 100% !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .invoice-table-container {
        border: none !important;
        overflow: visible !important;
    }

    .invoice-table,
    .invoice-table thead,
    .invoice-table tbody,
    .invoice-table th,
    .invoice-table td,
    .invoice-table tr {
        display: block !important;
        width: 100% !important;
    }

    .invoice-table thead {
        display: none !important;
        /* Hide headers on mobile */
    }

    .invoice-table tr {
        margin-bottom: 20px !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        padding: 15px !important;
        background: var(--bg-light) !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .invoice-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px dashed var(--border-color) !important;
        text-align: right !important;
    }

    /* Column Distribution */
    .invoice-table td:nth-child(1) {
        width: 100% !important;
    }

    .invoice-table td:nth-child(2),
    .invoice-table td:nth-child(3) {
        width: 50% !important;
    }

    .invoice-table td:nth-child(2) {
        padding: 0 10px !important;
    }

    .invoice-table td:nth-child(3) {
        padding-left: 10px !important;
    }

    .invoice-table td:nth-child(4) {
        width: 100% !important;
        border-bottom: none !important;
    }

    /* Add labels for mobile */
    .invoice-table td::before {
        content: attr(data-label);
        font-weight: 700 !important;
        color: var(--secondary) !important;
        text-align: left !important;
    }

    .product-item-detail {
        flex-direction: row !important;
        gap: 10px !important;
    }

    .invoice-summary-detail {
        width: 100% !important;
        margin-top: 25px !important;
        padding: 15px !important;
        background: var(--bg-light) !important;
        border-radius: 12px !important;
    }

    .invoice-header-detail {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .invoice-actions {
        flex-direction: column !important;
    }

    .invoice-actions * {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Mobile Responsiveness Fixes for Extra Small Screens (under 400px) */
@media (max-width: 400px) {
    .checkout-page {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
        margin-bottom: 40px !important;
    }

    .checkout-section {
        padding: 20px 15px !important;
        border-radius: 16px !important;
        margin-bottom: 20px !important;
    }

    .checkout-section-title {
        font-size: 17px !important;
        margin-bottom: 20px !important;
        gap: 8px !important;
    }

    .checkout-section-title i {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }

    .form-grid {
        gap: 12px !important;
    }

    .account-input,
    .account-form input,
    select.account-input {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    .delivery-card,
    .payment-option {
        padding: 12px !important;
        gap: 10px !important;
    }

    .promo-code-box {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .promo-input,
    .btn-apply-promo {
        width: 100% !important;
        border-radius: 10px !important;
    }

    .summary-item-card {
        gap: 10px !important;
        padding-bottom: 15px !important;
    }

    .summary-item-card img {
        width: 48px !important;
        height: 48px !important;
    }

    .summary-item-name {
        font-size: 13px !important;
    }

    .summary-item-price {
        font-size: 12px !important;
    }

    .order-summary-sidebar {
        padding: 20px 15px !important;
        border-radius: 16px !important;
    }
}

/* User Profile Modal Styles */
.user-profile-container {
    padding: 24px;
}

.user-info-card {
    background: var(--bg-light);
    padding: 25px 20px;
    border-radius: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.user-avatar-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #000000b3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.user-display-name {
    font-size: 19px;
    color: var(--secondary);
    margin-bottom: 5px;
    font-weight: 600;
}

.user-display-email {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.stat-label i {
    color: var(--primary);
    font-size: 20px;
}


.profile-menu-item,
.mobile-account-btn {
    width: 100%;
    border: none;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 24px;
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.profile-menu-item:hover,
.mobile-account-btn:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.profile-menu-icon {
    width: 38px;
    height: 38px;
    background: #F0F9FF;
    color: #0EA5E9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout-sidebar {
    width: 100%;
    padding: 15px;
    background: #FEF2F2;
    color: #EF4444;
    border: 1px solid #FEE2E2;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.btn-logout-sidebar:hover {
    background: #EF4444;
    color: #fff;
}

/* Checkout Page Styles */
.guest-notice-alert {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.guest-notice-info {
    flex: 1;
}

.guest-notice-title {
    color: #92400E;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.guest-notice-desc {
    color: #B45309;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.readonly-input {
    background-color: #F5F5F5 !important;
    cursor: not-allowed !important;
}

.checkout-account-header {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.checkout-sub-title {
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.checkout-sub-title i {
    color: var(--primary);
    font-size: 18px;
}

.order-notes-area {
    height: 100px;
    padding: 15px;
    resize: none;
}

.applied-coupon-info {
    display: none;
    margin: 10px 0;
    padding: 10px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    align-items: center;
    justify-content: space-between;
}

.applied-coupon-text {
    color: #16A34A;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-remove-coupon {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.coupon-row-text {
    color: #16A34A !important;
}

/* Quick Add Modal Styles */
.quick-add-modal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.quick-add-container {
    background: var(--white);
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    position: relative;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: modalSlideUp 0.4s ease forwards;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-add-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-add-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.product-quick-info {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.quick-add-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.quick-add-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.quick-add-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.quick-selection-block {
    margin-bottom: 20px;
}

.selection-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
}

.size-options-grid {
    display: flex;
    flex-wrap: wrap;
}

.size-opt {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 5px;
    margin-right: 5px;
    padding: 3px;
}


.size-opt:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.size-opt.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}

.size-opt.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #eee;
    color: #ccc;
}

.color-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.color-opt {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.color-opt:hover:not(.disabled) {
    transform: scale(1.15);
    box-shadow: 0 0 0 1px var(--primary);
}

.color-opt.selected {
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.1);
}

.color-opt.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.quick-qty-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#quickQtyInput {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 16px;
}

/* ==========================================================================
   SweetAlert2 Unified Toast Stylings
   ========================================================================== */

.swal2-container.swal2-top-end>.swal2-toast {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-family: 'Inter', 'Tajawal', sans-serif !important;
    background: #fff !important;
    color: var(--text-dark) !important;
    width: auto !important;
    max-width: 400px !important;
    margin-top: 65px !important;
    display: inline-flex !important;
    border: 1px solid #f1f5f9 !important;
}

[dir="rtl"] .swal2-container.swal2-top-end>.swal2-toast {
    margin-right: 20px !important;
    margin-left: auto !important;
}

[dir="ltr"] .swal2-container.swal2-top-end>.swal2-toast {
    margin-left: 20px !important;
    margin-right: auto !important;
}

.swal2-toast .swal2-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-align: start !important;
    align-self: center !important;
}

.swal2-toast .swal2-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    margin: 0 12px 0 0 !important;
    border: none !important;
}

[dir="rtl"] .swal2-toast .swal2-icon {
    margin: 0 0 0 12px !important;
}

/* --- WhatsApp Chat Widget --- */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 9999;
}

[dir="rtl"] .whatsapp-chat-widget {
    right: auto;
    left: 30px;
}

.whatsapp-chat-bubble {
    width: 50px;
    height: 50px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-chat-bubble:hover {
    transform: scale(1.1);
}

.whatsapp-chat-bubble i {
    font-size: 30px;
}

.whatsapp-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: slideInUp 0.3s ease;
}

[dir="rtl"] .whatsapp-chat-window {
    right: auto;
    left: 0;
}

.whatsapp-chat-window.active {
    display: flex;
}

.whatsapp-chat-header {
    background: #075E54;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-chat-header-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.whatsapp-chat-header-info h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.whatsapp-chat-header-info p {
    margin: 0;
    font-size: 11px;
    opacity: 0.8;
}

.whatsapp-chat-body {
    background: #e5ddd5;
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-message {
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.whatsapp-message::before {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    border-style: solid;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}

[dir="rtl"] .whatsapp-message::before {
    right: auto;
    left: -8px;
    border-width: 0 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}

.whatsapp-message-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.4;
}

.whatsapp-message-time {
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.whatsapp-chat-footer {
    padding: 10px;
    background: #f0f0f0;
}

.whatsapp-input-group {
    display: flex;
    gap: 8px;
}

.whatsapp-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.whatsapp-input:focus {
    border-color: #25D366;
}

.whatsapp-send-btn {
    background: #25D366;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}

.whatsapp-send-btn:hover {
    background: #128C7E;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/************ min width ************/
@media (max-width: 1200px) {
    .features-grid {
        gap: 20px;
    }


}

@media (max-width: 991px) {
    .checkout-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .checkout-forms {
        order: 1 !important;
        width: 100%;
    }

    .order-summary-sidebar {
        order: 2 !important;
        position: static !important;
        width: 100%;
        margin-top: 20px;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        display: none;
    }

    .product-grid,
    .shop-layout .product-grid,
    .custom-shop-layout .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }

    .related-grid .product-card {
        flex: 0 0 calc(33.333% - 16px);
        min-width: 250px;
    }

    .story-layout {
        grid-template-columns: 1fr;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-img-box {
        height: 250px;
    }

    .about-hero-title,
    .offers-hero-title,
    .account-hero-title {
        font-size: 36px;
    }

    .mission-grid,
    .values-grid,
    .stats-grid,
    .custom-shop-layout,
    .account-layout {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .order-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 40px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 24px !important;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .nav-link {
        font-size: 18px;
        width: 100%;
        text-align: center;
        padding: 12px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links .nav-link:last-child {
        border-bottom: none;
    }

    /* Overlay for mobile menu */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-sidebar {
        position: static;
        order: -1;
    }

    .product-details-grid {
        grid-template-columns: 100%;
    }

    .show-desktop {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        transform: translateX(5%);
    }

    .navbar-actions {
        order: 3;
        flex: 1;
        justify-content: flex-end;
    }

    .desktop-only {
        display: none !important;
    }

    .nav-links {
        display: none !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .shop-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .category-filter-bar {
        width: 100%;
    }

    .sort-dropdown {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .filter-item {
        margin-bottom: 0;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-main {
        grid-template-columns: 1fr;
    }

    .contact-hero h1 {
        font-size: 36px;
    }

    .category-filter-bar {
        display: flex !important;
        overflow-x: auto !important;
        padding-bottom: 5px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-right: -15px;
        padding-right: 15px;
    }

    .category-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .btn-filter {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 20px !important;
    }

    .sidebar-widget {
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 10px;
        padding: 10px;
    }

    .sidebar-widget:last-child {
        border-bottom: none;
    }

    .widget-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0 !important;
        font-size: 17px;
    }

    .widget-title::after {
        content: '\ea4e';
        font-family: 'remixicon';
        font-size: 20px;
        color: var(--text-light);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-widget.active .widget-title::after {
        transform: rotate(180deg);
        color: var(--primary);
    }

    .filter-list,
    .color-grid,
    .price-slider-container {
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        margin-top: 0;
    }

    .sidebar-widget.active .filter-list,
    .sidebar-widget.active .color-grid,
    .sidebar-widget.active .price-slider-container {
        max-height: 1000px;
        opacity: 1;
        margin-top: 20px;
        padding: 10px 5px;
    }


    .mobile-bottom-nav {
        display: flex;
    }
}

@media (max-width: 768px) {
    .cart-content {
        padding: 24px 10px;
    }

    .account-hero {
        margin-top: 60px;
    }

    .feature-item {
        gap: 0px;
    }

    .features-grid {
        gap: 8px;
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }

    .product-info {
        padding: 10px;
    }

    .wishlist-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .wishlist-btn i {
        font-size: 17px;
    }

    .product-grid,
    .shop-layout .product-grid,
    .custom-shop-layout .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    /* .product-img-wrapper {
        height: 315px;
    } */

    .related-grid {
        gap: 16px;
    }

    .related-grid .product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 180px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-hero h1 {
        font-size: 36px;
    }

    .filter-bar {
        overflow-x: auto;
    }

    .filter-container {
        justify-content: flex-start;
        padding: 0 16px;
    }

    .invoice-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .quick-add-btn {
        transform: translateX(-50%) translateY(10px);
        opacity: 1;
        padding: 5px;
        font-size: 14px;
    }

    .search-suggestions-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .search-main-input {
        font-size: 26px;
    }

    .search-input-wrapper i {
        font-size: 26px;
    }

    .search-modal-container {
        margin-top: 10vh;
    }

    .header-divider {
        width: 150%;
        height: 100px;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-divider {
        width: 150%;
        height: 100px;
        top: -98px;
        left: 50%;
        transform: translateX(-50%);
    }

    .age-glow-1 {
        top: auto;
        bottom: -10%;
    }

    .age-card {
        height: 120px;
    }

    .story-nav-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .story-nav-btn {
        padding: 16px;
    }

    .story-nav-btn.next {
        flex-direction: row-reverse !important;
    }

    .story-nav-title {
        font-size: 16px;
    }
}

@media (max-width: 640px) {

    .product-grid,
    .shop-layout .product-grid,
    .custom-shop-layout .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px 10px;
    }

    .age-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .btn-send {
        grid-column: span 1;
    }

    .badge-card {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: -30px;
        margin-left: auto;
        margin-right: auto;
    }

    .order-details-grid {
        grid-template-columns: 1fr;
    }

    .delivery-options {
        grid-template-columns: 1fr;
    }

    .checkout-section {
        padding: 24px;
    }

    .product-card:hover {
        transform: translateY(0px);
        box-shadow: none;
    }
}

@media (max-width: 480px) {

    .whatsapp-chat-bubble {
        width: 40px;
        height: 40px;
    }

    .whatsapp-chat-bubble i {
        font-size: 25px;
    }

    .whatsapp-chat-window {
        width: calc(85vw - 40px);
        bottom: 50px;
    }

    .whatsapp-chat-widget {
        bottom: 65px;
        right: 20px;
    }

    [dir="rtl"] .whatsapp-chat-widget {
        left: 20px;
    }

    .main-image-container {
        height: 350px;
    }

    .quick-add-container {
        max-width: 95% !important;
    }

    .shop-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-filter-bar {
        width: 100%;
        padding-bottom: 4px;
    }

    .sort-dropdown {
        width: 100%;
        justify-content: flex-end;
    }

    .container {
        padding: 0 10px;
    }

    .related-grid .product-card {
        flex: 0 0 200px;
    }

    .logo img {
        height: 40px !important;
    }

    .navbar-actions {
        gap: 12px;
    }

    .cart-drawer {
        max-width: 85%;
    }

    .swal2-container.swal2-top-end>.swal2-toast {
        margin-top: 15px !important;
        margin-right: 15px !important;
        margin-left: 15px !important;
        max-width: calc(100vw - 30px) !important;
        width: auto !important;
    }
}