@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Montserrat:wght@300;400;600;700;800&display=swap');

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: hidden;
    opacity: 0;
}

.page-loader.show {
    visibility: visible;
    opacity: 1;
}

.loader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(61, 57, 146, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-content img {
    width: 60px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.9); opacity: 0.7; }
}

:root {
    --bg-main: #f9fafb;
    --bg-surface: #ffffff;
    --primary-color: #3d3992;
    --primary-dark: #2a2769;
    --primary-light: #5a55c2;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: rgba(61, 57, 146, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Almarai', sans-serif;
}

html, body {
    overflow-x: clip !important;
    width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 90px; /* Offset for fixed header */
}

[dir="rtl"] {
    font-family: 'Almarai', 'Montserrat', sans-serif;
}

/* Language Visibility Logic */
[dir="rtl"] .lang-en { display: none !important; }
[dir="ltr"] .lang-ar { display: none !important; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Header & Navigation */
header {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

.header-main {
    position: relative;
    background: #fff;
    z-index: 10;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: static;
    transition: height 0.3s ease;
}

header.scrolled .nav-wrapper {
    height: 75px;
}

.logo img {
    height: 60px;
    filter: brightness(0) saturate(100%) invert(20%) sepia(51%) saturate(2377%) hue-rotate(233deg) brightness(91%) contrast(93%);
    transition: height 0.3s ease;
}

header.scrolled .logo img {
    height: 50px;
}

.main-nav {
    position: static;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    height: 100%;
    position: static;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    position: static;
}

.main-nav ul li a {
    color: var(--text-main);
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Search Toggle */
.search-toggle {
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    background: var(--primary-color);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(61, 57, 146, 0.2);
}

.search-toggle:hover {
    background: var(--text-main);
    transform: translateY(-2px);
}

/* Dropdown Search */
.dropdown-search {
    position: absolute;
    top: 100%; /* Automatically aligns to the bottom of the header */
    left: 0;
    width: 100%;
    background: #fff;
    padding: 25px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    z-index: 5;
    border-top: 1px solid var(--border-color);
}

.dropdown-search.active {
    display: block;
    animation: searchSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: top;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 25px;
    padding-left: 60px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    background: #f9fafb;
    transition: var(--transition);
}

html[dir="ltr"] .search-input-wrapper input {
    padding-left: 25px;
    padding-right: 60px;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61, 57, 146, 0.1);
}



.search-close {
    position: absolute;
    left: 20px;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

html[dir="ltr"] .search-close {
    left: auto;
    right: 20px;
}

.search-close:hover {
    color: var(--primary-color);
}

/* Action Icons */
.action-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.action-icons a {
    color: var(--text-main);
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.action-icons a:hover {
    color: var(--primary-color);
    background: rgba(61, 57, 146, 0.08);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    user-select: none;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
    background: #fff;
    white-space: nowrap;
}

.lang-selected:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-selected .flag {
    font-size: 18px;
    line-height: 1;
}

.lang-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 9999;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.lang-dropdown.open .lang-options {
    max-height: 200px;
    opacity: 1;
    pointer-events: auto;
}

.lang-dropdown.open .lang-selected {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-option {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
    color: var(--text-main);
}

.lang-option:hover {
    background: rgba(61, 57, 146, 0.06);
    color: var(--primary-color);
}

.lang-option.active {
    background: rgba(61, 57, 146, 0.1);
    color: var(--primary-color);
    font-weight: 700;
}

.lang-option .flag {
    font-size: 18px;
    line-height: 1;
}

/* Nav Links */
.main-nav ul li a {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

[dir="rtl"] .main-nav ul li a::after {
    left: auto;
    right: 0;
}

.main-nav ul li a:hover,
.main-nav ul li a.active-link {
    color: var(--primary-color);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active-link::after {
    width: 100%;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-surface);
    border-top: 3px solid var(--primary-color);
    padding: 50px 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
}

.mega-menu.show {
    display: block;
    animation: megaFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    margin: 0;
}

.mega-column {
    padding: 0 25px;
}

[dir="rtl"] .mega-column {
    text-align: right;
    border-left: 1px solid rgba(61, 57, 146, 0.1);
}

[dir="ltr"] .mega-column {
    text-align: left;
    border-right: 1px solid rgba(61, 57, 146, 0.1);
}

[dir="rtl"] .mega-column:last-child {
    border-left: none;
}

[dir="ltr"] .mega-column:last-child {
    border-right: none;
}

.mega-column h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
}

.mega-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

[dir="rtl"] .mega-column h4::after {
    right: 0;
}

[dir="ltr"] .mega-column h4::after {
    left: 0;
}

.mega-column ul li {
    margin-bottom: 15px;
}

.mega-column ul li a {
    color: var(--text-main);
    font-size: 15px;
    display: block;
    padding: 5px 0;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.mega-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(-8px);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: rgba(61, 57, 146, 0.12);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(61, 57, 146, 0.12);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    text-align: right;
}

[dir="ltr"] .hero-content {
    text-align: left;
}

.hero-tag {
    display: inline-block;
    background: rgba(61, 57, 146, 0.08);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-main);
    font-weight: 800;
    min-height: 1.2em;
    visibility: hidden;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 45px;
    line-height: 1.8;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

[dir="rtl"] .hero-btns { justify-content: flex-start; }
[dir="ltr"] .hero-btns { justify-content: flex-start; }

.hero-image {
    position: relative;
    z-index: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Typing Cursor */
#hero-typing::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-inline-start: 5px;
    color: var(--primary-color);
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-content {
        max-width: 100%;
        order: 2;
        text-align: center;
    }
    [dir="ltr"] .hero-content { text-align: center; }
    .hero-btns {
        justify-content: center;
    }
    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
}

.hero-content .btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sections */
section {
    padding: 100px 0;
    overflow: hidden; /* Prevent internal elements from pushing width */
    position: relative;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--text-main);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--primary-color);
}

.section-header span {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    transition: all 0.3s ease;
}

/* List View Layout */
.product-grid.list-view {
    grid-template-columns: 1fr;
}

.product-grid.list-view .product-card {
    flex-direction: row;
    align-items: stretch;
}

.product-grid.list-view .product-image {
    width: 220px;
    border-bottom: none;
    border-left: 1px solid var(--border-color); /* RTL separator */
    flex-shrink: 0;
}

.product-grid.list-view .product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.product-grid.list-view .product-info h3 {
    font-size: 20px;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



.product-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.product-actions .view-btn {
    flex-grow: 1;
    margin-bottom: 0; /* Override if any */
}

.wishlist-btn {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.wishlist-btn:hover {
    background: #fee;
    color: #e53935;
    border-color: #fcc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cart-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 2;
    font-size: 16px;
}

.cart-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05) !important;
}

[dir="rtl"] .cart-btn {
    left: auto;
    right: 15px;
}


.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-price {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price > span {
    color: var(--primary-color);
}

.old-price {
    color: var(--text-muted) !important;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 400;
}

.new-price {
    color: #e53935 !important;
    font-size: 18px;
}

.branch {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Badges */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.badge.sale {
    background: #e53935;
    color: #fff;
    top: 0;
    right: 0;
    left: auto;
    border-radius: 0 0 0 5px;
}

.branch-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
}

.branch-badge .branch-name {
    display: none;
    font-size: 11px;
    font-weight: 700;
    margin-inline-start: 8px;
    white-space: nowrap;
}

.product-card:hover .branch-badge {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

.product-card:hover .branch-badge .branch-name {
    display: inline-block;
}

.product-card:hover .branch-badge i {
    display: none;
}

[dir="rtl"] .branch-badge {
    left: auto;
    right: 12px;
}

[dir="rtl"] .badge.sale {
    left: 0;
    right: auto;
    border-radius: 0 0 5px 0;
}



.branch-badge i {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.branch-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .branch-text {
    opacity: 1;
}

/* Utilities */
.w-100 { width: 100%; }

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn {
    padding: 12px 30px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.view-btn:hover {
    background: var(--text-main);
    color: white;
    transform: translateY(-2px);
}


.wishlist-btn.active i {
    font-weight: 900; /* Solid heart */
}

[dir="rtl"] .wishlist-btn {
    left: 20px;
    right: auto;
}

[dir="ltr"] .wishlist-btn {
    right: 20px;
    left: auto;
}

.product-rating {
    position: absolute;
    bottom: 15px;
    right: 15px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffc107;
    font-size: 13px;
    font-weight: 700;
    width: 32px; /* Initial state: star only */
    overflow: hidden;
    padding: 0;
    border: none;
    cursor: default;
}

[dir="rtl"] .product-rating {
    right: auto;
    left: 15px;
}

.product-card:hover .product-rating {
    width: 75px; /* Expand on hover */
    padding: 0 12px;
    gap: 5px;
}

.product-rating i {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-val {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-main);
    white-space: nowrap;
}

.product-card:hover .rating-val {
    max-width: 40px;
    opacity: 1;
}

/* Sliders Styling */
.slider-manual, .slider-auto {
    padding: 20px 0;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

.slider-track {
    display: flex;
    gap: 20px; /* Reduced gap to fit 6 cards */
    transition: transform 0.5s ease-in-out;
    padding: 20px 0;
    width: max-content; 
    min-width: 100%;
    will-change: transform;
}

.slider-track .product-card {
    width: 240px !important; /* Adjusted to fit 6 cards in 1600px container */
    min-width: 240px !important;
    flex: 0 0 240px !important;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .slider-track .product-card {
        width: 280px !important;
        min-width: 280px !important;
        flex: 0 0 280px !important;
    }
}

@media (max-width: 480px) {
    .slider-track .product-card {
        /* 85vw: leaves a peek of the next card so user knows they can scroll */
        width: calc(85vw - 20px) !important;
        min-width: calc(85vw - 20px) !important;
        flex: 0 0 calc(85vw - 20px) !important;
    }
}

.slider-controls {
    display: none; /* Hide old controls as we are moving them to the sides */
}

.slider-container {
    position: relative;
    padding: 0 10px;
    max-width: 100%;
    /* overflow removed to allow buttons to sit outside */
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.slider-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(61, 57, 146, 0.2);
}

.slider-nav-btn.prev {
    right: -7px; 
}

.slider-nav-btn.next {
    left: -7px;
}

@media (max-width: 1200px) {
    .slider-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .slider-nav-btn.prev { right: 5px; }
    .slider-nav-btn.next { left: 5px; }
}

[dir="ltr"] .slider-nav-btn.prev {
    right: auto;
    left: 5px;
}

[dir="ltr"] .slider-nav-btn.next {
    left: auto;
    right: 5px;
}

@media (max-width: 1200px) {
    [dir="ltr"] .slider-nav-btn.prev { left: 5px; right: auto; }
    [dir="ltr"] .slider-nav-btn.next { right: 5px; left: auto; }
}

.view-more-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(61, 57, 146, 0.08);
    padding: 8px 18px;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-more-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.view-more-btn i {
    font-size: 10px;
}


/* Seasonal Grid */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.season-box {
    height: 450px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: right;
    border: 1px solid var(--border-color);
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
}

.season-box:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(61, 57, 146, 0.15);
}

.season-box h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.season-box p {
    color: #f3f4f6;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.summer-box {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(61,57,146,0.8)), url('https://images.unsplash.com/photo-1523381210434-271e8be1f52b?w=800');
}

.winter-box {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(61,57,146,0.8)), url('https://images.unsplash.com/photo-1445205170230-053b83016050?w=800');
}

.season-box .btn {
    border-color: #ffffff;
    color: #ffffff;
}

.season-box .btn:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* Accessories Grid */
.acc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.acc-item {
    background: transparent;
    padding: 0;
    border: none;
    text-align: right;
    border-radius: 0;
    box-shadow: none;
    min-width: 0; 
    margin-bottom: 60px; /* Space between different accessory sliders */
}

[dir="ltr"] .acc-item {
    text-align: left;
}

.acc-item h4 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Mini Product Card for Accessories */
.mini-product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 15px;
    min-width: 200px;
    text-align: center;
    transition: var(--transition);
    border-radius: 8px;
}

.mini-product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(61, 57, 146, 0.08);
}

.mini-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 4px;
}

.mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-product-card h5 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-main);
}

.mini-price {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
}

.btn-mini {
    padding: 8px 15px;
    background: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    width: 100%;
}

.btn-mini:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Review Cards */
.reviews-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
}

