@font-face {
    font-family: 'Droid Kufi Arabic';
    src: url('../fonts/Droid.Arabic.Kufi_DownloadSoftware.iR_.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Palette */
    --primary-gold: #D4AF37;
    --primary-gold-hover: #B89028;
    --secondary-black: #121212;
    --bg-champagne: #FDFBF7;
    --text-dark: #1A1A1A;
    --text-muted: #6C757D;
    --white: #FFFFFF;

    /* Extended Luxury Palette */
    --gold-gradient: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    --gold-gradient-reverse: linear-gradient(135deg, var(--primary-gold-hover), var(--primary-gold));
    --dark-gradient: linear-gradient(135deg, var(--secondary-black) 0%, #1a1a1a 100%);
    --gold-to-dark: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-black) 100%);
    --card-shadow: 0 4px 20px rgba(18, 18, 18, 0.08);
    --gold-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    --gold-shadow-lg: 0 8px 30px rgba(212, 175, 55, 0.25);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Fonts */
    --font-family-en: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-ar: 'Droid Kufi Arabic', 'Amiri', 'Times New Roman', serif;
    --font-display: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-en);
    line-height: 1.6;
    background-color: var(--bg-champagne) !important;
    color: var(--text-dark);
    overflow-x: hidden;
}

body.bg-light {
    background-color: var(--bg-champagne) !important;
}

body.font-arabic,
html[dir="rtl"] body {
    font-family: var(--font-family-ar);
}

body.font-english,
html[dir="ltr"] body {
    font-family: var(--font-family-en);
}

.text-light-opacity-75 { opacity: 0.75; }
.text-light-opacity-50 { opacity: 0.5; }

/* ===== Announcement Bar ===== */
.announcement-bar {
    background-color: #cda733!important;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 400;
    padding: 8px 0;
}

.announcement-bar i {
    font-size: 0.9rem;
}

.announcement-item {
    margin: 0;
}

.announcement-text {
    display: flex;
    color:black;
    align-items: center;
    gap: 0.5rem;
}

.announcement-end {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.announcement-end .nav-link {
    padding: 0 0.3rem !important;
    font-size: 1.1rem;
    color: var(--white) !important;
}

.announcement-social {
    padding: 0 0.3rem !important;
    font-size: 1.1rem;
    color: black;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.announcement-end .dropdown-toggle::after {
    display: none;
}

.announcement-end .nav-link.dropdown-toggle {
    padding: 0 0.3rem !important;
    font-size: 1.1rem;
    color: var(--white) !important;
}

.announcement-end .dropdown-menu {
    background: var(--secondary-black);
    border: 1px solid var(--primary-gold);
}

.announcement-end .dropdown-item {
    color: var(--white) !important;
}

.announcement-end .dropdown-item:hover {
    background: var(--primary-gold) !important;
    color: var(--secondary-black) !important;
}

/* ===== Language Dropdown ===== */
.lang-dropdown-menu {
    padding: 0 !important;
    border: 0 !important;
}

.lang-dropdown-menu .dropdown-item {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0.4rem 1rem !important;
}

.lang-dropdown-menu .dropdown-item:last-child {
    box-shadow: none !important;
}

.lang-divider {
    border-top: 1px solid #979b9e !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lang-dropdown-menu .dropdown-item:hover,
.lang-dropdown-menu .dropdown-item:focus,
.lang-dropdown-menu .dropdown-item:active {
    background: transparent !important;
    color: var(--secondary-black) !important;
    box-shadow: none !important;
}

.flag {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Twemoji MN', 'Twemoji', 'Android Emoji', 'Noto Color Emoji', 'EmojiOne', 'Safari', sans-serif !important;
}

.lang-flag {
    width: 20px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* ===== Header & Navbar ===== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
}

.header-sticky.sticky {
    z-index: 1100;
}

.navbar {
    background-color: #000000 !important;
    border-bottom: 1px solid #ffffff52;
    box-shadow: 0 2px 10px rgba(18, 18, 18, 0.15);
    transition: var(--transition-smooth);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand span {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    font-size: 1.5rem;
}

.brand-text span {
    color: var(--primary-gold);
}

.brand-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.navbar .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.6rem 0.8rem !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-gold) !important;
}

.navbar .nav-link.active {
    color: var(--primary-gold) !important;
}

.navbar .nav-link.active::after {
    width: 100%;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.dropdown-menu .dropdown-item.active {
    background-color: var(--primary-gold);
    color: var(--secondary-black);
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle::before {
    display: none !important;
}

/* ===== Mega Menu ===== */
.mega-menu {
    position: fixed !important;
    top: 100px !important;
    left: 0 !important;
    width: 90vw !important;
    max-width: 75vw !important;
    margin-left: 5vw !important;
    display: block !important;
    z-index: 1100 !important;
    pointer-events: auto !important;
    padding: 1.25rem 0 !important;
    background: var(--white) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    border-radius: 12px 12px 12px 12px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.2s ease !important;
}

.mega-menu.show,
.nav-item.position-relative:hover > .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.mega-menu .container-fluid {
    padding: 0 1.5rem;
}

.mega-menu-inner {
    display: flex;
    gap: 1.5rem;
}

.mega-menu-col {
    flex: 1;
    min-width: 0;
}

.mega-menu-col:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-menu-category {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
}

.mega-menu-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mega-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.mega-product:hover {
    transform: translateX(4px);
    color: var(--primary-gold);
}

.mega-product:hover .mega-product-name {
    color: var(--primary-gold);
}

.mega-product-img-wrapper {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-champagne);
}

.mega-product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mega-product:hover .mega-product-img-wrapper img {
    transform: scale(1.08);
}

.mega-product-info {
    flex: 1;
    min-width: 0;
}

.mega-product-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-product-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mega-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.mega-price-new {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.mega-view-all {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-decoration: none;
    padding-top: 0.5rem;
    margin-right:15px;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
}

.mega-view-all:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 992px) {
    .mega-menu .container-fluid {
        padding: 0;
    }

    .mega-menu-inner {
        flex-direction: column;
        gap: 0;
    }

    .mega-menu-col {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
    }

    .mega-menu-col:last-child {
        border-bottom: none;
    }
}

.navbar-icons .nav-link {
    color: var(--white) !important;
    font-size: 1.1rem;
    padding: 0.4rem 0.5rem !important;
}

.navbar-icons .nav-link:hover {
    color: var(--primary-gold) !important;
}

.navbar-icons .nav-separator {
    margin-left: 1rem;
    display: inline-block;
    width: 1px;
    background: rgba(0, 0, 0, 0.2);
    height: 24px;
    border-radius: 2px;
}

html[dir="rtl"] .navbar-icons .nav-separator {
    margin-left: 0;
    margin-right: 1rem;
}

.navbar-icons .nav-item .nav-link {
    margin-right: 0.5rem;
}

html[dir="rtl"] .navbar-icons .nav-item .nav-link {
    margin-left: 0.5rem;
    margin-right: 0;
}

.cart-badge {
    background: var(--primary-gold);
    color: var(--secondary-black);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25em 0.5em;
    border: 1px solid var(--secondary-black);
}

/* ===== Hero Carousel ===== */
.hero-section {
    position: relative;
}

.hero-carousel {
    overflow: hidden;
}

.hero-carousel .carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.8);
}

.hero-carousel .carousel-item.active {
    transform: scale(1.05);
}

.hero-slide-bg {
    position: relative;
    min-height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.85) 0%, rgba(18, 18, 18, 0.5) 100%);
    z-index: 1;
}

