/* CSS Variables */
:root {
    /* New Palette: Al Hosn Inspired */
    --primary-color: #142364;
    /* Navy Blue from Image */
    --secondary-color: #ffffff;
    /* Pure White Background */
    --accent-color: #142364;
    /* Navy Blue Accent */
    --accent-hover: #1c2e7a;
    /* Lighter Navy for hover */

    --text-color: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --font-main: 'Outfit', sans-serif;
    --container-width: 1440px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Announcement Bar */
.announcement-bar {
    background-color: #ffffff;
    /* White background */
    color: #142364;
    /* Navy blue text */
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.announcement-slider {
    position: relative;
    width: 100%;
    height: 20px;
}

.announcement-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.announcement-slide.active {
    opacity: 1;
}

.announcement-slide p {
    margin: 0;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    /* backdrop-filter: none; removed to avoid blur */
}

.main-header.menu-open {
    z-index: 11000;
}

.main-header.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-top {
    display: flex;
    justify-content: space-between;
    padding: 8px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: #ffffff;
}

.header-top a {
    margin-right: 15px;
    color: #ffffff;
    opacity: 0.8;
}

.header-top a:hover {
    opacity: 1;
}

.header-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "nav logo actions";
    align-items: center;
    padding: 0 40px;
    height: 100px;
    position: relative;
    transition: all 0.3s ease;
    max-width: 1400px;
    margin: 0 auto;
}

.main-header.scrolled .header-main {
    height: 85px;
    /* Increased from 75px */
}

/* Clean hide for mobile elements on desktop */
@media (min-width: 769px) {

    .mobile-header-left,
    .mobile-menu-toggle,
    .mobile-menu-header,
    .mobile-welcome-link,
    .mobile-welcome,
    .mobile-search-container,
    .mobile-menu-footer,
    .main-nav .menu-icon {
        display: none !important;
    }
}

/* Nav */
.main-nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* In RTL, flex-start is the right side, which keeps the nav away from the centered logo */
html[dir="rtl"] .main-nav {
    justify-content: flex-start;
}

@media (min-width: 769px) {
    .main-nav .menu-icon {
        display: none;
    }
}

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    color: #ffffff;
    position: relative;
    padding: 10px 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffd700;
}

/* Logo */
.logo {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: auto;
    width: 160px;
    /* Reduced from 190px */
    max-height: 65px;
    /* Reduced from 80px */
    object-fit: contain;
    transition: all 0.3s ease;
    /* High Quality Rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    /* Force GPU acceleration for sharpness */
    backface-visibility: hidden;
}

.main-header.scrolled .logo img {
    width: 130px;
    max-height: 50px;
}

.mobile-logo img {
    width: 115px;
    /* Reduced from 130px */
    height: auto;
    max-height: 48px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

/* Actions */
.header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Standard e-commerce placement */
    gap: 25px;
}

.icon-link {
    font-size: 20px;
    color: #ffffff;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #142364;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    padding: 10px 0;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown-menu li {
    width: 100%;
    display: block;
}

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

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}



.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 60px;
    text-align: center;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #fafafa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon-wrapper {
    background-color: var(--text-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-info-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-info-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: var(--primary-color);
}

/* Contact Form Styles */
.contact-form-container {
    margin-top: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.contact-btn {
    background-color: var(--text-color);
    color: #fff;
    padding: 18px 40px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-self: center;
    transition: all 0.3s ease;
    min-width: 200px;
    margin-top: 10px;
}

.contact-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.search-bar {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    padding-left: 8px;
    font-family: var(--font-main);
    font-size: 14px;
}

.icon-link {
    font-size: 20px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* White text for better contrast on image */
    position: relative;
}

.hero-section::before {
    display: none;
}

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

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Categories Section */
.categories-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 60px var(--spacing-lg);
    background-color: #ffffff;
    width: 100%;
    justify-items: center;
    /* Center items in grid cells */
    max-width: var(--container-width);
    /* Ensure it doesn't stretch too wide */
    margin: 0 auto;
}

@media (max-width: 768px) {
    .categories-section {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        padding: 40px 20px;
        gap: 15px;
        /* Smaller gap on mobile */
    }
}

.category-card {
    width: 100%;
    /* Full width of grid cell */
    max-width: 160px;
    /* Max size on desktop */
    /* Height auto to allow text below */
    height: auto;
    position: relative;
    /* Removing border-radius overflow specific to image only now */
    border-radius: 0;
    cursor: pointer;
    /* box-shadow removed for flat look below */
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Make the last two items span half width (3/6) - REMOVED for 6 items layout */
/* .category-card:nth-last-child(2),
.category-card:last-child {
    grid-column: span 3;
} */
.category-card::after {
    display: none;
}

.category-card:hover::after {
    background: rgba(0, 0, 0, 0.05);
}

.cat-image {
    width: 100%;
    /* Responsive width */
    height: auto;
    aspect-ratio: 1/1;
    /* Square aspect ratio */
    border-radius: 12px;
    /* Border radius applied to image */
    background-color: #f0f0f0;
    transition: transform 0.5s ease;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Shadow on image */
}

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

.cat-overlay {
    position: relative;
    /* Changed from absolute to flow relative */
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    background: none;
    /* No background needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    padding: 15px 0 0 0;
    /* Padding top for spacing */
    opacity: 1 !important;
    /* Always visible */
    transform: none !important;
    /* No movement */
}

.cat-overlay h3 {
    color: var(--text-color);
    /* Dark text */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: none;
    /* SQL shadow removal */
    text-transform: none;
    /* Optional: Keep title case */
    letter-spacing: 0.5px;
}

.cat-overlay .btn-link {
    display: none;
    /* Hide 'Shop Now' button, just title is enough */
}

.btn-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 4px;
    transition: color 0.3s, border-color 0.3s;
}

.btn-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Product Carousel */
.product-carousel {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.view-all {
    font-weight: 600;
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.product-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    background-color: #fff;
    /* Ensure card has background */
    padding: 8px;
    /* Add padding inside card */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(20, 35, 100, 0.15);
    /* Navy blue shadow */
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    /* Remove border for cleaner look */
    border-radius: 4px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.badge.new {
    background-color: var(--accent-color);
}

.badge.sale {
    background-color: #d32f2f;
    /* Keep red for sale or change to accent? Let's keep red for urgency */
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    color: var(--text-light);
}

.wishlist-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.1);
}

.add-to-cart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    /* Slightly larger */
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    opacity: 0;
    transform: translateY(20px);
    color: var(--primary-color);
    font-size: 16px;
    z-index: 2;
}

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

.add-to-cart-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(20, 35, 100, 0.4);
}