.review-card {
    background: var(--bg-surface);
    padding: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    text-align: right;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.review-content {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Testimonials Marquee */
.marquee-container {
    position: relative;
    width: 100%;
}

.marquee-container::before, .marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface) 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface) 0%, transparent 100%);
}

.marquee-track {
    display: inline-flex;
    gap: 30px;
    padding: 10px 0;
    width: max-content;
    animation: marquee-left 30s linear infinite;
}

.marquee-track.reverse {
    animation: marquee-right 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* In RTL, physical translation still applies. Negative X is Left, Positive X is Right. */
@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(50% + 15px)); }
}

@keyframes marquee-right {
    0% { transform: translateX(calc(50% + 15px)); }
    100% { transform: translateX(0); }
}

/* Category Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.cat-item {
    height: 500px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.cat-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cat-item:hover img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(61,57,146,0.9));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px;
    transition: var(--transition);
}

.cat-overlay h3 {
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 2px;
}

/* Footer */
footer {
    background: var(--bg-surface);
    padding: 100px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-column h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-about h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 15px;
}

.footer-about p {
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 20px;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 5;
}

.social-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.social-links a:hover::before {
    height: 100%;
}

.social-links a:hover {
    color: #fff;
    border-color: var(--primary-color);
}

.social-links a i {
    transition: all 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Shop Page Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.shop-sidebar {
    background: var(--bg-surface);
    padding: 30px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
    border-radius: 8px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Modals & Toasts */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-surface);
    padding: 40px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 90%;
    text-align: center;
    border-radius: 8px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 15px 30px;
    font-weight: 600;
    transform: translateY(100px);
    transition: var(--transition);
    z-index: 3000;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(61,57,146,0.3);
}