/* ===== Page Hero (Contact) ===== */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0.4) 100%);
    z-index: 1;
}

.page-hero > .container {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-family: var(--font-display);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-subtitle {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-float-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--gold-gradient);
    color: var(--secondary-black);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    z-index: 3;
    box-shadow: var(--gold-shadow);
    animation: pulse 3s infinite;
}

.hero-float-badge i {
    margin-right: 4px;
    font-size: 0.85rem;
}

@keyframes pulse {
    0%, 100% { box-shadow: var(--gold-shadow); }
    50% { box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--white);
    font-family: var(--font-display);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
}

.btn-gold {
    background: var(--gold-gradient) !important;
    border: none !important;
    color: white!important;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-gold:hover {
    background: var(--gold-gradient-reverse) !important;
    color: var(--secondary-black) !important;
    transform: translateY(-3px);
    box-shadow: var(--gold-shadow-lg);
}

.btn-gold-border {
    background: var(--primary-gold) !important;
    border: none !important;
    color: var(--secondary-black) !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-gold-border:hover {
    background: transparent !important;
    color: var(--primary-gold) !important;
    border: 1px solid var(--primary-gold) !important;
    transform: translateY(-3px);
    box-shadow: var(--gold-shadow);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: var(--secondary-black);
    box-shadow: var(--gold-shadow);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.hero-scroll-indicator i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Carousel indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(212, 175, 55, 0.3);
    border: 1px solid var(--primary-gold);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.carousel-indicators [data-bs-target].active,
.carousel-indicators [data-bs-target]:hover {
    background-color: var(--primary-gold);
    transform: scale(1.2);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    transition: var(--transition-smooth);
}

.carousel-control-prev {
    left: 0;
    margin-left: 1rem;
}

.carousel-control-next {
    right: 0;
    margin-right: 1rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-gold);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0) hue-rotate(180deg) saturate(200%) brightness(25%);
}

/* Product carousel (Trending / Best Sellers / On Sale) */
.product-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-carousel-wrapper .product-carousel {
    flex: 1 1 0%;
}

.product-carousel-wrapper .product-carousel-control {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 0;
    flex-shrink: 0;
}

.product-carousel-wrapper .product-carousel-control:hover {
    transform: scale(1.1);
}

.product-carousel .carousel-item {
    min-height: 0;
}

.product-carousel .carousel-indicators {
    display: none;
}

/* ===== Product Swiper Carousel (mobile: arrow left + product card + arrow right) ===== */
.product-swiper-wrapper .product-swiper {
    padding: 0 16px;
}

.product-swiper-wrapper .swiper-slide {
    display: flex;
}

.product-swiper-wrapper .swiper-slide > .col-12 {
    width: 100%;
}

.product-swiper-wrapper .product-swiper-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    padding: 0;
    transition: var(--transition-smooth);
    color: var(--secondary-black);
    box-shadow: var(--gold-shadow);
}

.product-swiper-wrapper .product-swiper-nav i {
    font-size: 1.3rem;
    color: var(--secondary-black);
    pointer-events: none;
}

.product-swiper-wrapper .product-swiper-nav:hover {
    background: var(--gold-gradient-reverse);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--gold-shadow-lg);
}

.product-swiper-wrapper .product-swiper-prev {
    left: 0;
    right: auto;
}

.product-swiper-wrapper .product-swiper-next {
    right: 0;
    left: auto;
}

/* Mobile: arrows sit to the left and right of the single product card */
@media (max-width: 768px) {
    .product-swiper-wrapper .product-swiper {
        padding: 0 52px;
    }

    .product-swiper-wrapper .product-swiper-prev {
        left: 12px;
    }

    .product-swiper-wrapper .product-swiper-next {
        right: 12px;
    }

    .product-swiper-wrapper .product-swiper-nav {
        width: 40px;
        height: 40px;
    }
}

/* RTL: swap arrow positions */
html[dir="rtl"] .product-swiper-wrapper .product-swiper-prev {
    left: auto;
    right: 0;
}

html[dir="rtl"] .product-swiper-wrapper .product-swiper-next {
    right: auto;
    left: 0;
}

@media (max-width: 768px) {
    html[dir="rtl"] .product-swiper-wrapper .product-swiper-prev {
        right: 12px;
    }

    html[dir="rtl"] .product-swiper-wrapper .product-swiper-next {
        left: 12px;
    }

    html[dir="rtl"] .product-swiper-wrapper .product-swiper-nav i {
        transform: scaleX(-1);
    }
}

/* ===== Section Headers ===== */
.section-header {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
}

.section-header.text-center::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 3px;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-black);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}

.section-header .section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== Category Showcase ===== */
.category-showcase {
    overflow: hidden;
}

.category-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--gold-shadow-lg);
}

.category-image {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.7) 0%, rgba(18, 18, 18, 0.4) 100%);
    opacity: 0.9;
}

.category-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.category-item:hover .category-content {
    opacity: 1;
    transform: translateY(0);
}

.category-item-featured .category-image {
    height: 100%;
    min-height: 420px;
}

.category-item-featured .category-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.category-item-featured .category-overlay {
    opacity: 0.8;
}