@media (max-width: 768px) {
    .add-to-cart-btn {
        opacity: 1;
        transform: translateY(0);
        width: 32px;
        height: 32px;
        bottom: 8px;
        right: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

.product-info {
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.product-info h4 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--accent-color);
    /* Restored orange price */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
    line-height: 1.2;
    padding-top: 2px;
}

.price .old-price {
    font-size: 11px;
    font-weight: 400;
    text-decoration: line-through;
    color: #999;
}

/* Old price styles handled within .price */

.colors {
    display: flex;
    gap: 6px;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ddd;
}


/* Sustainability Banner */
/* Sustainability Banner */
.sustainability-banner {
    background-color: var(--accent-color);
    /* Burnt Orange */
    color: #ffffff;
    /* White text */
    padding: 120px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sustainability-banner .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.sustainability-banner .btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.banner-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

.banner-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #ffffff;
    /* White for paragraph */
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 16px 48px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Footer */
footer,
.main-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 40px 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 1.2fr;
    /* 5 Columns Layout */
    gap: 30px;
    /* Reduced gap to fit */
    margin-bottom: 60px;
}

/* Brand Column Styles */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.footer-logo img {
    height: auto;
    width: 150px;
    /* Elegant footer size */
    max-height: 60px;
    object-fit: contain;
}

.brand-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #eee;
    margin-bottom: 20px;
    max-width: 90%;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #fff;
    font-size: 18px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--accent-color);
}

/* End Brand Column Styles */

.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #eeeeee;
    /* Clean white-ish text */
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    margin-top: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
    background-color: #fff;
    color: #000;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--accent-hover);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    font-size: 12px;
    color: #ffffff;
}

.footer-bottom-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-copyright p {
    margin: 0;
}

.footer-legal-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent-color);
}

.payment-icons {
    font-size: 24px;
    display: flex;
    gap: 15px;
}

.payment-icons i {
    opacity: 1;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.payment-icons i:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-section {
        justify-content: center;
    }
}

/* Mobile features are now correctly scoped to media queries */