.toast.show {
    transform: translateY(0);
}

/* Lookbook Page */
.lookbook-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.look-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.look-item.big {
    grid-row: span 2;
}

.look-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .footer-column.footer-about {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 30px;
    }
    .footer-column {
        text-align: center;
    }
    .footer-column ul {
        padding: 0;
        list-style: none;
    }
    .footer-column .social-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }
    .contact-info-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 25px !important;
    }
    .contact-info-footer p {
        text-align: center;
        margin-bottom: 10px;
    }
    .contact-info-footer p i {
        margin: 0 0 0 10px !important; /* Fix icon margin for RTL center */
    }
    .categories-grid, .acc-grid, .grid-2-cols, .reviews-grid {
        grid-template-columns: 1fr;
    }
    .cat-item { height: 350px; }
}

/* Shop Page Layout */
main,
.shop-page,
.shop-page .container,
.shop-page .shop-layout {
    overflow: visible !important;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.shop-sidebar {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 120px;
    height: fit-content;
    z-index: 10;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.filter-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 57, 146, 0.15);
    background-color: #ffffff;
}

/* Modern Custom Dropdowns */
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
}

.sort-options.custom-dropdown {
    width: 250px;
}

.dropdown-selected {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.dropdown-selected:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(61, 57, 146, 0.05);
}

.dropdown-selected.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 57, 146, 0.15);
    background-color: #ffffff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-selected i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 12px;
}

.dropdown-selected.active i {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.dropdown-options.show {
    max-height: 250px;
    opacity: 1;
    overflow-y: auto;
}

.dropdown-option {
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-option:hover {
    background-color: rgba(61, 57, 146, 0.05);
    color: var(--primary-color);
}

.dropdown-option.selected {
    background-color: rgba(61, 57, 146, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-range input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

.price-range input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 57, 146, 0.15);
    background-color: #ffffff;
}

.color-options, .size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-circle:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.size-options span {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.size-options span:hover, .size-options span.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Shop Main */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.view-toggle button {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 15px;
    transition: var(--transition);
}

.view-toggle button.active, .view-toggle button:hover {
    color: var(--primary-color);
}

.sort-options select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 57, 146, 0.15);
    background-color: #ffffff;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination .pages {
    display: flex;
    gap: 10px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-main);
    transition: var(--transition);
    background-color: #ffffff;
}

.pagination a.active, .pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination a.prev, .pagination a.next {
    width: auto;
    padding: 0 20px;
    gap: 10px;
    font-weight: 600;
    border-radius: 8px;
}

.pagination a.prev:hover, .pagination a.next:hover {
    box-shadow: 0 4px 10px rgba(61, 57, 146, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

/* ===================== ABOUT PAGE ===================== */
body:has(.about-page-premium) {
    background-color: #000;
}

.about-page-premium {
    margin-top: -90px;
    padding-top: 0 !important;
    background: #fff;
    overflow: hidden;
}

.about-hero {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
}

.about-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-content .eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.about-hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin: 0;
    text-transform: none;
}

/* Narrative Section */
.about-narrative {
    padding: 120px 0;
    background: #fdfbf7;
}

.narrative-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.narrative-main h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-transform: none;
}

.lead-text {
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-main);
}

.narrative-card {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border-inline-start: 5px solid var(--primary-color);
}