.category-item-featured:hover .category-image {
    transform: none !important;
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.category-link {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== Product Filters (Tabs) ===== */
.product-filters .nav-pills .nav-link {
    color: var(--secondary-black);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    margin: 0 0.3rem;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-filters .nav-pills .nav-link:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
}

.product-filters .nav-pills .nav-link.active {
    background: var(--gold-gradient);
    color: var(--secondary-black);
    border-color: var(--primary-gold);
    box-shadow: var(--gold-shadow);
}

/* ===== Modern Product Cards ===== */
.product-card-modern {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--gold-shadow-lg);
    border-color: rgba(212, 175, 55, 0.2);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
}

.sale-badge {
    left: 12px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
}

.featured-badge {
    left: 12px;
    background: var(--gold-gradient);
    color: var(--secondary-black);
    box-shadow: var(--gold-shadow);
}

.new-badge-gold {
    left: 12px;
    background: var(--gold-gradient);
    color: var(--secondary-black);
    box-shadow: var(--gold-shadow);
}

.best-seller-badge {
    left: 12px;
    background: rgba(26, 26, 26, 0.85);
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.add-to-cart-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.product-card-modern:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn {
    background: var(--primary-gold) !important;
    color: var(--secondary-black) !important;
    border: none !important;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.add-to-cart-btn:hover {
    background: var(--primary-gold-hover) !important;
    color: var(--white) !important;
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary-black);
}

.product-name a {
    color: inherit;
    text-decoration: none;
}

.product-name a:hover {
    color: var(--primary-gold);
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.price-new {
    color: var(--secondary-black);
    font-weight: 700;
    font-size: 1.1rem;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-sizes {
    display: flex;
    gap: 0.5rem;
}

.size-tag {
    width: 32px;
    height: 32px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.size-tag:hover {
    background: var(--primary-gold);
    color: var(--secondary-black);
    border-color: var(--primary-gold);
}

.bg-offwhite {
    background-color: var(--bg-champagne) !important;
}

.bg-charcoal {
    background-color: var(--secondary-black) !important;
}

/* ===== Brand Story Section ===== */
.brand-story-section {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.brand-story-image {
    position: relative;
    height: 500px;
}

.story-image-wrapper {
    position: relative;
    height: 100%;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

.story-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
}

.brand-story-content {
    padding: 4rem 3rem;
}

.story-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-black);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.story-subtitle {
    font-size: 1.2rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.story-text {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== Trust Cards ===== */
.trust-cards-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.trust-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(26, 26, 26, 0.06);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gold-shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.trust-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-gold);
    transition: var(--transition-smooth);
}

.trust-card:hover .trust-icon {
    background: var(--gold-gradient);
    color: var(--secondary-black);
    box-shadow: var(--gold-shadow);
    transform: scale(1.1);
}

.trust-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: black;
    margin-bottom: 0.5rem;
}

.trust-text {
    color: black;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    aspect-ratio: 1;
    cursor: zoom-in;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--gold-shadow);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(212, 175, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    color: var(--white);
    font-size: 1.5rem;
}

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

/* ===== Gallery Lightbox ===== */
.gallery-lightbox .modal-content {
    max-width: 90vw;
}

.lightbox-img {
    width: 100%;
    height: 80vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
}

/* See More Button */

.instagram-handle {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

/* ===== Contact Section ===== */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(26, 26, 26, 0.06);
    transition: var(--transition-smooth);
}

.contact-form-card:hover {
    box-shadow: var(--gold-shadow-lg);
    transform: translateY(-5px);
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(26, 26, 26, 0.06);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card:hover {
    box-shadow: var(--gold-shadow-lg);
}

.form-control-modern {
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control-modern:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-gold);
    flex-shrink: 0;
    margin-top: 4px;
}

.info-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.info-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.social-links {
    margin-top: 1rem;
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--primary-gold);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gold-gradient);
    color: var(--secondary-black);
    transform: translateY(-3px);
    box-shadow: var(--gold-shadow);
}

/* ===== Footer ===== */
.modern-footer {
    background: var(--dark-gradient);
    color: var(--white);
    border-top: 2px solid var(--primary-gold);
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-display);
}

.footer-gold {
    color: var(--primary-gold);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-gradient);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    display: block;
    padding: 0.4rem 0;
}

.footer-link:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    color: var(--primary-gold);
    transition: var(--transition-smooth);
    font-size: 1.1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-icon:hover {
    background: var(--gold-gradient);
    color: var(--secondary-black);
    transform: translateY(-3px);
    box-shadow: var(--gold-shadow);
}

/* ===== Fixed Scroll To Top (Left Bottom) ===== */
.scroll-top-fixed {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 56px;
    height: 56px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 50%;
    color: var(--secondary-black);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--gold-shadow);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-fixed.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-fixed:hover {
    background: var(--gold-gradient-reverse);
    transform: scale(1.1) !important;
    box-shadow: var(--gold-shadow-lg);
    color: var(--secondary-black);
}

/* ===== Fixed Social Sidebar (Right Bottom) ===== */
.social-sidebar {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--primary-gold);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
}

.social-sidebar-icon:hover {
    background: var(--gold-gradient);
    color: var(--secondary-black);
    transform: translateX(-5px);
    box-shadow: var(--gold-shadow);
}

/* ===== Sidebar Cart ===== */
.sidebar-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.sidebar-cart.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-cart-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.sidebar-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--white);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    border-radius: 0 0 0 0;
}

.sidebar-cart.open .sidebar-cart-panel {
    transform: translateX(0);
}

.sidebar-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    background: var(--white);
    flex-shrink: 0;
}

.sidebar-cart-header h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.sidebar-cart-header .btn-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-dark);
    opacity: 0.7;
    transition: var(--transition-smooth);
    width: auto;
    height: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
}

.sidebar-cart-header .btn-close:hover {
    opacity: 1;
    color: var(--primary-gold);
    transform: rotate(90deg);
}

.sidebar-cart-header .btn-close::before {
    content: "\00D7";
    display: inline-block;
    line-height: 1;
}

.sidebar-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.sidebar-cart-item {
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    background: var(--bg-champagne);
    transition: var(--transition-smooth);
}

.sidebar-cart-item:hover {
    background: rgba(212, 175, 55, 0.05);
    transform: translateX(-4px);
}