/* --- Mobile View Overrides --- */
@media (max-width: 768px) {
    .header-main {
        padding: 0 15px;
        height: 90px;
        /* Increased for mobile clarity */
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "toggle logo actions";
    }

    .mobile-header-left {
        grid-area: toggle;
        display: flex !important;
        align-items: center;
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: block !important;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-login-btn {
        display: block;
        color: #fff;
        font-size: 20px;
    }

    .desktop-login-btn {
        display: none !important;
    }

    .logo {
        grid-area: logo;
        justify-content: center;
    }

    .header-actions {
        grid-area: actions;
    }

    .lang-switch-action {
        display: none !important;
    }

    /* Footer Mobile Arrangement */
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .footer-col {
        width: 100% !important;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 0;
    }

    html[dir="rtl"] .footer-col {
        text-align: right;
    }

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

    .footer-col ul {
        align-items: center;
    }

    .footer-logo,
    .footer-social {
        justify-content: center;
    }

    .brand-desc {
        text-align: center;
        margin: 0 auto 20px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input {
        border-right: 1px solid #ccc;
        /* Restore border */
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .payment-icons {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .footer-bottom-info {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .footer-legal-links {
        order: 1;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .footer-copyright {
        order: 2;
        /* Copyright at the very bottom */
        opacity: 0.7;
        font-size: 11px;
    }

    /* Mobile Footer Accordion Fix */
    .footer-col h5.accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 14px;
        color: #fff;
    }

    html[dir="rtl"] .footer-col h5.accordion-header {
        flex-direction: row;
        /* Key fix for RTL */
        text-align: right;
    }

    .accordion-header i {
        font-size: 12px;
        transition: transform 0.3s ease;
        opacity: 0.6;
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }

    .accordion-content.active {
        opacity: 1;
        max-height: 500px;
        padding: 15px 0 25px;
    }

    .footer-col ul {
        align-items: flex-start;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    html[dir="rtl"] .footer-col ul {
        align-items: flex-start;
    }

    .footer-col ul li a {
        padding: 5px 10px;
        display: block;
        font-size: 13px;
        opacity: 0.8;
        transition: all 0.3s ease;
        border-radius: 4px;
        color: #fff !important;
    }

    .footer-col ul li a:hover {
        background: rgba(255, 255, 255, 0.08);
        opacity: 1;
    }

    /* Newsletter Fix */
    .newsletter-col {
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }

    .newsletter-form {
        margin-top: 20px;
    }

    .newsletter-form input {
        text-align: center;
        border-radius: 4px !important;
    }

    .newsletter-form button {
        border-radius: 4px !important;
    }



    /* Improved Side Drawer */
    .main-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        z-index: 11000;
        display: flex !important;
        flex-direction: column;
        padding: 0;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
    }

    html[dir="rtl"] .main-nav {
        left: auto;
        right: 0;
        transform: translateX(100%);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav a:hover {
        background: #f9f9f9;
        color: var(--primary-color) !important;
    }

    html[dir="rtl"] .main-nav.active {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 30px 20px;
        background: var(--primary-color);
        position: relative;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-logo img {
        height: 35px;
        width: auto;
    }

    .close-menu {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 20px;
        color: #ffffff;
        cursor: pointer;
        padding: 5px;
        z-index: 10;
    }

    html[dir="rtl"] .close-menu {
        right: auto;
        left: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        padding: 15px 0;
    }

    .main-nav li {
        width: 100%;
        margin: 0;
    }

    .main-nav a {
        color: #1a1a1a !important;
        padding: 18px 25px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        font-size: 15px;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.2s;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }



    .main-nav .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        background: #f5f5f5;
        transform: none;
        box-shadow: none;
        padding: 10px 0;
        margin: 0;
        border: none;
        width: 100%;
        border-radius: 0;
    }

    .main-nav .dropdown-menu a {
        font-size: 14px;
        font-weight: 400;
        padding: 12px 25px 12px 45px;
        text-transform: none;
        letter-spacing: 0;
    }

    .main-nav li.active .dropdown-menu {
        display: block;
    }

    /* Mobile Side Menu Enhancements */
    .mobile-welcome-link {
        display: block;
        text-decoration: none !important;
        background: var(--primary-color);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-welcome {
        display: flex;
        align-items: center;
        padding: 25px;
        gap: 15px;
    }

    .welcome-icon {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .welcome-text {
        flex: 1;
    }

    .welcome-text p {
        color: rgba(255, 255, 255, 0.6);
        font-size: 11px;
        margin-bottom: 2px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .welcome-text h3 {
        color: #fff;
        font-size: 15px;
        margin: 0;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    .welcome-arrow {
        color: rgba(255, 255, 255, 0.3);
        font-size: 12px;
    }

    html[dir="rtl"] .welcome-text {
        text-align: right;
    }

    html[dir="rtl"] .welcome-icon {
        margin-left: 0;
    }

    .menu-title-with-icon {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .menu-icon {
        display: block !important;
        font-size: 14px;
        width: 20px;
        text-align: center;
        opacity: 0.7;
    }

    .mobile-search-container {
        display: block;
        padding: 15px 25px;
        border-bottom: 1px solid #f0f0f0;
        background: #ffffff;
    }

    .mobile-search-container input {
        width: 100%;
        padding: 12px 15px;
        background: #f9f9f9;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        color: #1a1a1a;
        font-family: var(--font-main);
    }

    .mobile-search-container input::placeholder {
        color: #999;
    }

    .mobile-search-container button {
        position: absolute;
        right: 35px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--primary-color);
    }

    .mobile-search-container form {
        position: relative;
        display: flex;
        align-items: center;
    }

    .mobile-search-container input {
        width: 100%;
        padding: 12px 40px 12px 15px;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        font-size: 14px;
        background: #fdfdfd;
        transition: border-color 0.3s;
    }

    html[dir="rtl"] .mobile-search-container input {
        padding: 12px 15px 12px 40px;
    }

    .mobile-search-container input:focus {
        border-color: var(--primary-color);
        outline: none;
    }

    .mobile-search-container button {
        position: absolute;
        right: 12px;
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 16px;
        cursor: pointer;
    }

    html[dir="rtl"] .mobile-search-container button {
        right: auto;
        left: 12px;
    }

    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        margin-top: auto;
        padding: 25px;
        border-top: 1px solid #f0f0f0;
        background: #ffffff;
    }

    .mobile-quick-support {
        margin: 0 0 25px 0;
        padding: 20px 25px;
        background: #fff;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
    }

    .mobile-quick-support p {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        text-align: center;
    }

    .support-wa-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: #25D366;
        color: #fff !important;
        padding: 14px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s ease;
        width: 100%;
        /* Stretch button */
    }



    .mobile-menu-actions {
        margin-bottom: 25px;
        display: flex;
        justify-content: center;
    }

    .mobile-lang-switch {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--primary-color) !important;
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
        padding: 8px 15px;
        border-radius: 6px;
        transition: all 0.2s;
    }

    .mobile-lang-switch:hover {
        background: #f0f0f0;
    }

    .mobile-social-links {
        display: flex;
        gap: 20px;
        justify-content: center;
        width: 100%;
    }

    .mobile-social-links a {
        color: var(--primary-color) !important;
        font-size: 20px;
        transition: all 0.2s;
        border: none !important;
        padding: 10px !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .mobile-social-links a:hover {
        background: #f0f0f0 !important;
        transform: translateY(-3px);
    }

    /* Mobile Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        /* Removed dark shadow */
        z-index: 10000;
        /* Just below the menu/header open state */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}



/* Quick View Button (Global) */
.quick-view-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    width: 80%;
}

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

.quick-view-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Modal (Global) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    width: 800px;
    max-width: 90%;
    position: relative;
    display: flex;
    gap: 20px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    display: flex;
    width: 100%;
    gap: 20px;
}

.modal-image {
    width: 50%;
    height: 400px;
    background-color: #f0f0f0;
}

.modal-details {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    margin-bottom: 10px;
}

.qv-actions {
    margin-top: 20px;
}

/* Placeholder Backgrounds */
.placeholder-bg {
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

/* =========================================
   Product Page Styles
   ========================================= */

.product-page-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px var(--spacing-md) 30px;
    /* Increased top padding */
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    /* Slightly larger for better readability */
    color: var(--text-light);
    margin-bottom: 30px;
    /* Increased space below breadcrumbs */
}

.breadcrumbs a {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-color);
    font-weight: 600;
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    /* Reduced from 1.5fr */
    gap: 40px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: row-reverse;
    /* Thumbnails on the outer edge */
    gap: 20px;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 85px;
    flex-shrink: 0;
}

.thumb {
    width: 80px;
    height: 100px;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image {
    flex: 1;
    position: relative;
    background-color: #fcfcfc;
    height: 600px;
    /* Force a consistent height */
    overflow: hidden;
    border-radius: 8px;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Product Details Column */
.product-details {
    padding-top: 10px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-price-container {
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-left: 12px;
}

.product-rating {
    font-size: 14px;
    color: #fbc02d;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating span {
    color: var(--text-light);
    margin-left: 5px;
    font-size: 13px;
}

.payment-installments {
    font-size: 13px;
    background-color: #fcf8f3;
    /* Light cream */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #f1e6d5;
    color: #4a3e2e;
}

.tabby {
    font-weight: 700;
    color: #000;
    background: #50e3c2;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    margin-left: 4px;
}

/* Delivery Timer Box */
.delivery-timer-box {
    background: #fcf8f3;
    /* Light cream */
    border: 1px solid #f1e6d5;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.delivery-timer-box i {
    color: #4a3e2e;
    font-size: 22px;
}

.delivery-timer-content {
    flex: 1;
}

#countdown-text {
    display: block;
    font-size: 14px;
    color: #4a3e2e;
    font-weight: 700;
    margin-bottom: 4px;
}

.delivery-timer-sub {
    font-size: 11px;
    color: #8c7e6a;
    font-weight: 500;
}

/* Gift Wrap Styles */
.gift-wrap-container {
    margin: 25px 0;
}

.gift-wrap-option {
    display: block;
    cursor: pointer;
    background: #fff;
    border: 1px solid #eee;
    padding: 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-wrap-option:hover {
    border-color: #d1b894;
    background: #fdfaf7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.gift-wrap-option input {
    display: none;
    /* Hide real checkbox */
}

.gift-wrap-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gift-wrap-content i {
    font-size: 24px;
    color: #d1b894;
}

.gift-wrap-text {
    flex: 1;
}

.gift-wrap-title {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.gift-wrap-price {
    font-size: 12px;
    color: #d1b894;
    font-weight: 600;
    margin-top: 2px;
}

.gift-wrap-option:has(input:checked) {
    border-color: #000;
    background: #fdfaf7;
}

/* Fallback/additional for checked state if we use a sibling selector */
#gift-wrap-checkbox:checked+.gift-wrap-content .gift-wrap-title {
    color: var(--primary-color);
}

/* Options */
.option-group {
    margin-bottom: 30px;
}

.option-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.color-selector {
    display: flex;
    gap: 10px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
}

.color-swatch.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.size-guide-link {
    font-size: 12px;
    text-decoration: underline;
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    min-width: 50px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: #999;
}

.size-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.add-to-bag-btn {
    flex: 1;
    height: 50px;
    font-size: 16px;
}

.wishlist-action-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}


/* Accordions */
.product-info-accordions {
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    padding: 15px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

/* Responsive Product Page */
@media (max-width: 768px) {
    .categories-section {
        gap: 10px;
    }

    .category-card {
        width: 100%;
        height: auto;
        /* Remove fixed constraints */
        flex: none;
    }

    /* Product Page Container */
    .product-page-container {
        padding: 15px;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 11px;
        margin-bottom: 15px;
    }

    /* Product Layout */
    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Fix for RTL Mobile - FORCED */
    html[dir="rtl"] .product-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
    }

    html[dir="rtl"] .product-gallery {
        display: flex !important;
        flex-direction: column !important;
        /* Main image top, thumbs bottom */
        width: 100% !important;
    }

    html[dir="rtl"] .thumbnail-list {
        display: flex !important;
        flex-direction: row !important;
        /* Horizontal thumbs */
        width: 100% !important;
        overflow-x: auto !important;
        order: 2 !important;
        /* Thumbs below main image */
        margin-top: 10px !important;
    }

    html[dir="rtl"] .main-image {
        width: 100% !important;
        order: 1 !important;
        /* Main image on top */
    }

    /* Product Gallery */
    .product-gallery {
        flex-direction: column-reverse;
        /* Thumbnails below main image */
        gap: 15px;
    }

    .thumbnail-list {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 8px;
    }

    .thumb {
        flex-shrink: 0;
        width: 60px;
        height: 75px;
    }

    .main-image {
        height: auto;
        min-height: 300px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        background: #f9f9f9;
        width: 100%;
    }

    .main-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    /* Product Details */
    .product-details {
        padding-top: 25px;
        clear: both;
    }

    .product-title {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .product-price-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .product-price {
        font-size: 22px;
    }

    .old-price {
        font-size: 16px;
    }

    .payment-installments {
        font-size: 11px;
        padding: 8px;
        margin-bottom: 20px;
    }

    /* Product Options */
    .option-group {
        margin-bottom: 20px;
    }

    .size-selector {
        gap: 8px;
    }

    .size-btn {
        min-width: 45px;
        height: 38px;
        font-size: 13px;
    }

    /* Product Actions */
    .product-actions {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 30px;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .add-to-bag-btn {
        width: 100%;
        height: 48px;
        font-size: 15px;
    }

    .wishlist-action-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    /* Accordions */
    .accordion-header {
        padding: 12px 0;
        font-size: 13px;
    }

    .accordion-content p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Bundle Section */
    .bundle-section {
        margin-top: 40px !important;
        padding: 20px 15px !important;
    }

    .bundle-container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .bundle-images {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bundle-img-wrapper img {
        width: 80px !important;
        height: 100px !important;
    }

    .bundle-info ul {
        margin-bottom: 15px !important;
    }

    .bundle-info li {
        font-size: 13px;
        margin-bottom: 8px !important;
    }

    .bundle-total-price {
        font-size: 16px !important;
    }

    #bundle-total-display {
        font-size: 20px !important;
    }

    /* Related Products */
    .related-products {
        margin-top: 40px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        margin-bottom: 0;
    }

    .product-card .product-image {
        height: 200px;
    }

    .product-card h4 {
        font-size: 13px;
    }

    .product-card .price {
        font-size: 14px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .product-page-container {
        padding: 10px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 18px;
    }

    .main-image {
        min-height: 300px;
        max-height: none;
    }

    .thumb {
        width: 50px;
        height: 65px;
    }

    .size-btn {
        min-width: 40px;
        height: 36px;
        font-size: 12px;
    }

    .add-to-bag-btn {
        height: 45px;
        font-size: 14px;
    }

    .bundle-section {
        padding: 15px 10px !important;
    }

    .section-header h2 {
        font-size: 18px;
    }
}

/* =========================================
   Category Page Styles
   ========================================= */

.category-hero {
    background-color: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.cat-hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cat-hero-content p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.category-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md) 60px;
    display: flex;
    gap: 40px;
}

/* Sidebar Filters */
.filters-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

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

.filter-group h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.filter-group ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.filter-group ul li label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Category Products Grid */
.category-products {
    flex: 1;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.sort-by select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    margin-left: 5px;
    font-family: var(--font-main);
}

.products-grid.three-col {
    grid-template-columns: repeat(4, 1fr);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    font-weight: 600;
    font-size: 14px;
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Responsive Category */
@media (max-width: 1024px) {
    .category-container {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        display: none;
        /* Hide sidebar on mobile for now, or make it a toggle */
    }

    .products-grid.three-col {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .products-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Language Switcher */
.lang-switch {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 16px;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .header-top {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-top a {
    margin-right: 0;
    margin-left: 16px;
}

html[dir="rtl"] .search-bar {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .search-bar input {
    padding-left: 0;
    padding-right: 8px;
}

html[dir="rtl"] .cart-count {
    right: auto;
    left: -8px;
}

html[dir="rtl"] .badge {
    left: auto;
    right: 10px;
}

html[dir="rtl"] .wishlist-btn {
    right: auto;
    left: 10px;
}

html[dir="rtl"] .old-price {
    margin-right: 0;
    margin-left: 4px;
}

html[dir="rtl"] .newsletter-form input {
    border-right: 1px solid #ccc;
    border-left: none;
}

html[dir="rtl"] .footer-bottom {
    flex-direction: row;
}

html[dir="rtl"] .product-rating span {
    margin-left: 0;
    margin-right: 5px;
}

html[dir="rtl"] .accordion-header {
    text-align: right;
}

html[dir="rtl"] .accordion-header i {
    margin-left: 0;
}

html[dir="rtl"] .product-layout {
    /* Updated proportions for RTL */
    grid-template-columns: 1.1fr 1fr;
}

html[dir="rtl"] .product-gallery {
    flex-direction: row-reverse;
    /* Keeps thumbs on far right in RTL */
}

html[dir="rtl"] .thumbnail-list {
    flex-direction: column;
}

html[dir="rtl"] .product-details {
    text-align: right;
}

html[dir="rtl"] .product-title {
    text-align: right;
}

html[dir="rtl"] .product-price-container {
    text-align: right;
}

html[dir="rtl"] .product-rating {
    justify-content: flex-start;
    flex-direction: row;
    /* Ensure stars are on the right in RTL */
}

html[dir="rtl"] .payment-installments {
    text-align: right;
}

html[dir="rtl"] .product-info h4 {
    text-align: right;
}

html[dir="rtl"] .product-info .price {
    align-items: flex-start;
    text-align: left;
}

html[dir="rtl"] .section-header {
    flex-direction: row;
    /* Ensure space-between works correctly in RTL */
}

html[dir="rtl"] .option-group label {
    text-align: right;
}

html[dir="rtl"] .size-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .product-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .breadcrumbs {
    text-align: right;
}

html[dir="rtl"] .breadcrumbs a {
    display: inline-block;
}

html[dir="rtl"] .product-gallery .badge {
    right: auto;
    left: 10px;
}

html[dir="rtl"] .product-rating {
    justify-content: flex-start;
}

/* Adjustments for RTL Grid/Flex if needed */
@media (min-width: 769px) {

    html[dir="rtl"] .products-grid,
    html[dir="rtl"] .footer-content {
        display: grid;
    }
}

/* Keep Logo LTR */
html[dir="rtl"] .text-logo {
    direction: ltr;
    text-align: left;
}

/* FAQ Page */
.faq-page {
    padding-bottom: 80px;
}

.faq-hero {
    background-color: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.faq-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

.faq-hero p {
    color: #666;
    margin-bottom: 40px;
}

.faq-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

.faq-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.faq-cat-btn {
    padding: 10px 25px;
    border: 1px solid #ddd;
    background: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.faq-cat-btn.active,
.faq-cat-btn:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: left;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fcfcfc;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* RTL Support for FAQ */
[dir="rtl"] .faq-search input {
    padding: 15px 50px 15px 20px;
}

[dir="rtl"] .faq-search i {
    left: auto;
    right: 20px;
}

/* Contact Page */
.contact-page {
    padding-bottom: 80px;
}

.contact-hero {
    background-color: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-hero p {
    color: #666;
    margin-bottom: 40px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    background-color: #fcfcfc;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
}

.info-item i {
    font-size: 2rem;
    color: #000;
    margin-bottom: 15px;
}

.info-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-item p {
    color: #666;
}

.contact-form-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Outfit', sans-serif;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* About Page */
.about-page {
    padding-bottom: 80px;
}

.about-hero {
    background-color: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

.about-hero p {
    color: #666;
    margin-bottom: 40px;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.about-content {
    margin-bottom: 60px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.value-item {
    background-color: #fcfcfc;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.value-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-item p {
    color: #666;
}

@media (max-width: 768px) {
    .about-values {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Cart Page Styles - Premium Redesign
   ========================================= */
.cart-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.cart-header {
    text-align: center;
    margin-bottom: 50px;
}

.cart-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: flex-start;
}

html[dir="rtl"] .cart-content {
    grid-template-columns: 400px 1fr;
}

/* Free Shipping Bar - Minimal */
#free-shipping-threshold {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #eee;
}

#shipping-msg {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.progress-container {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#shipping-progress {
    height: 100%;
    background: #000;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 20px 0;
    border-bottom: 1px solid #e1e1e1;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

html[dir="rtl"] .cart-table th {
    text-align: right;
}

.cart-table td {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.cart-item-info {
    display: flex;
    gap: 20px;
}

.cart-item-info img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    font-family: 'Outfit', sans-serif;
}

.cart-item-details p {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.remove-item {
    margin-top: 15px !important;
    font-size: 12px !important;
    color: #999 !important;
    text-decoration: none !important;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.remove-item:hover {
    color: #d00 !important;
}

/* Quantity Selector - Minimal */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
    margin: 0 auto;
}

.qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.quantity-selector input {
    width: 30px;
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    padding: 0;
}

/* Summary Box - Sticky & Clean */
.summary-box {
    background: #fff;
    padding: 30px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}

.summary-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

html[dir="rtl"] .summary-box h3 {
    text-align: right;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.summary-row span:last-child {
    color: #000;
    font-weight: 500;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #000;
    font-size: 16px;
    color: #000;
    font-weight: 700;
}

.summary-row.total span:last-child {
    font-size: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 25px;
    border-radius: 4px;
}

.checkout-btn:hover {
    background: #333;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
    text-decoration: underline;
    transition: color 0.3s;
}

.continue-shopping:hover {
    color: #000;
}

.payment-methods {
    margin-top: 30px;
    text-align: center;
    /* Removed opacity to make it clear by default */
}

.payment-methods p {
    font-size: 12px;
    color: #999;
    /* Slightly darker than #aaa */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 28px;
    color: #555;
    /* Much darker than #ddd */
}

@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    html[dir="rtl"] .cart-content {
        grid-template-columns: 1fr;
    }

    .summary-box {
        position: static;
    }
}

/* =========================================
   Checkout Page Styles
   ========================================= */
.checkout-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px var(--spacing-md);
}

.checkout-header {
    text-align: center;
    margin-bottom: 60px;
}

.checkout-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    letter-spacing: -1px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: flex-start;
}

html[dir="rtl"] .checkout-content {
    grid-template-columns: 400px 1fr;
}

@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    html[dir="rtl"] .checkout-content {
        grid-template-columns: 1fr;
    }
}

.form-section {
    margin-bottom: 50px;
}

.form-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #000;
    outline: none;
    background: #fff;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #000;
    background: #f9f9f9;
}

.payment-option input[type="radio"] {
    accent-color: #000;
    width: 20px;
    height: 20px;
}

.payment-option span {
    font-weight: 500;
    font-size: 16px;
}

.place-order-btn {
    width: 100%;
    height: 60px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.place-order-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Checkout Summary Items */
.summary-items {
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

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

.summary-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.item-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.item-details p {
    font-size: 12px;
    color: #777;
    margin-bottom: 3px;
}



/* =========================================
   Login Page Styles
   ========================================= */
.login-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px var(--spacing-md);
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.login-section,
.register-section {
    display: flex;
    flex-direction: column;
}

.login-section h2,
.register-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.register-section p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-btn {
    height: 50px;
    margin-top: 10px;
}

.forgot-link {
    font-size: 14px;
    text-decoration: underline;
}

/* =========================================
   Wishlist Page Styles
   ========================================= */
.wishlist-page-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px var(--spacing-md);
}

.wishlist-header {
    text-align: center;
    margin-bottom: 40px;
}

.wishlist-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}

.remove-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.move-to-bag-btn {
    width: 100%;
    margin-top: 10px;
}

/* RTL Adjustments for New Pages */
[dir="rtl"] .cart-table th {
    text-align: right;
}

[dir="rtl"] .cart-item-info {
    text-align: right;
}

[dir="rtl"] .summary-box {
    text-align: right;
}

[dir="rtl"] .checkout-form {
    text-align: right;
}

[dir="rtl"] .summary-item {
    text-align: right;
}

[dir="rtl"] .login-section,
[dir="rtl"] .register-section {
    text-align: right;
}

[dir="rtl"] .remove-wishlist {
    right: auto;
    left: 10px;
}

@media (max-width: 900px) {

    .cart-content,
    .checkout-content,
    .login-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Responsive Cart Styles */
@media (max-width: 992px) {
    .cart-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .cart-items {
        width: 100%;
    }

    .cart-summary {
        width: 100%;
    }

    .summary-box {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cart-page-container {
        padding: 40px 20px;
    }

    .cart-header h1 {
        font-size: 2.2rem;
    }

    /* Hide Table Headers */
    .cart-table thead {
        display: none;
    }

    /* Block Layout for Table Elements */
    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    /* Card Style for Rows */
    .cart-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 20px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    /* Product Info Cell */
    .cart-table td:first-child {
        padding: 0 0 20px 0;
        border-bottom: 1px solid #f5f5f5;
        margin-bottom: 15px;
    }

    .cart-item-info {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .cart-item-info img {
        width: 80px;
        height: 100px;
    }

    .cart-item-details h4 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    /* Other Cells (Price, Qty, Total) */
    .cart-table td:not(:first-child) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px dashed #eee;
        font-size: 14px;
    }

    .cart-table td:last-child {
        border-bottom: none;
        font-weight: 700;
        font-size: 16px;
    }

    /* Labels */
    .cart-table td:nth-child(2)::before {
        content: 'Price';
        color: #999;
        font-size: 12px;
        text-transform: uppercase;
    }

    .cart-table td:nth-child(3)::before {
        content: 'Quantity';
        color: #999;
        font-size: 12px;
        text-transform: uppercase;
    }

    .cart-table td:nth-child(4)::before {
        content: 'Total';
        color: #999;
        font-size: 12px;
        text-transform: uppercase;
    }

    /* RTL Support for Labels */
    html[dir="rtl"] .cart-table td:nth-child(2)::before {
        content: 'السعر';
    }

    html[dir="rtl"] .cart-table td:nth-child(3)::before {
        content: 'الكمية';
    }

    html[dir="rtl"] .cart-table td:nth-child(4)::before {
        content: 'الإجمالي';
    }

    /* RTL Adjustments */
    html[dir="rtl"] .cart-item-info {
        text-align: right;
    }

    html[dir="rtl"] .cart-table td {
        text-align: left;
    }
}

/* =========================================
   New Premium Checkout Styles (The Giving Movement Inspired)
   ========================================= */
.checkout-body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    color: #333;
    background: #fff;
}

.checkout-layout {
    display: grid !important;
    grid-template-columns: 58% 42% !important;
    min-height: 100vh !important;
}

/* Left Side - Main Content */
.checkout-main {
    padding: 50px 8%;
    background: #fff;
    border-right: 1px solid #e1e1e1;
}

.checkout-header-mobile {
    display: none;
    /* Hidden on desktop */
    padding: 20px;
    border-bottom: 1px solid #e1e1e1;
    text-align: center;
}

.checkout-logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #000;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 700;
}

.checkout-breadcrumbs {
    margin: 30px 0 40px;
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-link {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #000;
}

.breadcrumb-current {
    font-weight: 600;
    color: #000;
}

.checkout-breadcrumbs i {
    font-size: 10px;
    color: #ccc;
}

/* Form Styles */
.checkout-form h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.form-section {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    color: #333;
    background: #fff;
}

.form-input:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 1px #000;
}

.form-input::placeholder {
    color: #777;
}

.form-input.readonly {
    background-color: #f9f9f9;
    color: #777;
    cursor: default;
}

/* Payment Options */
.payment-options-container {
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    overflow: hidden;
}

.payment-option-card {
    display: flex;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #d9d9d9;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}

.payment-option-card:last-child {
    border-bottom: none;
}

.payment-option-card:hover {
    background: #fcfcfc;
}

.payment-option-card.selected {
    background: #f0f5ff;
    /* Very light blue highlight */
}

.payment-option-card input[type="radio"] {
    display: none;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    background: #fff;
}

.payment-option-card.selected .radio-circle {
    border-color: #000;
    background: #000;
}

.payment-option-card.selected .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.payment-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.payment-icons-small {
    display: flex;
    gap: 8px;
    color: #555;
    font-size: 20px;
}

/* Actions */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.return-to-cart {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.return-to-cart:hover {
    opacity: 0.7;
}

.btn-checkout-submit {
    padding: 18px 35px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout-submit:hover {
    background: #333;
}

.checkout-footer-links {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.checkout-footer-links a {
    color: #777;
    text-decoration: underline;
}

/* Right Side - Sidebar (Summary) */
.checkout-sidebar {
    background: #fafafa;
    padding: 50px 8%;
    border-left: 1px solid #e1e1e1;
    /* For RTL support later */
}

.sidebar-content {
    max-width: 400px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.item-image-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-quantity-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #777;
    /* Standard checkout badge color */
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.item-info p {
    font-size: 12px;
    color: #777;
}

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Discount Code */
.discount-code-section {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

.discount-input-group {
    display: flex;
    gap: 10px;
}

.btn-apply {
    padding: 0 20px;
    background: #c8c8c8;
    /* Disabled look by default or neutral */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-apply:hover {
    background: #000;
}

/* Totals */
.checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
}

.total-row.final-total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    align-items: center;
}

.total-row.final-total span:last-child {
    font-size: 24px;
}

/* RTL Support */
html[dir="rtl"] .checkout-layout {
    grid-template-columns: 42% 58%;
    /* Swap columns */
}

html[dir="rtl"] .checkout-main {
    order: 2;
    /* Main content on right */
    border-right: none;
    border-left: 1px solid #e1e1e1;
}

html[dir="rtl"] .checkout-sidebar {
    order: 1;
    /* Sidebar on left */
    border-left: none;
    border-right: 1px solid #e1e1e1;
}

html[dir="rtl"] .radio-circle {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .item-quantity-badge {
    right: auto;
    left: -10px;
}

html[dir="rtl"] .checkout-breadcrumbs i {
    transform: rotate(180deg);
}

html[dir="rtl"] .return-to-cart i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1000px) {
    .checkout-layout {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .checkout-header-mobile {
        display: block;
        background: #fff;
    }

    .checkout-header-desktop {
        display: none;
    }

    .checkout-main {
        order: 2;
        padding: 30px 20px;
        border: none;
    }

    .checkout-sidebar {
        order: 1;
        padding: 20px;
        background: #fafafa;
        border-bottom: 1px solid #e1e1e1;
        border-left: none;
        border-right: none;
    }

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

    .checkout-breadcrumbs {
        justify-content: center;
        margin-top: 0;
    }

    .checkout-actions {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .btn-checkout-submit {
        width: 100%;
    }

    .return-to-cart {
        justify-content: center;
    }
}

/* FAQ Accordion Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Adjust as needed */
}

/* Page Content Premium Styles */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.page-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 25px;
}

.page-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #4a4a4a;
}

.page-content ul li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.page-content strong {
    color: var(--text-color);
    font-weight: 600;
}

/* About Us Specific */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.about-feature-item {
    padding: 30px;
    background-color: #fafafa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.about-feature-item:hover {
    transform: translateY(-5px);
}

.about-feature-icon {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.about-feature-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* New Product Card Styles */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.add-to-cart-overlay-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    /* Default LTR */
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 3;
}

.add-to-cart-overlay-btn i {
    font-size: 18px;
    color: #333;
}

.add-to-cart-overlay-btn:hover {
    background-color: #000;
}

.add-to-cart-overlay-btn:hover i {
    color: #fff;
}

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

/* RTL Support for Overlay Button */
/* Features Section */
.features-section {
    padding: 60px 20px;
    background-color: var(--secondary-color);
    /* Cream background */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.features-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    /* Softer corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 35, 100, 0.2);
    box-shadow: 0 10px 30px rgba(20, 35, 100, 0.1);
}

.feature-icon {
    font-size: 28px;
    color: var(--accent-color);
    /* Orange icon */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 35, 100, 0.08);
    /* Light navy background */
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--accent-color);
    color: #fff;
}

.feature-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
}

.feature-text p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

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

@media (max-width: 600px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
        /* Two per row on mobile */
        gap: 15px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
    }

    .feature-icon {
        margin-bottom: 15px;
    }
}

/* Sticky Add to Cart Bar */
.sticky-add-to-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-add-to-cart.visible {
    transform: translateY(0);
}

.sticky-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-product-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.sticky-details h5 {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

.sticky-details .price {
    font-size: 13px;
    color: var(--text-light);
}

.sticky-atc-btn {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 150px;
}

@media (max-width: 600px) {
    .sticky-product-info {
        display: none;
    }

    .sticky-add-to-cart {
        padding: 10px;
    }

    .sticky-atc-btn {
        width: 100%;
    }
}

/* =========================================
   Mini Cart Drawer Styles
   ========================================= */
.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    /* Hidden by default */
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.mini-cart-drawer.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Removed dark shadow */
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mini-cart-header {
    padding: 25px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.mini-cart-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-cart:hover {
    color: var(--primary-color);
}

/* Shipping Progress Bar */
.shipping-progress-container {
    padding: 20px;
    background: #fbfbfb;
    border-bottom: 1px solid #f0f0f0;
}

.shipping-progress-text {
    margin-bottom: 10px;
}

.progress-message {
    font-size: 12px;
    color: var(--text-main);
    display: block;
    text-align: center;
}

.shipping-progress-bar {
    height: 6px;
    background: #e9e9e9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    animation: fadeIn 0.3s ease forwards;
}

.cart-item img {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    background: #f9f9f9;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 2px;
}

.qty-control button {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: background 0.2s;
}

.qty-control button:hover {
    background: #eee;
    border-radius: 4px;
}

.qty-control input {
    width: 30px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
}

.remove-item {
    font-size: 11px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
}

.mini-cart-footer {
    padding: 25px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
}

.cart-gift-option {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

.gift-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.gift-text {
    font-size: 13px;
    color: var(--text-main);
}

.gift-text i {
    color: var(--accent-color);
    margin-right: 5px;
}

.cart-subtotal {
    display: flex;
    flex-direction: column;
    /* Stack for centering */
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
}

.subtotal-amount {
    color: var(--primary-color);
    font-size: 20px;
    /* Make price more prominent */
}

.tax-note {
    font-size: 11px;
    color: #bbb;
    margin-bottom: 25px;
    text-align: center;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cart-actions .btn {
    padding: 14px;
    font-size: 13px;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cart-payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 24px;
    color: #444;
    /* Darker, clearer grey */
    opacity: 1;
    transition: all 0.3s;
}

.cart-payment-icons:hover {
    opacity: 0.8;
}

/* Responsive Mini Cart */
@media (max-width: 480px) {
    .mini-cart-drawer {
        width: 100%;
        /* Full width on mobile */
        right: -100%;
    }

    html[dir="rtl"] .mini-cart-drawer {
        right: auto;
        left: -100%;
    }
}

/* RTL Specific Cart Drawer Fix */
html[dir="rtl"] .mini-cart-drawer {
    right: auto;
    left: -400px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html[dir="rtl"] .mini-cart-drawer.active {
    left: 0;
    right: auto;
}

@media (max-width: 480px) {
    html[dir="rtl"] .mini-cart-drawer {
        left: -100%;
    }

    html[dir="rtl"] .mini-cart-drawer.active {
        left: 0;
    }
}

/* =========================================
   Mobile Checkout Accordion (Shopify Style)
   ========================================= */
.mobile-order-summary-toggle {
    display: none;
    background: #fafafa;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color);
}

.toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.toggle-left i {
    font-size: 14px;
    color: var(--primary-color);
}

.toggle-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
}

/* Responsive adjustments for checkout */
@media (max-width: 1000px) {
    .mobile-order-summary-toggle {
        display: flex;
    }

    .checkout-sidebar {
        display: none;
        /* Hidden by default */
        background: #fafafa;
        border-bottom: 1px solid #e1e1e1;
        padding-top: 20px;
    }

    .checkout-sidebar.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .checkout-main {
        padding-top: 20px;
    }

    .checkout-breadcrumbs {
        margin: 10px 0 20px;
        font-size: 12px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* =========================================
   Checkout Logo Styles (Updated)
   ========================================= */
.checkout-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0.8;
    color: #333;
}

.checkout-logo .big-a {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-style: italic;
    margin-right: 8px;
    color: #333;
}

.checkout-logo .logo-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.checkout-logo .mara {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #333;
}

.checkout-logo .boutique {
    font-size: 7px;
    letter-spacing: 1px;
    color: #999;
    margin-top: 2px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

/* =========================================
   Luxury Checkout Redesign (Haqiqa & Murattaba)
   #000000 (Black) | #ffffff (White) | #f9f9f9 (Light Gray)
   ========================================= */

/* General Layout Fixes */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    /* Specific sidebar width */
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
}

/* Left Side - Main Form Area */
.checkout-main {
    padding: 60px 80px;
    /* Spacious padding */
    border-right: 1px solid #e5e5e5;
}

.checkout-main-content {
    max-width: 600px;
    /* Constrain width for readability like Shopify */
    margin: 0 auto;
}

/* Breadcrumbs */
.checkout-breadcrumbs {
    margin-bottom: 40px;
    font-size: 13px;
    color: #737373;
}

.breadcrumb-current {
    font-weight: 500;
    color: #333;
}

/* Headings */
.checkout-form h3 {
    font-size: 18px;
    font-weight: 500;
    /* Regular weight */
    margin-bottom: 20px;
    color: #333;
    letter-spacing: 0.5px;
}

/* Form Styles */
.form-section {
    margin-bottom: 50px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    /* Taller inputs */
    border: 1px solid #d9d9d9;
    background-color: #fff;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Slight shadow for depth */
}

/* Input Focus State - Creating a 'Ring' effect */
.form-input:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 1px #000;
}

/* Floating Label Placeholder Style (Mimic) */
.form-input::placeholder {
    color: #737373;
    font-weight: 400;
}

/* Payment Options - Clean & Boxed */
.payment-options-container {
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
}

.payment-option-card {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #d9d9d9;
    cursor: pointer;
    transition: background 0.1s;
}

.payment-option-card:last-child {
    border-bottom: none;
}

.payment-option-card.selected {
    background-color: #f4f8fa;
    /* Subtle blue tint for active selection */
    border-left: 4px solid #000;
    /* Indicator on left */
    padding-left: 16px;
    /* Adjust padding to accommodate border */
}

/* Right Side - Sticky Sidebar Summary */
.checkout-sidebar {
    background-color: #fafafa;
    /* Light gray background */
    padding: 60px 40px;
    border-left: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.checkout-sidebar .sidebar-content {
    max-width: 400px;
    margin: 0 auto;
    /* Center content in sidebar */
}

/* Product Items in Summary */
.checkout-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.item-image-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    margin-right: 15px;
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover */
    border-radius: 7px;
}

.item-quantity-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #737373;
    /* Muted gray for badge */
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #333;
}

.item-info p {
    font-size: 12px;
    color: #737373;
    margin: 0;
}

.item-price {
    margin-left: auto;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

/* Discount Input Styling */
.discount-code-section {
    margin: 30px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 25px 0;
}

.discount-input-group {
    display: flex;
    gap: 10px;
}

.btn-apply {
    background-color: #e5e5e5;
    /* Inactive state default */
    color: #737373;
    border: 1px solid #d9d9d9;
    padding: 14px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-apply:hover {
    background-color: #d9d9d9;
    color: #333;
}

/* Totals Section */
.checkout-totals {
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.total-row.final-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    align-items: baseline;
}

.total-row.final-total span:last-child {
    font-size: 24px;
}

.total-code-usd {
    font-size: 12px;
    color: #737373;
    font-weight: 400;
    margin-right: 5px;
}

/* Checkout Button */
.btn-checkout-submit {
    background-color: #000;
    color: #fff;
    padding: 18px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
    /* Allow auto width */
    min-width: 180px;
}

.btn-checkout-submit:hover {
    background-color: #333;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.return-to-cart {
    color: #000;
    /* Link blue */
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.return-to-cart:hover {
    opacity: 0.8;
}

/* Footer Links (policies) */
.checkout-footer-links {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.checkout-footer-links a {
    color: #737373;
    text-decoration: none;
}

.checkout-footer-links a:hover {
    text-decoration: underline;
}

/* Mobile Responsive Override */
@media (max-width: 1000px) {
    .checkout-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .checkout-main {
        padding: 30px 20px;
        border-right: none;
    }

    .checkout-main-content {
        max-width: 100%;
    }

    .checkout-sidebar {
        height: auto;
        border-left: none;
        background: #fafafa;
        padding: 20px;
        position: relative;
        /* Not sticky on mobile */
    }

    .checkout-actions {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .btn-checkout-submit {
        width: 100%;
        padding: 20px;
        /* Larger tap area */
    }

    .return-to-cart {
        justify-content: center;
        width: 100%;
        padding: 10px;
    }

    /* Logo adjustments for mobile header to match */
    .checkout-header-mobile {
        padding: 20px;
        border-bottom: 1px solid #e5e5e5;
        display: flex;
        justify-content: center;
        /* Center logo on mobile header */
    }
}


/* Fix Footer Accordion on Desktop */
@media (min-width: 769px) {
    .footer-col .accordion-content {
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    .footer-col .accordion-header {
        pointer-events: none;
        cursor: default;
    }

    .footer-col .accordion-header i {
        display: none !important;
    }
}

/* --- Advanced Mobile Responsiveness (Foldables & Tablets) --- */

/* 1. Medium Screens (Tablets, Foldables Open) - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Ensure 3 columns generally */
        gap: 15px;
    }
}

/* 2. Small Tablets & Large Phones - 481px to 768px */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns */
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 36px;
        /* Smaller title */
    }

    .section-header h2 {
        font-size: 24px;
    }

    .container {
        padding: 0 15px;
        /* Less padding */
    }
}

/* =========================================
   MOBILE RESPONSIVENESS - WORLD CLASS STANDARD
   ========================================= */

/* Tablets & Large Foldables (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Mobile Devices (Max Width 768px) */
@media (max-width: 768px) {

    /* 1. Layout & Container */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    /* Add bottom padding to avoid content being hidden by sticky bars */
    body {
        padding-bottom: 100px;
    }

    .container,
    .product-page-container {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
        max-width: 100vw;
    }

    /* ============================================================
       FRESH REWRITE: MOBILE PRODUCT GRID (2 COLUMNS)
       ============================================================ */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns */
        column-gap: 15px !important;
        /* Space between columns */
        row-gap: 25px !important;
        /* Space between rows */
        width: 100%;
        padding: 0 20px !important;
        /* Side breathing room */
        margin: 0 auto;
        justify-content: center;
    }

    /* Card fits the grid cell perfectly */
    .product-card {
        width: 100%;
        margin: 0;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Image area */
    .product-image {
        width: 100%;
        aspect-ratio: 1/1;
        /* Perfect Square */
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 10px;
        background: #f5f5f5;
        position: relative;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        display: block;
    }

    /* ============================================================
       RESTORE MOBILE HEADER STYLES
       ============================================================ */
    .header-main {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
        padding: 0 20px;
        height: 70px;
        /* Slimmer header on mobile */
    }

    .mobile-logo img {
        max-height: 40px;
        /* Proper mobile logo size */
        width: auto;
    }

    .main-nav,
    .header-top {
        display: none;
        /* Hide desktop nav and top bar */
    }

    /* Adjust icons for mobile */
    .header-actions {
        gap: 15px;
    }

    .icon-link {
        font-size: 18px;
    }
}

/* End of max-width: 768px */

/* Image Wrapper - Perfect Square 1:1 */
.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    /* Smoother premium radius */
    overflow: hidden;
    margin-bottom: 12px;
    /* Breathing room before text */
    background-color: #f7f7f7;
    /* Subtle placeholder */
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    padding: 0 !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Remove hover scale on mobile to prevent accidental triggers/jank */
.product-card:hover .product-image img {
    transform: none;
}

/* 4. Product Info Typography */
.product-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
}

.product-info h4 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
}

.price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    /* Brand color */
}

/* 5. Add to Cart Button (Mobile Optimized) */
.add-to-cart-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 50%;
    bottom: 8px;
    right: 8px;
    opacity: 1 !important;
    transform: none !important;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
}

/* 6. Header Adjustments */
.header-main {
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    padding: 0 20px;
}

.mobile-logo img {
    max-height: 42px;
    /* Optimal logo size */
}

.hero-content h1 {
    font-size: 32px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.9;
}
}

/* Small Phones (iPhone SE, Older Androids) */
@media (max-width: 380px) {
    .products-grid {
        gap: 12px !important;
        padding: 0 15px !important;
    }

    .product-card {
        max-width: 100%;
        /* Allow full fill */
    }

    .product-info h4 {
        font-size: 12px;
    }
}