.narrative-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Values Grid */
.about-values {
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-item {
    text-align: center;
    padding: 40px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.value-item:hover {
    background: #fdfbf7;
    transform: translateY(-10px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 25px;
}

.value-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Stats Immersive */
.about-stats-immersive {
    padding: 100px 0;
    background: var(--primary-color);
    color: #fff;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-box .num {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-box .label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Commitment Section */
.about-commitment {
    padding: 120px 0;
}

.commitment-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.commitment-img {
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
}

.commitment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commitment-text h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

.commitment-text p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.signature img {
    height: 60px;
    opacity: 0.5;
}

/* Responsive About */
@media (max-width: 1024px) {
    .about-hero-content h1 { font-size: 48px; }
    .narrative-grid { grid-template-columns: 1fr; gap: 40px; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .commitment-flex { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .about-hero-content h1 { font-size: 36px; }
    .stats-wrapper { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .stat-box .num { font-size: 36px; }
}

/* ===================== CONTACT PAGE ===================== */
.contact-page-premium {
    padding-bottom: 120px;
    background: #fdfbf7;
    margin-top: -90px;
}

body:has(.contact-page-premium) {
    background-color: #fdfbf7;
}

.contact-hero {
    padding: 180px 0 100px;
    background: linear-gradient(to bottom, #fff, transparent);
    text-align: center;
}

.contact-hero-content .eyebrow {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.contact-hero-content h1 {
    font-size: 52px;
    color: var(--text-main);
    margin: 0;
}

.contact-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

/* Info Side */
.info-card-premium {
    padding: 50px;
    background: #fff;
    border-radius: 40px;
    border: 1px solid var(--border-color);
}

.info-card-premium h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.info-card-premium p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-list-modern {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.list-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.item-icon {
    width: 60px;
    height: 60px;
    background: #fdfbf7;
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.item-text .label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-text .val {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.social-modern {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.social-modern h4 {
    font-size: 14px;
    margin-bottom: 20px;
}

.social-grid-modern {
    display: flex;
    gap: 15px;
}

.social-grid-modern a {
    width: 45px;
    height: 45px;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-grid-modern a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

/* Form Side */
.form-card-glass {
    background: #fff;
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    position: relative;
}

.form-card-glass h3 {
    font-size: 28px;
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group-premium {
    margin-bottom: 25px;
}

.form-group-premium label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.form-group-premium input,
.form-group-premium textarea {
    width: 100%;
    padding: 15px 20px;
    background: #fdfbf7;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group-premium .custom-dropdown {
    padding: 0;
    border: none;
    background: transparent;
}

.dropdown-selected {
    padding: 15px 20px;
    background: #fdfbf7;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-selected.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #fff;
    border-color: var(--primary-color);
}

.dropdown-options {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.form-group-premium input:focus,
.form-group-premium textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 10px 20px rgba(61,57,146,0.05);
}

.btn-submit {
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
    margin-top: 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-color-dark, #2a276b);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(61,57,146,0.2);
}

.btn-submit:hover i {
    transform: translate(-5px, -5px) rotate(-10deg);
}

/* Responsive Contact */
@media (max-width: 1024px) {
    .contact-grid-modern { grid-template-columns: 1fr; gap: 40px; }
    .info-card-premium { order: 2; padding: 40px; }
    .form-card-glass { order: 1; padding: 40px; }
    .contact-hero-content h1 { font-size: 42px; }
    .contact-hero { padding: 140px 0 60px; }
}

@media (max-width: 768px) {
    .contact-page-premium { padding-bottom: 60px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-hero-content h1 { font-size: 32px; }
    .info-card-premium { padding: 30px 20px; border-radius: 25px; }
    .form-card-glass { padding: 30px 20px; border-radius: 25px; }
    .item-icon { width: 50px; height: 50px; font-size: 18px; }
    .item-text .val { font-size: 16px; }
}

/* ===================== LOOKBOOK PAGE ===================== */
.lookbook-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 15px;
    margin-top: 50px;
}

.look-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.look-item.big {
    grid-row: span 2;
    aspect-ratio: unset;
}

.look-item.wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.look-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.look-item:hover img { transform: scale(1.06); }

.look-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.look-item:hover .look-overlay { opacity: 1; }

.look-overlay h4 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.look-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 15px;
}



@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .lookbook-gallery { grid-template-columns: 1fr 1fr; }
    .look-item.big { grid-row: span 1; }
    .look-item.wide { grid-column: span 1; aspect-ratio: 3/4; }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; /* Prevent container from blocking background clicks */
}

[dir="rtl"] .chat-widget {
    right: auto;
    left: 30px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 5px 15px rgba(61, 57, 146, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[dir="rtl"] .back-to-top {
    left: auto;
    right: 30px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-gold);
    color: #3d3992;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.chat-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(61, 57, 146, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    pointer-events: auto; /* Enable clicks on the button itself */
}

.chat-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.chat-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-gold);
}

.chat-popup {
    width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    pointer-events: auto; /* Enable clicks on the popup */
}

.chat-popup.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.chat-header-info h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.chat-header-info span {
    font-size: 12px;
    opacity: 0.8;
}

.chat-body {
    padding: 20px;
    background: #f8f9fa;
}

.chat-msg {
    background: white;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

[dir="rtl"] .chat-msg {
    border-radius: 15px 15px 0 15px;
}

.chat-footer {
    padding: 15px 20px;
    background: white;
}

.chat-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.chat-whatsapp-btn:hover {
    background: #128c7e;
    color: white;
}

/* Category Slider */
.category-slider-section {
    padding: 60px 0;
    background: var(--bg-surface);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    text-align: right;
}

[dir="ltr"] .category-header {
    text-align: left;
}

.category-header .header-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.category-header .header-text h2::after {
    left: 0;
    transform: none;
    width: 60px;
}

[dir="rtl"] .category-header .header-text h2::after {
    left: auto;
    right: 0;
}

.category-slider {
    padding: 10px 0;
}

.category-slider .slider-track {
    gap: 40px;
}

.cat-slider-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 150px;
    text-align: center;
    transition: var(--transition);
}

.cat-img-box {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cat-slider-item h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.cat-slider-item:hover {
    transform: translateY(-5px);
}

.cat-slider-item:hover .cat-img-box {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(61, 57, 146, 0.2);
}

.cat-slider-item:hover .cat-img-box img {
    transform: scale(1.1);
}

.cat-slider-item:hover h3 {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .category-slider-section {
        padding: 40px 0;
    }
    .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 25px;
    }
    .category-header .header-text h2 {
        font-size: 1.6rem;
    }
    .category-header .header-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .cat-img-box {
        width: 110px;
        height: 110px;
    }
    /* Reduce gap so 2 items fit properly */
    .category-slider .slider-track {
        gap: 15px;
    }
    .cat-slider-item {
        /* 2 items: (100vw - container_padding*2 - gap) / 2 */
        min-width: calc((100vw - 60px) / 2);
        width: calc((100vw - 60px) / 2);
        flex: 0 0 calc((100vw - 60px) / 2);
    }
}

@media (max-width: 480px) {
    .cat-img-box {
        width: 80px;
        height: 80px;
    }
    .category-slider .slider-track {
        gap: 12px;
    }
    .cat-slider-item {
        min-width: calc((100vw - 52px) / 2);
        width: calc((100vw - 52px) / 2);
        flex: 0 0 calc((100vw - 52px) / 2);
        gap: 8px;
    }
    .cat-slider-item h3 {
        font-size: 12px;
    }
}

/* Pixel-Perfect Promo Grid (Reference Match) */
.promo-grid-section {
    padding: 60px 0;
    background: #ffffff;
    font-family: 'Outfit', 'Cairo', sans-serif;
}

.promo-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

/* 1. Left Section (Banner Ads) */
.promo-banners-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo-banners-col h3.section-label {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.banner-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-card:hover img {
    transform: scale(1.05);
}

.banner-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    text-align: right;
    color: #fff;
}

[dir="ltr"] .banner-card-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 60%);
    text-align: left;
}

.banner-card-overlay h4 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.banner-card-overlay p {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 600;
}

/* 2. Middle Section (Mega Offers - Lavender Box) */
.promo-offers-col {
    background: #f3f1ff; /* Reference lavender background */
    border-radius: 20px;
    padding: 20px;
}

.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.offers-header h2 {
    font-size: 22px;
    font-weight: 900;
    color: #000;
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.offer-card {
    background: #fff;
    border-radius: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    overflow: hidden; /* Clips image/content to border radius */
    transition: 0.3s;
}

.offer-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #7e57c2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0 0 0 10px;
    z-index: 2;
}

[dir="ltr"] .offer-badge {
    right: auto;
    left: 0;
    border-radius: 0 0 10px 0;
}

.offer-plus-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
}

[dir="ltr"] .offer-plus-btn {
    left: auto;
    right: 10px;
}

.offer-plus-btn:hover {
    background: #f0f0f0;
}

.offer-img-box {
    height: 180px; /* Increased height for full width feel */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 100%;
}

.offer-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* User wants it to fill and take radius */
}

.offer-info {
    margin-top: auto;
    padding: 15px;
}

.offer-info h5 {
    font-size: 12px;
    color: #444;
    line-height: 1.4;
    margin-bottom: 8px;
    height: 34px;
    overflow: hidden;
}

.offer-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.offer-price-new {
    font-size: 18px;
    font-weight: 900;
    color: #000;
}

.offer-price-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* 3. Right Section (Promo Grid - Colored Cards) */
.promo-highlights-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlights-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.highlight-card {
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 260px;
    transition: 0.3s;
    overflow: hidden; /* Clips image to border radius */
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.hc-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hc-text {
    text-align: center;
    padding: 15px;
}

.hc-text h4 {
    font-size: 15px;
    font-weight: 900;
    color: #000;
    margin-bottom: 3px;
}

.hc-text p {
    font-size: 11px;
    color: #555;
}

/* Reference Pastel Colors */
.hc-yellow { background: #fff9e6; }
.hc-green  { background: #e6fff2; }
.hc-gray   { background: #f5f5f5; }
.hc-peach  { background: #fff1f1; }

@media (max-width: 1200px) {
    .promo-grid-wrapper {
        grid-template-columns: 1fr;
    }
    .promo-banners-col {
        order: 2;
        flex-direction: row;
    }
    .banner-card { flex: 1; }
}

@media (max-width: 768px) {
    .promo-banners-col { flex-direction: column; }
    .offers-grid, .highlights-grid { grid-template-columns: 1fr; }
}

/* Catalog / Lookbook Page */
/* Lookbook Page - New Artistic Layout */
body:has(.lookbook-page) {
    background-color: #fff;
}

.lookbook-page {
    padding-top: 0;
    padding-bottom: 100px;
    background: #fff;
    overflow: hidden;
}

.lookbook-hero {
    padding: 60px 0 100px 0;
    background: #fdfbf7;
    position: relative;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
}

.hero-image-main {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 600px;
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-text-card {
    padding: 60px;
    background: #fff;
    border-radius: 30px;
    margin-inline-start: -120px; /* Logical property for RTL/LTR */
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

[dir="ltr"] .hero-text-card {
    margin-right: 0;
    margin-left: -120px;
}

[dir="rtl"] .hero-text-card {
    margin-left: 0;
    margin-right: -120px;
}

.hero-text-card h1 {
    font-size: 56px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.elegant-line {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin-bottom: 30px;
}

.hero-text-card p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 400px;
    line-height: 1.8;
}

.explore-scroll {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
}

.explore-scroll i {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* Featured Section */
.lookbook-featured {
    margin: 120px 0;
}

.featured-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.featured-item.reverse {
    direction: rtl;
}

.featured-img {
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-content {
    padding: 40px;
    direction: rtl;
}

.category-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.featured-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
}

.featured-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.lookbook-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lookbook-links a {
    padding: 12px 25px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.3s ease;
}

.lookbook-links a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Mosaic Grid */
.lookbook-mosaic {
    margin-bottom: 120px;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-centered h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.mosaic-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mosaic-item.tall { grid-row: span 2; }
.mosaic-item.wide { grid-column: span 2; }

.mosaic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.mosaic-text span {
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    opacity: 0.8;
}

.mosaic-text h3 {
    color: #fff;
    font-size: 22px;
    margin: 0;
}

.mosaic-item:hover img { transform: scale(1.1); }
.mosaic-item:hover .mosaic-overlay { background: linear-gradient(to top, var(--primary-color), transparent); }

/* Occasions Section */
.lookbook-occasions {
    margin-bottom: 120px;
}

.occasion-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.occasion-card-premium {
    position: relative;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.occ-img {
    width: 100%;
    height: 100%;
}

.occ-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.occ-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, #fff, transparent);
    text-align: center;
}

.occ-info h4 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.occ-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

/* Accessories CTA */
.accessories-cta {
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accessories-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Responsive Lookbook */
@media (max-width: 1024px) {
    .hero-wrapper { 
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .hero-text-card,
    [dir="ltr"] .hero-text-card,
    [dir="rtl"] .hero-text-card { 
        margin: -80px auto 0 auto !important; 
        padding: 30px; 
        text-align: center;
        width: 90% !important;
        max-width: 500px !important;
        position: relative;
        z-index: 5;
    }
    .hero-image-main { 
        height: 400px !important; 
        width: 100% !important;
        margin: 0 !important;
        border-radius: 20px !important;
    }
    .hero-text-card h1 { font-size: 38px; text-align: center; }
    .elegant-line { margin: 0 auto 20px; }
    .hero-text-card p { margin: 0 auto 30px; }
    .explore-scroll { justify-content: center; }
    .lookbook-hero { padding-bottom: 40px !important; }
    .lookbook-featured { margin: 60px 0 !important; }
    .featured-content { padding: 30px 15px; text-align: center; }
    .lookbook-links { justify-content: center; gap: 10px; }
    .lookbook-links a { padding: 10px 15px; font-size: 13px; }
    .featured-item { grid-template-columns: 1fr; gap: 40px; }
    .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
    .occasion-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-text-card h1 { font-size: 32px; }
    .hero-text-card p { font-size: 15px; }
    .featured-img { height: 350px; }
    .featured-content h2 { font-size: 28px; }
    .mosaic-grid { grid-template-columns: 1fr; }
    .mosaic-item.wide { grid-column: auto; }
    .occasion-grid-3 { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 32px; }
}


/* Popular Searches Section */
.trends-section {
    padding-bottom: 80px;
    margin-top: -40px; /* Bring it closer to Accessories */
}

.trends-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.trends-header i {
    color: var(--accent-gold);
    font-size: 20px;
}

.trends-header h3 {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 700;
}

.trends-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.trends-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trends-group-label {
    width: 100%;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trends-group-label i {
    font-size: 12px;
}

.trend-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
}

.trend-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(61, 57, 146, 0.15);
}

.trend-tag.hot {
    border-color: var(--accent-gold);
    color: #3d3992;
}

.trend-tag.hot:hover {
    background: var(--accent-gold);
    color: #fff;
}

@media (max-width: 768px) {
    .trend-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Comprehensive Mobile & Tablet Responsive Fixes */
@media (max-width: 991px) {
    .mobile-toggle {
        display: block !important;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
        order: 3;
    }
    
    .header-actions {
        order: 2;
        margin-inline-start: auto; /* Pushes the icons to the left, away from the logo */
        margin-inline-end: 15px; /* Adds space between icons and hamburger menu */
    }

    .main-nav {
        position: fixed !important;
        top: 90px;
        right: -320px; /* Side menu for RTL */
        left: auto;
        width: 300px;
        max-width: 100%;
        height: calc(100vh - 90px);
        background: #fff;
        z-index: 999;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 25px; /* Reduced padding */
        align-items: flex-start;
        gap: 12px; /* Reduced gap */
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        width: 100%;
        font-size: 15px; /* Slightly smaller text for tighter fit */
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .user-icon-desktop {
        display: none !important;
    }

    header.scrolled .main-nav {
        top: 75px;
        height: calc(100vh - 75px);
    }

    /* Mega Menu Responsive Fix */
    .mega-menu {
        position: fixed;
        top: 90px;
        right: -320px; /* Hidden on right */
        left: auto;
        width: 300px;
        max-width: 100%;
        height: calc(100vh - 90px);
        overflow-y: auto;
        padding: 0;
        z-index: 1000; /* Above main-nav */
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block; /* Override default display:none so it can slide */
    }
    
    .mega-menu.show {
        right: 0;
        animation: none; /* Remove desktop fade animation */
    }

    /* LTR Support for Side Menus */
    html[dir="ltr"] .main-nav, 
    html[dir="ltr"] .mega-menu {
        right: auto;
        left: -320px;
        box-shadow: 5px 0 30px rgba(0,0,0,0.1);
    }

    html[dir="ltr"] .main-nav.active, 
    html[dir="ltr"] .mega-menu.show {
        left: 0;
    }
    
    html[dir="ltr"] .mega-menu-back i {
        transform: scaleX(-1);
    }
    
    .mega-menu-back {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 20px;
        background: var(--bg-main);
        font-weight: 700;
        cursor: pointer;
        border-bottom: 1px solid var(--border-color);
        color: var(--primary-color);
    }

    header.scrolled .mega-menu {
        top: 75px;
        height: calc(100vh - 75px);
    }
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 20px 0;
    }
    .mega-column {
        border: none !important;
        padding: 0 20px;
        text-align: start !important;
        margin-bottom: 25px;
    }
    .mega-column h4 {
        margin-bottom: 15px;
        color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        padding: 40px 0;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        display: none; /* or scale it down */
    }

    .review-card {
        min-width: 320px !important;
        padding: 20px;
    }
    
    .marquee-track {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .nav-wrapper {
        height: 70px;
        padding: 0;
    }
    
    header.scrolled .nav-wrapper {
        height: 60px;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    header.scrolled .logo img {
        height: 35px !important;
    }
    
    /* Hide language toggle on small screens to save space */
    .header-actions .lang-toggle {
        display: none !important;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .action-icons {
        gap: 8px;
    }
    
    .action-icons a {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .search-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .main-nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    header.scrolled .main-nav {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .hero h1 {
        font-size: 28px !important;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: 100%;
        margin: 0 !important;
    }

    .slider-header h2 {
        font-size: 22px;
    }
    
    .footer-column h4 {
        font-size: 16px;
    }
    
    .trends-grid {
        gap: 15px;
    }
}

@media (max-width: 400px) {
    .nav-wrapper {
        padding: 0 5px;
    }
    .header-actions {
        gap: 4px;
    }
    .action-icons {
        gap: 4px;
    }
    .action-icons a {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .search-toggle {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    .mobile-toggle {
        font-size: 18px;
        padding-inline-end: 5px;
    }
    .review-card {
        min-width: 280px !important;
    }
}

/* Mobile Section Headers & Card Scaling */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 35px;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header span {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 25px;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .section-header span {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
    .section {
        padding: 35px 0;
    }

    /* Compact product cards for mobile slider */
    .slider-track .product-card .product-info {
        padding: 12px;
    }
    .slider-track .product-card .product-name {
        font-size: 13px;
    }
    .slider-track .product-card .new-price,
    .slider-track .product-card .product-price {
        font-size: 15px;
    }
    .slider-track .product-card .cart-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Sub-section header & card size scaling on mobile */
@media (max-width: 768px) {
    .slider-header h4 {
        font-size: 16px;
    }
    .view-more-btn {
        font-size: 12px;
    }
    .slider-header {
        margin-bottom: 12px !important;
    }
    /* Slightly reduce image height ratio for less vertical scroll */
    .slider-track .product-card .product-image {
        aspect-ratio: 3/3.5;
    }
}

@media (max-width: 480px) {
    .slider-header h4 {
        font-size: 14px;
        font-weight: 700;
    }
    .view-more-btn {
        font-size: 11px;
        gap: 4px;
    }
    .view-more-btn i {
        font-size: 10px;
    }
    /* Compact image ratio for small screens */
    .slider-track .product-card .product-image {
        aspect-ratio: 3/3;
    }
    /* Reduce nav buttons slightly */
    .slider-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

/* Shop Mobile Specific */
.shop-categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-link {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    transition: var(--transition);
    border-right: 3px solid transparent;
}

[dir="ltr"] .cat-link {
    border-right: none;
    border-left: 3px solid transparent;
}

.cat-link:hover, .cat-link.active {
    background: rgba(61, 57, 146, 0.08);
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding-inline-start: 20px;
}

.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    gap: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(61, 57, 146, 0.2);
}

.sidebar-header-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
    .shop-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
    }
    
    .filter-toggle-btn {
        display: flex;
        max-width: 400px;
        margin: 0 auto 30px auto;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        z-index: 10000;
        background: #fff;
        padding: 30px;
        overflow-y: auto;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        border: none;
        border-radius: 0;
    }

    [dir="ltr"] .shop-sidebar {
        right: auto;
        left: -100%;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }

    .shop-sidebar.active {
        right: 0;
    }

    [dir="ltr"] .shop-sidebar.active {
        right: auto;
        left: 0;
    }

    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-header-mobile h3 {
        color: var(--primary-color);
        margin: 0;
        font-size: 18px;
    }
    
    .close-sidebar {
        background: #f5f5f5;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        font-size: 16px;
        color: var(--text-main);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .shop-main {
        width: 100%;
    }

    .shop-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .sort-options.custom-dropdown {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .shop-main .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shop-main .product-grid.list-view {
        grid-template-columns: 1fr;
    }

    .shop-main .product-grid.list-view .product-card {
        padding: 0;
        gap: 0;
    }

    .shop-main .product-grid.list-view .product-image {
        width: 140px;
        min-height: 180px;
    }

    .shop-main .product-grid.list-view .product-info {
        padding: 15px;
    }
    
    .shop-main .product-card .product-info {
        padding: 10px;
    }
    
    .shop-main .product-card .product-name {
        font-size: 12px;
        height: 34px;
        overflow: hidden;
    }
    
    .shop-main .product-card .new-price,
    .shop-main .product-card .product-price {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .shop-main .product-card .cart-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        bottom: 10px;
        left: 10px;
    }

    .pagination {
        gap: 10px;
    }

    .pagination a.prev, .pagination a.next {
        padding: 0 15px;
        font-size: 13px;
    }

    .pagination .btn-text {
        display: none;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }
    
    .shop-main .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .shop-main .product-grid.list-view {
        grid-template-columns: 1fr;
    }
    
    .shop-main .product-card .product-info {
        padding: 8px;
    }
    
    .shop-main .product-card .product-name {
        font-size: 11px;
        line-height: 1.3;
        height: 28px;
    }
    
    .shop-main .product-card .product-price span {
        font-size: 13px;
    }
    
    .product-price .old-price {
        font-size: 11px;
    }
    
    .shop-main .product-card .cart-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
        bottom: 8px;
        left: 8px;
    }



    .shop-controls {
        padding: 10px;
        margin-bottom: 20px;
    }

    .view-toggle button {
        font-size: 16px;
        margin-left: 10px;
    }
    
    .dropdown-selected {
        padding: 10px;
        font-size: 12px;
    }

    /* Footer adjustments for very small screens */
    .footer-grid {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }
    
    .footer-column ul li {
        margin-bottom: 10px;
    }
    
    .footer-column ul li a {
        font-size: 12px;
    }

    .footer-about p {
        font-size: 13px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Shop View Transition */
#shop-view, #product-detail-view {
    transition: opacity 0.3s ease-in-out;
}

#product-detail-view {
    opacity: 0;
}

/* Product Detail View (SPA Style) */
.shop-page.detail-active {
    padding: 20px 0;
}

.detail-page-wrapper {
    padding: 0;
}

.back-to-shop {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 40px;
    transition: var(--transition);
    padding: 10px 0;
}

.back-to-shop:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

[dir="rtl"] .back-to-shop:hover {
    transform: translateX(5px);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.detail-gallery {
    position: sticky;
    top: 100px;
}

.main-img-container {
    background: #fdfdfd;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    aspect-ratio: 3/4;
    max-width: 480px;
    margin: 0 auto;
}

.main-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-branch-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

[dir="rtl"] .detail-branch-badge {
    right: auto;
    left: 30px;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-info h1 {
    font-size: 42px;
    color: var(--text-main);
    font-weight: 900;
    line-height: 1.2;
}

.detail-price-box {
    display: flex;
    align-items: center;
    gap: 25px;
}

.detail-current-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
}

.detail-current-price small {
    font-size: 16px;
}

.detail-old-price {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-description h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.detail-description h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

[dir="ltr"] .detail-description h3::after {
    right: auto;
    left: 0;
}

.detail-description p {
    color: var(--text-muted);
    line-height: 2;
    font-size: 16px;
}

.detail-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.option-item h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-size-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-opt {
    width: 60px;
    height: 50px;
    border: 2px solid #eee;
    background: white;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.size-opt.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(61, 57, 146, 0.2);
}

.detail-qty-selector {
    display: inline-flex;
    align-items: center;
    background: #f8f8f8;
    padding: 6px;
    border-radius: 15px;
}

.detail-qty-selector .qty-btn {
    width: 38px;
    height: 38px;
    background: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.detail-qty-selector input {
    width: 60px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.detail-qty-selector input::-webkit-outer-spin-button,
.detail-qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.detail-footer-actions {
    display: flex;
    gap: 20px;
}

.add-to-cart-hero {
    flex: 1;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 18px;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 15px 35px rgba(61, 57, 146, 0.25);
}

.add-to-cart-hero:hover {
    background: var(--text-main);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.detail-wishlist-btn {
    width: 64px;
    height: 64px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
}

.detail-wishlist-btn:hover {
    background: #fff0f0;
    color: #e53935;
    border-color: #ffdada;
}

@media (max-width: 1100px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .detail-gallery {
        position: static;
    }
    .main-img-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .product-detail-content {
        padding: 0 0 25px 0;
        border-radius: 20px;
        gap: 25px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        overflow: hidden;
    }
    .main-img-container {
        border-radius: 0;
        max-width: 100%;
    }
    .detail-info {
        padding: 0 20px;
        gap: 20px;
    }
    .detail-info h1 {
        font-size: 26px;
    }
    .detail-current-price {
        font-size: 28px;
    }
    .detail-old-price {
        font-size: 16px;
    }
    .detail-description h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .detail-description p {
        font-size: 14px;
        line-height: 1.8;
    }
    .detail-options {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }
    .option-item h4 {
        margin-bottom: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .back-to-shop {
        margin-bottom: 20px;
        font-size: 15px;
    }
    .product-detail-content {
        padding: 0 0 20px 0;
        border-radius: 16px;
        gap: 20px;
    }
    .detail-info {
        padding: 0 15px;
    }
    .detail-info h1 {
        font-size: 22px;
    }
    .detail-price-box {
        gap: 15px;
    }
    .detail-current-price {
        font-size: 24px;
    }
    .size-opt {
        width: 50px;
        height: 45px;
        font-size: 14px;
    }
    .detail-qty-selector input {
        width: 45px;
        font-size: 16px;
    }
    .detail-qty-selector .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .detail-footer-actions {
        display: flex;
        flex-direction: row;
        gap: 12px;
        margin-top: 10px;
    }
    .add-to-cart-hero {
        height: 55px;
        font-size: 16px;
        border-radius: 14px;
    }
    .detail-wishlist-btn {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        font-size: 20px;
        flex-shrink: 0;
    }
    .detail-branch-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    [dir="rtl"] .detail-branch-badge {
        left: 15px;
        right: auto;
    }
}

/* Hide icon on desktop (text label is shown instead) */
@media (min-width: 601px) {
    .view-btn i {
        display: none;
    }
    [dir="ltr"] .view-btn i {
        display: none;
    }
}

@media (max-width: 600px) {
    .view-btn span {
        display: none !important;
    }
    .view-btn {
        width: 45px !important;
        height: 45px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        flex-shrink: 0;
    }
    .view-btn i {
        margin: 0 !important;
        display: inline-block !important;
        font-size: 18px !important;
    }

    /* Wrap text, expand vertically, and move to center on hover for small screens */
    .product-card:hover .branch-badge, [dir="rtl"] .product-card:hover .branch-badge {
        height: auto;
        padding: 6px 15px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: max-content;
        max-width: 90%;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    .product-card:hover .branch-badge .branch-name {
        white-space: nowrap;
        margin-inline-start: 0;
        margin-top: 0;
    }

    /* Reduce gap between product name and price */
    .shop-main .product-card .product-info .product-name {
        margin-bottom: 2px !important;
        height: auto !important; /* Allow it to shrink if it's only one line */
        min-height: 28px;
    }
}

@media (max-width: 400px) {
    .product-card:hover .branch-badge .branch-name,
    .detail-branch-badge .branch-name {
        font-size: 9px !important;
    }
}