.sidebar-cart-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.sidebar-cart-name {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-cart-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.sidebar-cart-price {
    color: var(--primary-gold);
}

.sidebar-cart-remove {
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.sidebar-cart-remove:hover {
    background: #dc3545;
    color: var(--white);
    transform: scale(1.1);
    border-color: #dc3545;
}

.sidebar-cart-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    background: var(--white);
}

.sidebar-cart-total {
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

.sidebar-cart-empty {
    color: var(--text-muted);
}

.sidebar-cart-empty i {
    opacity: 0.5;
}

.text-gold {
    color: var(--primary-gold) !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section {
        display: none !important;
    }

    .scroll-top-fixed,
    .social-sidebar {
        display: none !important;
    }

    .sidebar-cart-panel {
        max-width: 100%;
    }
}

.newsletter-form {
    display: flex;
    flex-direction: row;
}

.newsletter-input {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px 0 0 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    outline: none;
    border: none;
    flex: 1;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    border-radius: 0 50px 50px 0;
    border: 1px solid var(--primary-gold);
    background: var(--primary-gold) !important;
    color: var(--secondary-black) !important;
    padding: 0 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.newsletter-btn:hover {
    background: var(--primary-gold-hover) !important;
    color: var(--secondary-black) !important;
    box-shadow: var(--gold-shadow);
}

/* RTL: newsletter email input stays LTR (email addresses are left-to-right) */
html[dir="rtl"] .newsletter-input {
    direction: ltr !important;
    text-align: left !important;
}

html[dir="rtl"] .newsletter-input::placeholder {
    text-align: left !important;
}

.payment-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===== Main Content ===== */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Add bottom padding on mobile to account for fixed bottom nav */
@media (max-width: 991.98px) {
    .main-content {
        padding-bottom: 70px;
    }
}

/* ===== Card styling ===== */
.card {
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    background: var(--white);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--gold-shadow);
}

.card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* Badges */
.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.badge.bg-warning.text-dark {
    background: var(--gold-gradient) !important;
    color: var(--secondary-black) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-gold);
    border-color: #dee2e6;
    border-radius: 8px !important;
}

.pagination .page-link:hover {
    background-color: var(--primary-gold);
    color: var(--secondary-black);
    border-color: var(--primary-gold);
}

.pagination .page-item.active .page-link {
    background: var(--gold-gradient);
    color: var(--secondary-black);
    border-color: var(--primary-gold);
}

/* ===== RTL Support ===== */
html[dir="rtl"] .btn-primary {
    color: var(--secondary-black) !important;
}

html[dir="rtl"] .hero-content {
    margin-right: auto;
}

html[dir="rtl"] .carousel-control-prev {
    left: auto;
    right: 0;
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .carousel-control-next {
    right: auto;
    left: 0;
    margin-right: 0;
    margin-left: 1rem;
}

/* RTL badge positioning: flip left→right for product badges */
html[dir="rtl"] .product-badge,
html[dir="rtl"] .sale-badge,
html[dir="rtl"] .featured-badge,
html[dir="rtl"] .best-seller-badge {
    left: auto;
    right: 12px;
}

/* RTL wishlist button: move to the left so it does not overlap badges on the right */
html[dir="rtl"] .product-wishlist-btn {
    left: 12px;
    right: auto;
}

/* RTL category link arrow: uses bi-arrow-left via PHP for Arabic */

/* RTL mega menu columns: add right padding in Arabic */
html[dir="rtl"] .mega-menu-col {
    padding-right: 15px;
}

/* RTL form inputs: placeholder right-aligned, value left-aligned (emails, phones, etc. stay LTR) */
html[dir="rtl"] .form-control-modern::placeholder {
    text-align: right;
}

html[dir="rtl"] .form-control-modern {
    text-align: left;
}

/* ===== RTL Font Override — ensure Arabic font on all home page text ===== */
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .hero-float-badge,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .mega-menu-category,
html[dir="rtl"] .mega-product-name,
html[dir="rtl"] .mega-price-old,
html[dir="rtl"] .mega-price-new,
html[dir="rtl"] .mega-view-all,
html[dir="rtl"] .category-name,
html[dir="rtl"] .category-link,
html[dir="rtl"] .product-name,
html[dir="rtl"] .product-name a,
html[dir="rtl"] .product-category,
html[dir="rtl"] .price-new,
html[dir="rtl"] .price-old,
html[dir="rtl"] .product-badge,
html[dir="rtl"] .trust-title,
html[dir="rtl"] .trust-text,
html[dir="rtl"] .info-title,
html[dir="rtl"] .info-text,
html[dir="rtl"] .social-title,
html[dir="rtl"] .contact-submit-btn,
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .footer-title,
html[dir="rtl"] .footer-desc,
html[dir="rtl"] .footer-link,
html[dir="rtl"] .copyright,
html[dir="rtl"] .announcement-bar,
html[dir="rtl"] .announcement-text,
html[dir="rtl"] .announcement-social,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .btn,
html[dir="rtl"] .form-control-modern,
html[dir="rtl"] .form-control-auth,
html[dir="rtl"] .auth-card-header h2,
html[dir="rtl"] .auth-form-title,
html[dir="rtl"] .auth-subtitle,
html[dir="rtl"] .policy-section h3,
html[dir="rtl"] .track-label,
html[dir="rtl"] .track-value,
html[dir="rtl"] .story-title,
html[dir="rtl"] .story-subtitle,
html[dir="rtl"] .story-text {
    font-family: var(--font-family-ar) !important;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .mega-menu-category,
html[dir="rtl"] .category-name,
html[dir="rtl"] .product-name,
html[dir="rtl"] .trust-title,
html[dir="rtl"] .info-title,
html[dir="rtl"] .social-title,
html[dir="rtl"] .footer-title,
html[dir="rtl"] .announcement-bar,
html[dir="rtl"] .auth-card-header h2,
html[dir="rtl"] .auth-form-title,
html[dir="rtl"] .policy-section h3,
html[dir="rtl"] .story-title,
html[dir="rtl"] .story-subtitle {
    font-family: var(--font-family-ar) !important;
    font-weight: 600;
}

/* ===== Catch-all RTL font override — override --font-display for all text elements ===== */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .page-hero-title,
html[dir="rtl"] .sidebar-cart-header h4,
html[dir="rtl"] .cart-table-card .card-header,
html[dir="rtl"] .invoice-card .card-header,
html[dir="rtl"] .order-success-card .card-header,
html[dir="rtl"] .filter-panel-head h2,
html[dir="rtl"] .faq-accordion .accordion-button,
html[dir="rtl"] .section-header .section-title,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .mega-menu-category,
html[dir="rtl"] .story-title,
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .policy-section h3,
html[dir="rtl"] .brand-text span,
html[dir="rtl"] .section-title {
    font-family: var(--font-family-ar) !important;
}

/* ===== Mobile Header ===== */

@media (max-width: 991.98px) {
    /* Compact announcement bar */
    .announcement-bar {
        font-size: 0.75rem;
        padding: 5px 0;
    }

    .announcement-bar .container {
        gap: 0.3rem;
    }

    .announcement-text {
        gap: 0.2rem;
    }

    .announcement-end {
        gap: 0.4rem;
    }

    .announcement-social {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        font-size: 0.95rem;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.15);
        color: var(--white) !important;
    }

    /* Center logo and make it circular on mobile */
    .navbar-brand {
        flex: 0 0 100%;
        justify-content: center !important;
        width: 100%;
    }

    .brand-logo {
        height: 46px;
        width: 46px;
        object-fit: cover;
        border-radius: 50% !important;
    }

    /* Toggler positioned on the right, independent of centered brand */
    .navbar-toggler {
        position: absolute !important;
        right: 0 !important;
        top: 50%;
        transform: translateY(-50%);
    }

    html[dir="rtl"] .navbar-toggler {
        right: auto !important;
        left: 0 !important;
    }

    /* Navbar: more compact on mobile */
    .navbar {
        background-color: #cbaf5c !important;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Hamburger toggle */
    .navbar-toggler {
        width: 44px;
        height: 44px;
        border-radius: 0;
        background: transparent !important;
        border: none !important;
        color: var(--text-dark) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: opacity 0.2s ease;
    }

    .navbar-toggler:hover {
        opacity: 0.7;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(26, 26, 26, 0.3);
    }

    .navbar-toggler .bi {
        font-size: 1.8rem;
        color: var(--text-dark) !important;
        transition: color 0.3s ease;
    }

    .navbar-toggler[aria-expanded="true"] .bi {
        color: var(--text-dark) !important;
    }

    /* Mobile backdrop for expanded menu */
    .mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease;
    }

    .mobile-menu-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile navbar menu: slide-in drawer.
       Closed by default (no .show): off-screen via transform and made
       invisible/non-interactive via visibility + pointer-events, overriding
       Bootstrap's .collapse display:none (display:block) so the slide works.
       On desktop, navbar-expand-lg restores display:flex. The menu only
       opens when the toggle button adds the .show class. */
    .navbar-collapse {
        display: block !important;
        position: fixed !important;
        top: 0;
        right: 0;
        width: 90%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start !important;
        overflow-y: auto;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid rgba(212, 175, 55, 0.3);
        z-index: 1100;
    }

    html[dir="rtl"] .navbar-collapse {
        left: 0;
        right: auto;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
    }

    /* Open state — only added by the toggle button click */
    .navbar-collapse.show {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        justify-content: flex-start;
    }

    html[dir="rtl"] .navbar-collapse.show {
        transform: translateX(0);
    }

    /* Close button at the top of the mobile drawer — shown only when open */
    .navbar-collapse .navbar-close-btn {
        display: none;
    }

    .navbar-collapse.show .navbar-close-btn {
        position: sticky;
        top: 0;
        right: 0;
        align-self: flex-end;
        width: 40px;
        height: 40px;
        padding: 0;
        margin: 1rem 1rem 0 0;
        border: none;
        background: transparent;
        font-size: 1.5rem;
        line-height: 1;
        color: var(--text-dark);
        cursor: pointer;
        z-index: 10;
    }

    .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }

    .navbar-collapse .nav-item {
        margin-bottom: 0.25rem;
    }

    .navbar-collapse .nav-link {
        display: block;
        width: 100%;
        padding: 0.85rem 1.25rem !important;
        font-size: 1rem;
        color: var(--text-dark) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        font-weight: 500;
    }

    .navbar-collapse .nav-link:hover {
        color: var(--primary-gold) !important;
        background: rgba(212, 175, 55, 0.03);
    }

    /* Hide separator on mobile (grid layout uses equal columns) */
    .navbar-icons .nav-separator {
        display: none !important;
    }

    /* Fixed bottom navigation bar on mobile: 5 equal columns grid */
    .navbar-icons {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: var(--secondary-black) !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        padding: 0.5rem 0;
        gap: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        z-index: 1200 !important;
    }

    /* Language dropdown: open upward and stay above everything on mobile */
    .navbar-icons .nav-item.dropdown {
        position: relative !important;
    }

    .navbar-icons .nav-item.dropdown .lang-dropdown-menu {
        position: absolute !important;
        top: auto !important;
        bottom: 100% !important;
        left: auto !important;
        right: 0 !important;
        z-index: 1300 !important;
    }

    /* Slide up and fade out when mobile drawer is open */
    .navbar-collapse.show + .navbar-icons {
        transform: translateY(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html[dir="rtl"] .navbar-icons {
        direction: rtl;
    }

    .navbar-icons .nav-link {
        font-size: 1.35rem;
        color: var(--white) !important;
        width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 0.5rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-icons .nav-link:hover {
        color: var(--primary-gold) !important;
    }

    .navbar-icons .nav-item .nav-link {
        margin-right: 0;
    }

    /* Move count badges closer to the icon on mobile bottom nav */
    .navbar-icons .cart-badge,
    .navbar-icons .wishlist-badge {
        transform: translate(-70%, -30%) !important;
    }

    /* Mobile mega menu: convert to accordion-style */
    .mega-menu {
        position: static !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease !important;
    }

    .mega-menu.show {
        opacity: 1 !important;
        visibility: visible !important;
        padding: 1.25rem 0 !important;
        max-height: 2000px;
    }

    .mega-menu-close-wrapper {
        display: flex;
        justify-content: flex-end;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mega-menu-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-dark);
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition-smooth);
    }

    .mega-menu-close:hover {
        background: rgba(0, 0, 0, 0.05);
        color: var(--primary-gold);
    }

    .mega-menu .container-fluid {
        padding: 0.5rem 0.75rem !important;
        display: block;
    }

    .mega-menu-inner {
        flex-direction: column;
        gap: 0;
    }

    .mega-menu-col {
        flex: 1 1 100%;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0.4rem 0;
    }

    .mega-menu-col:last-child {
        border-bottom: none;
    }
}

/* ===== Mobile Footer ===== */

@media (max-width: 991.98px) {
    .modern-footer {
        padding-top: 2rem;
    }

    .footer-brand {
        font-size: 1.6rem;
        justify-content: center;
        display: flex;
    }

    .footer-desc {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    /* Footer columns stack as single column on mobile */
    .modern-footer .row {
        --bs-gutter-y: 1.5rem;
    }

    /* Footer section titles become expandable accordions */
    .footer-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    /* Hide gold underline on mobile (chevron is the indicator) */
    .footer-title::after {
        display: none;
    }

    .footer-title .chevron-icon {
        transition: transform 0.3s ease;
        color: var(--primary-gold);
    }

    .footer-title:not(.collapsed) .chevron-icon {
        transform: rotate(180deg);
    }

    /* Collapsible body for mobile */
    .footer-collapse {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    .footer-collapse.show {
        max-height: 2000px;
        opacity: 1;
    }

    /* Center footer section content on mobile */
    .footer-center-mobile {
        text-align: center;
    }

    .footer-center-mobile .footer-title {
        justify-content: center;
    }

    .footer-center-mobile .footer-link {
        display: inline-block;
    }

    .footer-center-mobile .payment-icons {
        justify-content: center;
    }

    .footer-center-mobile .chevron-icon {
        margin-left: 5px;
    }
}

/* Desktop: footer sections always visible, no accordion */
@media (min-width: 992px) {
    .footer-title {
        cursor: default;
        display: block;
    }

    .footer-title .chevron-icon {
        display: none;
    }

    .footer-collapse {
        max-height: none !important;
        opacity: 1 !important;
        display: block !important;
    }
}

/* ===== End Mobile Footer ===== */

/* Newsletter form on mobile */
@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-input {
        border-radius: 50px !important;
        margin-bottom: 0;
        width: 100%;
    }

    .newsletter-btn {
        border-radius: 50px !important;
        width: 100%;
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Footer bottom on mobile */
@media (max-width: 768px) {
    .footer-bottom {
        padding-top: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .footer-bottom .row {
        --bs-gutter-y: 1rem;
    }

    .copyright {
        text-align: center;
        font-size: 0.8rem;
    }

    .footer-bottom .col-md-6.text-md-end {
        text-align: center;
    }

    .footer-bottom .d-flex.gap-3.justify-content-md-end {
        justify-content: center !important;
    }

    .footer-bottom .footer-link.small {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ===== Mobile Mega Menu ===== */
@media (max-width: 991.98px) {
    .mega-menu .mega-menu-category {
        font-size: 0.9rem;
        padding: 0.25rem 0;
        margin-bottom: 0.35rem;
    }

    .mega-product {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.35rem 0;
        display: flex;
        align-items: center;
    }

    .mega-product-img-wrapper {
        width: 50px;
        height: 50px;
    }

    .mega-product-name {
        font-size: 0.8rem;
    }

    .mega-price-new {
        font-size: 0.75rem;
    }

    .mega-view-all {
        padding-top: 0.4rem;
        font-size: 0.75rem;
    }
}

html[dir="rtl"] .navbar-collapse {
    left: 0;
    right: auto;
}

/* ===== End Mobile Header ===== */

/* ===== Very Small Mobile ===== */
@media (max-width: 575.98px) {
    .announcement-bar {
        display: none;
    }
}

/* ===== RTL Mobile Header Overrides ===== */
/* RTL: nav icons margin correction */
html[dir="rtl"] .navbar-icons .nav-item .nav-link {
    margin-left: 0;
    margin-right: 0;
}

html[dir="rtl"] .footer-title .chevron-icon {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .brand-story-image {
        height: 400px;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-slide-bg {
        min-height: 600px;
    }

    .hero-float-badge {
        top: 16px;
        right: 16px;
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }

    .brand-story-image {
        height: 350px;
    }

    .brand-story-content {
        padding: 3rem 2rem;
    }

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

    .section-header .section-title {
        font-size: 2rem;
    }

    .trust-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-slide-bg {
        min-height: 480px;
    }

    .hero-content .d-flex {
        flex-direction: column;
    }

    .hero-content .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .hero-float-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1rem;
    }

    .brand-story-image {
        height: 300px;
        margin-bottom: 2rem;
    }

  
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .info-icon {
        margin-top: 0;
        margin-bottom: 0.75rem;
    }

    .product-filters .nav-pills {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .product-filters .nav-link {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .section-header .section-title {
        font-size: 1.8rem;
    }

    .brand-story-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-slide-bg {
        min-height: 420px;
    }

    .story-title {
        font-size: 1.8rem;
    }

    .section-header .section-title {
        font-size: 1.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: 50px;
        margin-bottom: 0.5rem;
    }

    .newsletter-btn {
        border-radius: 50px;
        width: 100%;
    }

    .brand-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Search Modal (custom) ===== */
.search-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 860px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 2050;
}

.search-modal.search-modal-open {
    opacity: 1;
    visibility: visible;
    padding: 10px;
}

.search-modal-header {
    background-color: var(--white);
    
    border-top-left-radius: var(--border-radius-sm);
    border-top-right-radius: var(--border-radius-sm);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-black);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-modal-header h3 i {
    color: var(--primary-gold);
}

.search-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.search-modal-form {
    background-color: var(--white);
    border-bottom-left-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
    padding: 1.5rem 2rem 2.5rem;
    display: flex;
    gap: 0.75rem;
    
}

.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 50px 0 0 50px;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #ebebeb;
}

.search-modal-input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.search-modal-submit {
    background: #CDA733;
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-modal-submit:hover {
    background: white;
    border:1px solid #CDA733;
    
    color: #CDA733 !important;
}

.search-modal-submit:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4);
    outline: none;
}

/* Dim the page content behind the search modal (content does not appear) */
body.search-modal-page-dimmed > header,
body.search-modal-page-dimmed > main,
body.search-modal-page-dimmed > footer {
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

/* Dark black overlay behind the search modal */
body.search-modal-page-dimmed::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2040;
    pointer-events: none;
}

@media (max-width: 576px) {
    .search-modal-header,
    .search-modal-form {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .search-modal-header h3 {
        font-size: 1.15rem;
    }

    .search-modal-form {
        padding-bottom: 1.5rem;
    }
}

/* ===== Shop Page ===== */
.filter-panel {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(26, 26, 26, 0.06);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.filter-panel:hover {
    box-shadow: var(--gold-shadow-lg);
}

.filter-panel-head {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    padding: 0.85rem 1.25rem;
    color: var(--secondary-black);
}

.filter-panel-head h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.filter-group {
    padding: 1.1rem 1.25rem;
    margin-top:20px;
    border-bottom: 1px solid rgb(10 10 10 / 12%);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-label {
    display: block;
    font-weight: 800;
    color: black!important;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label i {
    color: var(--primary-gold);
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-dark);
}

.filter-check:hover {
    color: var(--primary-gold);
}

.filter-check .form-check-input:checked {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.filter-count {
    margin-left: auto;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
}

.filter-panel-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(26, 26, 26, 0.06);
    background: rgba(212, 175, 55, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-panel-footer .btn-gold {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem !important;
}

.filter-panel .input-group {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.filter-panel .input-group .form-control {
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-right: none;
    outline: none;
    box-shadow: none;
    height: 30px;
}

.filter-panel .input-group .btn {
    border: 1px solid var(--primary-gold);
    border-left: none;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0 !important;
    height: 30px;
    padding: 0 0.75rem;
}

.color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(26, 26, 26, 0.15);
    flex-shrink: 0;
}

/* Shop Product Cards */
.product-card-modern {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid rgba(26, 26, 26, 0.05);
    border-top: none;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--gold-shadow-lg);
    border-color: rgba(212, 175, 55, 0.2);
}

.product-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.discount-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 50px;
}

.featured-badge {
    background: var(--gold-gradient);
    color: var(--secondary-black);
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    box-shadow: var(--gold-shadow);
}

/* Pagination */
.pagination .page-link {
    color: var(--text-dark);
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 8px !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.pagination .page-link:hover {
    background: var(--primary-gold);
    color: var(--secondary-black);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gold);
    color: var(--secondary-black);
    border-color: var(--primary-gold);
    box-shadow: var(--gold-shadow);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Filter button for mobile */
.btn-primary {
    background: var(--gold-gradient) !important;
    border: none !important;
    color: var(--secondary-black) !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--gold-gradient-reverse) !important;
    transform: translateY(-2px);
    box-shadow: var(--gold-shadow);
    color: var(--secondary-black) !important;
}

/* Shop toolbar */
[data-sticky-top="80"] {
    position: sticky;
    top: 80px;
    align-self: start;
}

/* Ensure quick-view buttons don't interfere with card hover */
.quick-view-btn {
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.quick-view-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--gold-shadow);
}

/* ===== Cart Page ===== */
.cart-page-wrapper {
    min-height: 60vh;
}

.cart-empty-state {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.cart-empty-icon i {
    opacity: 0.3;
}

.cart-table-card .card-header {
    font-family: var(--font-display);
}

.cart-item-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.qty-control {
    border: 1px solid #ced4da;
    border-radius: 50px;
    overflow: hidden;
}

.qty-btn {
    border-radius: 0;
    border: none;
    border-right: 1px solid #ced4da;
    background: var(--bg-champagne);
    min-width: 36px;
    height: 36px;
}

.qty-btn:last-child {
    border-left: 1px solid #ced4da;
    border-right: none;
}

.qty-btn:first-child {
    border-right: 1px solid #ced4da;
}

.qty-btn:hover {
    background: var(--primary-gold);
    color: var(--secondary-black);
}

.cart-quantity {
    border: none;
    border-radius: 0;
    max-width: 90px;
    width: 100%;
    text-align: center;
    background: var(--white);
    -moz-appearance: textfield;
}

.cart-quantity::-webkit-outer-spin-button,
.cart-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-quantity:focus {
    box-shadow: none;
}

.cart-sidebar-card {
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .cart-sidebar-card {
        max-width: 100%;
    }
}

/* ===== Checkout Page ===== */
.checkout-page-wrapper {
    min-height: 60vh;
}

.checkout-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.payment-option {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.payment-option:hover {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.03);
}

.payment-option input[type="radio"] {
    cursor: pointer;
}

.checkout-summary-card {
    max-width: 600px;
    margin: 0 auto;
}

.checkout-summary-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.checkout-summary-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== Invoice Page ===== */
.invoice-page-wrapper {
    min-height: 60vh;
}

.invoice-item-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.invoice-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.invoice-card .card-header {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .invoice-page-wrapper .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .order-items-table th:nth-child(1),
    .order-items-table td:nth-child(1) {
        width: 50%;
    }
    .order-items-table th:nth-child(2),
    .order-items-table td:nth-child(2),
    .order-items-table th:nth-child(3),
    .order-items-table td:nth-child(3) {
        width: 15%;
    }
    .order-items-table th:nth-child(4),
    .order-items-table td:nth-child(4) {
        width: 20%;
    }
}

/* ===== Order Success Page ===== */
.order-success-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-black);
}

.order-success-icon i {
    font-size: 3rem;
}

.order-success-card .card-header {
    font-family: var(--font-display);
}

.order-summary-table td,
.order-summary-table th {
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    padding: 0.75rem 0.5rem;
}

/* ===== Contact Form Feedback ===== */
.contact-submit-btn {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-submit-btn:disabled {
    opacity: 0.7;
}

#contactMessage .alert {
    border-radius: var(--border-radius-sm);
    border: none;
}

#contactMessage .alert-success {
    background: rgba(40, 167, 94, 0.1);
    color: #1e8e50;
}

#contactMessage .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* ===== Wishlist ===== */
.wishlist-page-wrapper {
    min-height: 60vh;
}

.wishlist-empty {
    opacity: 0.3;
}

.wishlist-empty i {
    font-size: 5rem;
}

.wishlist-controls {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--card-shadow);
}

.wishlist-controls .btn.active,
.wishlist-controls .btn:hover {
    background: var(--gold-gradient);
    color: var(--secondary-black);
    border-color: var(--primary-gold);
}

.wishlist-products .product-card-modern {
    transition: var(--transition-smooth);
}

.wishlist-products .product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--gold-shadow-lg);
}

/* Wishlist heart button on product cards */
.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-wishlist-btn:hover {
    background: var(--white);
    color: #dc3545;
    transform: scale(1.15);
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.product-wishlist-btn.active,
.product-wishlist-btn:hover.active {
    color: #dc3545;
    background: var(--white);
}

.product-wishlist-btn.active i {
    color: #dc3545;
}

/* Wishlist badge in header */
.wishlist-badge {
    background: var(--primary-gold);
    color: var(--secondary-black);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25em 0.5em;
    border: 1px solid var(--secondary-black);
}

.rounded-pill:hover,
.btn.rounded-pill:hover {
    color: white!important;
}

/* Wishlist product action buttons */
.wishlist-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: none !important;
}

.wishlist-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--gold-shadow);
    color: var(--secondary-black) !important;
}

.wishlist-action-btn.view-details-btn {
    background: var(--white);
    border: 1px solid var(--primary-gold) !important;
    color: var(--primary-gold);
}

.wishlist-action-btn.view-details-btn:hover {
    background: var(--gold-gradient);
    color: var(--secondary-black) !important;
}

/* ===== Auth Pages ===== */
.auth-page-wrapper {
    min-height: calc(100vh - 80px);
    padding-top: 4rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.03) 0%, rgba(212, 175, 55, 0.02) 100%);
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(18, 18, 18, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
    transition: var(--transition-smooth);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.auth-card:hover {
    box-shadow: 0 25px 70px rgba(18, 18, 18, 0.18);
}

.auth-card-header {
    background: linear-gradient(135deg, var(--secondary-black), var(--primary-gold));
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.auth-card-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.auth-card-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-gold);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.auth-card-header .auth-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.auth-card-body {
    padding: 3rem;
}

.auth-form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-black);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-form-title .gold {
    color: var(--primary-gold);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-label-auth {
    font-weight: 600;
    color: var(--secondary-black);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-control-auth {
    border: 1.5px solid rgba(26, 26, 26, 0.12);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-family: var(--font-family-en);
    transition: var(--transition-smooth);
    background: var(--bg-champagne);
}

.form-control-auth:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.15);
    background: var(--white);
    outline: none;
}

.form-control-auth::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
}

.auth-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-gold);
    cursor: pointer;
}

.auth-remember label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0;
    cursor: pointer;
}

.auth-forgot {
    text-align: right;
}

.auth-forgot a {
    color: var(--primary-gold);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.auth-forgot a:hover {
    color: var(--primary-gold-hover);
    text-decoration: underline;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(26, 26, 26, 0.1);
    z-index: 0;
}

.auth-divider span {
    background: var(--white);
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

.auth-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-social-btn {
    flex: 1;
    border: 1.5px solid rgba(26, 26, 26, 0.12);
    border-radius: var(--border-radius-sm);
    padding: 0.7rem 1rem;
    background: var(--white);
    color: var(--secondary-black);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-social-btn:hover {
    background: var(--primary-gold);
    color: var(--secondary-black);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: var(--gold-shadow);
}

.auth-submit-btn {
    width: 100%;
    background: var(--gold-gradient);
    border: none;
    border-radius: 50px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-black);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.auth-submit-btn:hover {
    background: var(--gold-gradient-reverse);
    transform: translateY(-3px);
    box-shadow: var(--gold-shadow-lg);
    color: var(--secondary-black);
}

.auth-submit-btn i {
    font-size: 1.1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.auth-footer p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-gold);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.auth-footer a:hover {
    color: var(--primary-gold-hover);
    text-decoration: underline;
}

.auth-alert {
    border-radius: var(--border-radius-sm);
    border: none;
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-alert .btn-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    opacity: 0.6;
    cursor: pointer;
}

.auth-alert .btn-close:hover {
    opacity: 1;
}

/* RTL Support for Auth Pages */
html[dir="rtl"] .auth-card-header {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-black));
}

html[dir="rtl"] .auth-forgot {
    text-align: left;
}

/* ===== Responsive Auth ===== */
@media (max-width: 576px) {
    .auth-page-wrapper {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .auth-card-body {
        padding: 2rem 1.25rem;
    }

    .auth-card-header {
        padding: 2rem 1.25rem;
    }

    .auth-card-header h2 {
        font-size: 1.4rem;
    }

    .auth-divider {
        margin: 1.5rem 0;
    }
}

.payment-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-disabled input[type="radio"] {
    pointer-events: none;
}

/* Shop empty state — forces full width inside row-cols-* grids */
.shop-empty-state {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* ===== Policy Pages ===== */
.policy-content {
    max-width: 820px;
    margin: 0 auto;
}

.policy-body {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(26, 26, 26, 0.06);
    padding: 2.5rem 2rem;
}

.policy-body .lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.05);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.policy-section h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-black);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.policy-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-gradient);
}

.policy-section ul {
    margin-bottom: 0;
}

.policy-section li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.policy-section a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.policy-section a:hover {
    color: var(--primary-gold-hover);
    text-decoration: underline;
}

.policy-contact {
    background: var(--bg-champagne);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.policy-last-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

/* ===== Track Order Result ===== */
.track-result-card {
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.track-result-header {
    background: var(--gold-gradient);
    color: var(--secondary-black);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-order-number {
    font-weight: 700;
    font-size: 1rem;
}

.track-result-body {
    padding: 1.5rem;
}

.track-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.05);
}

.track-detail-row:last-child {
    border-bottom: none;
}

.track-label {
    color: var(--text-muted);
    font-weight: 600;
}

.track-value {
    color: var(--secondary-black);
    font-weight: 500;
}

.track-value.status-pending { color: #ffc107; }
.track-value.status-processing { color: #17a2b8; }
.track-value.status-shipped { color: var(--primary-gold); }
.track-value.status-delivered { color: #198754; }
.track-value.status-cancelled { color: #dc3545; }

/* ===== Size Guide Table ===== */
.size-guide-table {
    margin-bottom: 0;
    background: var(--white);
}

.size-guide-table th {
    background: var(--secondary-black);
    color: var(--white);
    font-weight: 600;
    border: none;
    font-size: 0.9rem;
}

.size-guide-table td,
.size-guide-table th {
    border-color: rgba(26, 26, 26, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* ===== FAQ Accordion ===== */
.faq-accordion .accordion-item {
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.75rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-accordion .accordion-item:hover {
    box-shadow: var(--gold-shadow);
}

.faq-accordion .accordion-button {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--secondary-black);
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border: none;
    background: var(--bg-champagne);
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--secondary-black);
    box-shadow: inset 0 -2px 0 var(--primary-gold);
}

.faq-accordion .accordion-button:hover {
    color: var(--primary-gold);
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(0.7) sepia(0.9) saturate(300) hue-rotate(15deg);
}

.faq-accordion .accordion-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    background: var(--white);
}

/* ===== Home Page Responsive ===== */

@media (max-width: 991.98px) {
    /* Hero Carousel - mobile content adjustments */
    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .hero-content .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .hero-content .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-float-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: fit-content;
    }

    /* Carousel controls - smaller on tablet */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    /* Category Showcase - featured image height on mobile */
    .category-item-featured .category-image {
        min-height: 300px;
        height: 300px;
    }

    .category-image {
        height: 220px;
    }

    /* Trust Cards - 1 per row on very small screens */
    .trust-cards-wrapper .row {
        --bs-gutter-y: 1rem;
    }
}

@media (max-width: 576px) {
    /* Hero Carousel - very small screen */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-slide-bg {
        min-height: 480px;
    }

    .hero-content .d-flex {
        flex-direction: column;
    }

    .hero-content .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Trust Cards - 1 per row */
    .trust-card {
        padding: 2rem 1.25rem;
    }

    .trust-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    /* Category Showcase */
    .category-item-featured .category-image {
        min-height: 260px;
        height: 260px;
    }

    .category-image {
        height: 200px;
    }
}

/* Home Page - Shop Sections Carousel (Product Carousel) */
@media (max-width: 768px) {
    .product-carousel-wrapper .product-carousel-control {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .product-image {
        height: 260px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .product-pricing {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .product-carousel-wrapper .product-carousel-control {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .product-image {
        height: 240px;
    }

    .product-card-modern {
        border-radius: 10px;
    }

    .product-badge {
        top: 10px;
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .product-category {
        font-size: 0.7rem;
    }

    .product-sizes {
        gap: 0.35rem;
    }

    .size-tag {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
}

/* ===== Gallery Page Responsive ===== */

@media (max-width: 768px) {
    .page-hero .container[style*="min-height"] {
        min-height: 300px !important;
    }

    .hero-content-simple .page-hero-title {
        font-size: 1.8rem;
    }

    .hero-content-simple .page-hero-subtitle {
        font-size: 0.95rem;
    }

    /* Gallery grid - 2 columns on mobile */
    .gallery-grid-wrap .col-6 {
        padding-bottom: 0.75rem;
    }

    /* Gallery lightbox dialog margins */
    #galleryLightbox .modal-dialog {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .page-hero .container[style*="min-height"] {
        min-height: 250px !important;
    }

    .hero-content-simple .page-hero-title {
        font-size: 1.5rem;
    }

    .hero-content-simple .page-hero-subtitle {
        font-size: 0.85rem;
    }

    /* Load More button - full width on mobile */
    #loadMoreBtn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Lightbox modal - full width on mobile */
    .gallery-lightbox .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100vh;
    }

    .lightbox-img {
        height: 90vh;
        border-radius: 0;
    }

    /* Gallery items - 2 columns on very small screens */
    .gallery-grid-wrap .col-6 {
        padding-bottom: 0.5rem;
    }
}

/* ===== Contact Page Responsive ===== */

@media (max-width: 768px) {
    .contact-section .row {
        --bs-gutter-y: 1.5rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .contact-form-card h2,
    .contact-info-card h2 {
        font-size: 1.25rem;
    }

    .form-control-modern {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .contact-submit-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .info-icon {
        margin-top: 0;
        margin-bottom: 0.75rem;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .social-title {
        font-size: 1rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .social-links {
        text-align: center;
    }

    .social-links .d-flex {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-form-card,
    .contact-info-card {
        padding: 1.25rem;
    }

    .form-control-modern {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .contact-submit-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .info-title {
        font-size: 0.95rem;
    }

    .info-text {
        font-size: 0.85rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ===== Product Image Sticky Column ===== */
.product-image-sticky {
    position: sticky;
    top: 80px;
    align-self: flex-start;
    z-index: 10;
}

@media (max-width: 991.98px) {
    .product-image-sticky {
        position: static !important;
        align-self: auto;
    }
}

/* ===== End Page Responsive ===== */

@media (max-width: 767.98px) {
    .category-mobile-title .desktop-text {
        display: none;
    }

    .category-mobile-title::after {
        content: "Yacine Boutique";
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--secondary-black);
        font-family: var(--font-display);
        letter-spacing: -0.5px;
    }
}


