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

:root {
    /* Generic Brand Colors - Intended to be overridden */
    /* WeLove Padel Brand Colors */
    --primary-color: #008f39;
    /* Vert Turf - Dominant */
    --primary-dark: #006400;
    /* Darker Green */
    --primary-light: #2eb85c;
    /* Lighter Green */

    --secondary-color: #1A1A1A;
    /* Carbon Black */
    --secondary-dark: #000000;
    /* Pure Black */

    --accent-color: #DFFF00;
    /* Jaune Neon Ball - Accent */
    --accent-light: #efff66;
    /* Lighter Neon */

    /* Removed Brand Specific Mosaic Colors */
    --mosaic-blue: #1E3A5F;
    /* Kept as utility but maybe rename? */
    --mosaic-turquoise: #2D9CDB;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3rem;
    --spacing-4xl: 4rem;
    --spacing-5xl: 5rem;
    --spacing-6xl: 6rem;

    /* Section Spacing */
    --section-padding-y: 6rem;
    --section-padding-y-mobile: 4rem;

    /* Container Spacing */
    --container-padding-x: 1.25rem;
    --container-padding-x-mobile: 1rem;

    /* Element Spacing */
    --element-gap-sm: 0.75rem;
    --element-gap-md: 1.5rem;
    --element-gap-lg: 2.5rem;
    --element-gap-xl: 4rem;

    /* Touch Target Size */
    --touch-target-min: 44px;

    /* Neuromarketing / Conversion Colors */
    --nm-cta-bg: var(--primary-color);
    /* Turf Green - Trust & Action */
    --nm-cta-text: #ffffff;
    /* White - Clean/Readable */
    --nm-cta-hover: var(--primary-light);
    /* Lighter Green on hover */
    --nm-price-highlight: var(--secondary-color);
    /* Carbon Black - Truthy/Premium */
    --nm-price-old: #9ca3af;
    /* Greyed out for old prices */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Improve text readability */
p,
li,
span,
div {
    word-spacing: 0.05em;
}

/* Enhanced Arabic text readability */
/* Inherit default typography for paragraphs and lists */

/* Clean - no extra spacing overrides */

/* Buttons inherit default sizes */

/* Inputs inherit default sizes */

/* Navigation inherits default sizes */

/* Enhanced Arabic readability for specific sections */
/* Hero and sections inherit default sizes */

/* All elements inherit line-height and spacing from base CSS */

/* Better focus visibility for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline-offset: 3px;
}

/* Moroccan Mosaic Patterns */
.mosaic-pattern {
    position: relative;
    overflow: hidden;
}

.mosaic-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, var(--primary-color) 20px, var(--primary-color) 21px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, var(--accent-color) 20px, var(--accent-color) 21px);
    pointer-events: none;
}

.mosaic-border {
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

.mosaic-border::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-white);
    border-radius: 8px;
    z-index: 1;
}

.mosaic-border>* {
    position: relative;
    z-index: 2;
}

.mosaic-accent {
    position: relative;
}

.mosaic-accent::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    border-radius: 50%;
    top: -20px;
    right: -20px;
    z-index: 0;
}

html[dir="rtl"] .mosaic-accent::after {
    right: auto;
    left: -20px;
}

/* Star Mosaic Pattern */
.mosaic-star {
    position: relative;
    overflow: hidden;
}

.mosaic-star::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        radial-gradient(circle at 25% 25%, var(--primary-color) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--accent-color) 2px, transparent 2px);
    background-size: 40px 40px, 40px 40px;
    opacity: 0.08;
    animation: mosaicFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes mosaicFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(40px, 40px) rotate(360deg);
    }
}

/* Geometric Mosaic Border */
.mosaic-geometric {
    position: relative;
}

.mosaic-geometric::before {
    content: '';
    position: absolute;
    inset: -2px;
    background:
        repeating-linear-gradient(0deg,
            var(--primary-color) 0px, var(--primary-color) 2px,
            transparent 2px, transparent 4px,
            var(--accent-color) 4px, var(--accent-color) 6px,
            transparent 6px, transparent 8px);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.mosaic-geometric::after {
    content: '';
    position: absolute;
    inset: -2px;
    background:
        repeating-linear-gradient(90deg,
            var(--accent-color) 0px, var(--accent-color) 2px,
            transparent 2px, transparent 4px);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.2;
}

/* ============================================
   ARABIC FONTS IN RTL MODE - Minimal Changes
   ============================================ */

/* Arabic fonts - keep all sizes/weights same as LTR */
html[dir="rtl"] {
    font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't cause overflow */
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--container-padding-x-mobile);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

h1 {
    margin-bottom: var(--spacing-lg);
}

h2 {
    margin-bottom: var(--spacing-md);
}

h3 {
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

/* Duplicate removed - already defined above */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-slow);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0, 0, 0, 0.02) 50px, rgba(0, 0, 0, 0.02) 51px);
    pointer-events: none;
    opacity: 0.5;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.4;
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: center;
}

.navbar.scrolled::after {
    transform: scaleX(1);
}

.navbar.scrolled {
    padding: var(--spacing-xs) 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
    width: 100%;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
    flex-shrink: 1;
    min-width: 0;
}

.logo a {
    text-decoration: none;
    display: block;
    max-width: 100%;
}

.logo-img {
    height: auto;
    max-width: 200px;
    width: auto;
    display: block;
    transition: var(--transition);
    object-fit: contain;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@media (max-width: 968px) {
    .logo-img {
        max-width: 160px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-width: 120px;
    }

    .nav-content {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 360px) {
    .logo-img {
        max-width: 100px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
    margin: 0;
    padding: 0;
}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 0.3px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    border-radius: 8px;
    opacity: 0;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::before,
.nav-menu a:focus::before {
    opacity: 1;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 70%;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--primary-color);
    outline: none;
    transform: translateY(-1px);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 70%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.cart-icon {
    position: relative;
    text-decoration: none;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.05);
}

.cart-icon:hover,
.cart-icon:focus {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.1));
    outline: none;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cart-icon-symbol {
    display: block;
    transition: var(--transition);
}

.cart-icon:hover .cart-icon-symbol {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid white;
    animation: cartPulse 0.3s ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.cart-count[style*="display: flex"] {
    display: flex !important;
}

.language-switcher {
    display: flex;
    gap: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.03);
    padding: var(--spacing-xs);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.85rem;
    min-height: calc(var(--touch-target-min) - 8px);
    min-width: calc(var(--touch-target-min) - 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    letter-spacing: 0.5px;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    opacity: 0;
    transition: var(--transition);
}

.lang-btn:hover::before,
.lang-btn:focus::before {
    opacity: 1;
}

.lang-btn:hover,
.lang-btn:focus {
    color: var(--primary-color);
    outline: none;
    transform: translateY(-1px);
}

.lang-btn>* {
    position: relative;
    z-index: 1;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-btn.active::before {
    opacity: 0;
}

.lang-btn.active:focus {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: var(--spacing-xs);
    border-radius: 8px;
    transition: var(--transition);
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
    }
}

.hamburger:hover,
.hamburger:focus {
    background: rgba(0, 0, 0, 0.1);
    outline: none;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    display: block;
    position: relative;
}

.hamburger:hover span {
    background: var(--primary-color);
}

.hamburger.active {
    background: rgba(0, 0, 0, 0.1);
}

.hamburger.active span {
    background: var(--primary-color);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    overflow: hidden;
    margin-top: 0;
    /* Will be set dynamically by JavaScript to match navbar height exactly */
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Mobile portrait image by default - WebP with PNG fallback */
    background-image: url('/assets/hero/welovepadel_hero_mobile.webp');
    background-size: cover;
    /* Fill entire hero section */
    background-position: center center;
    /* Center important content */
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
}

/* Fallback for browsers that don't support WebP */
@supports not (background-image: url('/assets/hero/hero-mobile.webp')) {
    .hero::before {
        background-image: url('/assets/hero/welovepadel_hero_mobile.png');
    }
}

/* Mobile landscape and tablet portrait image */
@media (min-width: 480px) and (orientation: landscape) and (max-width: 1024px),
(min-width: 768px) and (orientation: portrait) and (max-width: 1024px) {
    .hero::before {
        background-image: url('/assets/hero/hero-desktop.webp');
        background-size: cover;
        /* Fill entire hero section */
        background-position: center center;
        /* Center important content */
    }
}

@supports not (background-image: url('/assets/hero/hero-desktop.webp')) {
    @media (min-width: 480px) and (orientation: landscape) and (max-width: 1024px) {
        .hero::before {
            background-image: url('/assets/hero/hero-desktop.png');
        }
    }
}

/* Desktop image for larger screens (landscape tablets and desktops) */
@media (min-width: 1025px) {
    .hero::before {
        background-image: url('/assets/hero/hero-desktop.webp');
        background-size: cover;
        /* Cover full area on desktop */
    }
}

@supports not (background-image: url('/assets/hero/hero-desktop.webp')) {
    @media (min-width: 1025px) {
        .hero::before {
            background-image: url('/assets/hero/hero-desktop.png');
        }
    }
}

/* Removed overlays and patterns for clean image display */

.hero .container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    width: 100%;
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin: 0 auto;
    /* No extra margin - hero already starts below navbar */
}

@media (max-width: 768px) {
    .hero-content {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero .container {
        align-items: flex-end;
        /* Align content to bottom */
        padding-bottom: 32vh;
        /* Lift more above (was 25vh) */
        height: 100%;
    }

    .hero-content {
        padding-top: 0;
        margin-bottom: 0;
    }
}

.hero-title {
    display: none;
    /* Hide hero title - only CTAs visible */
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    max-width: 100%;
    color: white;
}

.hero-subtitle {
    display: none;
    /* Hide hero subtitle - only CTAs visible */
    font-size: 1.3rem;
    margin-bottom: var(--spacing-2xl);
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.4);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: center;
    max-width: 100%;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    margin-top: var(--spacing-lg);
    opacity: 1;
    /* Make buttons visible by default */
    transform: translateY(0);
    /* Start at final position */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Buttons */
.btn {
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    min-height: var(--touch-target-min);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .btn {
        padding: var(--spacing-sm) var(--spacing-xl);
        font-size: 0.95rem;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 280px;
    height: 280px;
}

.btn>* {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.7);
    /* Elegant dark glass */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.85);
    /* Darker glass on hover */
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Values Section */
.values {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(to bottom, var(--bg-light), white);
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .values {
        padding: var(--section-padding-y-mobile) 0;
    }
}

.values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.03));
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-5xl);
    position: relative;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: var(--spacing-4xl);
    }
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--element-gap-lg);
}

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

.value-card {
    background: white;
    padding: var(--spacing-3xl) var(--spacing-2xl);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-slow);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .value-card {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition-slow) 0.3s;
}

.value-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.value-icon-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card:hover .value-icon-img {
    transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* About Section */
.about {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(to bottom, white, var(--bg-light));
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .about {
        padding: var(--section-padding-y-mobile) 0;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--element-gap-xl);
    align-items: center;
}

@media (max-width: 968px) {
    .about-content {
        gap: var(--element-gap-lg);
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

html[dir="rtl"] .about-text h2::after {
    left: auto;
    right: 0;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.9;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
}

.about-text p:last-of-type {
    margin-bottom: var(--spacing-xl);
}

.about-image {
    position: relative;
    overflow: hidden;
    /* Prevent overflow from pseudo-elements */
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

html[dir="rtl"] .about-image::before {
    right: auto;
    left: -20px;
}

@media (max-width: 768px) {
    .about-image::before {
        top: -10px;
        right: -10px;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .about-image::before {
        display: none;
        /* Hide on very small screens to prevent overflow */
    }
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.mosaic-heritage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.85;
    z-index: 1;
}

.pattern-bg {
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 25px, rgba(255, 255, 255, 0.08) 25px, rgba(255, 255, 255, 0.08) 26px),
        repeating-linear-gradient(-45deg, transparent, transparent 25px, rgba(255, 255, 255, 0.05) 25px, rgba(255, 255, 255, 0.05) 26px);
    opacity: 0.4;
    position: relative;
    z-index: 2;
    mix-blend-mode: overlay;
}

/* Featured Section */
.featured {
    padding: var(--section-padding-y) 0;
    background: var(--bg-light);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .featured {
        padding: var(--section-padding-y-mobile) 0;
    }
}

.products-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--element-gap-lg);
    margin-bottom: var(--spacing-3xl);
    justify-items: center;
}

@media (min-width: 769px) {
    .products-preview {
        grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .products-preview {
        gap: var(--element-gap-md);
        margin-bottom: var(--spacing-2xl);
    }
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-slow);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    padding: 0;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition-slow) 0.3s;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 20px 20px 0 0;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    display: block;
    transition: var(--transition-slow);
    object-fit: cover;
    object-position: center;
}

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

@media (max-width: 768px) {
    .product-card {
        max-width: 100%;
    }

    .product-card .product-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .product-card .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-placeholder::before {
    content: '🎩';
    font-size: 4rem;
    opacity: 0.3;
}

.product-info {
    padding: var(--spacing-lg);
}

.product-info h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    margin-top: 0;
}

.product-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .text-center {
        margin-top: var(--spacing-xl);
    }
}

/* Products Page */
.products-hero {
    padding: 3rem 0 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    color: var(--primary-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .products-hero {
        padding: 2rem 0 2rem;
    }
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
}

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

.products-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    font-weight: 700;
}

.products-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.products-section {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(to bottom, white, var(--bg-light));
    position: relative;
}

@media (max-width: 768px) {
    .products-section {
        padding: var(--section-padding-y-mobile) 0;
    }
}

.products-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
    position: relative;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .products-filters {
        margin-bottom: var(--spacing-2xl);
        gap: var(--spacing-xs);
        padding: 0 var(--spacing-sm);
    }
}

.products-filters::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.875rem;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    min-height: 36px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.filter-btn:hover::before {
    width: 120px;
    height: 120px;
}

.filter-btn>* {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-weight: 600;
}

.filter-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.filter-btn:active {
    transform: translateY(0);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--element-gap-lg);
    align-items: stretch;
}

@media (max-width: 768px) {
    .products-grid {
        gap: var(--element-gap-md);
    }
}

.product-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
    z-index: 1;
}

.product-item:hover::before {
    transform: scaleX(1);
}

.product-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

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

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
}

.product-image picture {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.product-image img,
.product-item .product-image img,
.product-image-wrapper .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: var(--transition-slow);
    position: absolute;
    top: 0;
    left: 0;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

/* Product Card Mobile Responsive Fixes */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    .product-item {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .product-image-wrapper {
        width: 100%;
    }

    .product-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .product-details {
        padding: var(--spacing-md);
        text-align: center;
    }

    .product-details h3 {
        text-align: center;
    }

    .product-variation-colors {
        justify-content: center;
    }

    .product-description {
        text-align: center;
    }

    .product-footer {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .product-price {
        text-align: center;
    }

    .product-badge {
        top: 10px;
        right: 10px;
        left: auto;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* RTL Support for Product Cards */
[dir="rtl"] .product-image {
    direction: ltr;
    /* Keep image centered regardless of text direction */
}

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

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

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

@media (max-width: 480px) {
    [dir="rtl"] .product-badge {
        left: 10px;
        right: auto;
    }

    [dir="rtl"] .product-details,
    [dir="rtl"] .product-details h3,
    [dir="rtl"] .product-description,
    [dir="rtl"] .product-price {
        text-align: center;
    }

    [dir="rtl"] .product-variation-colors {
        justify-content: center;
    }
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.product-image-wrapper:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition) 0.2s;
}

.product-image-wrapper:hover .product-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.new {
    background: var(--accent-color);
    color: #000;
    /* Ensure readability on neon yellow */
}

.product-badge.test {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.product-badge.coming-soon {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Coming Soon Product Styles */
.coming-soon-product {
    opacity: 0.85;
}

.coming-soon-product:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.coming-soon-product .product-image {
    position: relative;
}

.coming-soon-overlay {
    position: relative;
}

.coming-soon-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
}

.coming-soon-product .product-image img {
    filter: grayscale(20%) brightness(0.95);
}

.btn-disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
    border: 1px solid #dee2e6;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Coming Soon Message on Product Detail */
.coming-soon-message {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.coming-soon-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-details {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-details h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.product-variation-colors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
}

.variation-color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    outline: none;
}

.variation-color-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.2);
}

.variation-color-btn:active {
    transform: scale(1.05);
}

.variation-color-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.variation-color-btn:hover::after {
    opacity: 0.1;
}

.product-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.7em * 3);
    flex-grow: 0;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: var(--spacing-md);
    flex-wrap: nowrap;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    min-width: 0;
    /* Prevent flex items from overflowing */
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
}

.product-footer .btn {
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-cart {
    padding: var(--spacing-sm) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    min-height: var(--touch-target-min);
    min-width: 120px;
    line-height: 1.5;
}

.btn-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cart:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.products-cta {
    padding: var(--spacing-5xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    color: var(--primary-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .products-cta {
        padding: var(--spacing-4xl) 0;
    }
}

.products-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.05) 20px, rgba(255, 255, 255, 0.05) 21px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.03) 20px, rgba(255, 255, 255, 0.03) 21px);
    opacity: 0.4;
    pointer-events: none;
}

.products-cta .container {
    position: relative;
    z-index: 1;
}

.products-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.products-cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    font-weight: 300;
}

/* Contact Section */
.contact {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(to bottom, var(--bg-light), white);
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .contact {
        padding: var(--section-padding-y-mobile) 0;
    }
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--element-gap-xl);
    align-items: start;
}

@media (max-width: 968px) {
    .contact-content {
        gap: var(--element-gap-lg);
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    transition: var(--transition);
    color: var(--primary-color);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.contact-item:hover .contact-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12));
    color: var(--primary-color);
}

.contact-item-content {
    flex: 1;
    min-width: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    margin-top: 0;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item p a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.contact-item p a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* RTL support for Arabic */
html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .contact-item-content {
    text-align: right;
    direction: rtl;
}

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

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

html[dir="rtl"] .contact-item p a {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    background: white;
    padding: var(--spacing-3xl);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .contact-form {
        padding: var(--spacing-2xl);
    }
}

.contact-form input,
.contact-form textarea {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: var(--touch-target-min);
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    background: white;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
    color: white;
    padding: var(--spacing-5xl) 0 var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-4xl) 0 var(--spacing-xl);
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(0, 0, 0, 0.02) 40px, rgba(0, 0, 0, 0.02) 41px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(0, 0, 0, 0.02) 40px, rgba(0, 0, 0, 0.02) 41px);
    pointer-events: none;
    opacity: 0.6;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--spacing-4xl);
    margin-bottom: var(--spacing-4xl);
    position: relative;
    z-index: 1;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3xl);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
        margin-bottom: var(--spacing-3xl);
        text-align: center;
    }
}

.footer-section {
    position: relative;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    margin-top: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0;
    font-size: 0.9375rem;
    max-width: 320px;
}

@media (max-width: 768px) {
    .footer-section p {
        max-width: 100%;
    }
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-section ul li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-section ul li::before {
    content: '→';
    color: var(--primary-color);
    opacity: 0.6;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
    display: inline-block;
}

.footer-section ul li:hover::before {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .footer-section ul li {
        justify-content: center;
    }

    .footer-section ul li::before {
        display: none;
    }
}

/* RTL Support for Footer Links */
html[dir="rtl"] .footer-section {
    direction: rtl;
    text-align: right;
}

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

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

html[dir="rtl"] .footer-section ul li::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 7px solid var(--accent-color);
    opacity: 0.6;
    font-size: 0;
    color: transparent;
}

html[dir="rtl"] .footer-section ul li:hover::before {
    opacity: 1;
    border-right-color: var(--primary-color);
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    html[dir="rtl"] .footer-section {
        text-align: center;
    }

    html[dir="rtl"] .footer-section ul {
        align-items: center;
    }

    html[dir="rtl"] .footer-section ul li {
        justify-content: center;
    }
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: var(--spacing-xs) 0;
    font-size: 0.9375rem;
    position: relative;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(3px);
}

html[dir="rtl"] .footer-section ul li a {
    direction: rtl;
}

html[dir="rtl"] .footer-section ul li a:hover {
    transform: translateX(-3px);
}

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

@media (max-width: 768px) {
    .footer-section ul li a:hover {
        transform: none;
    }

    html[dir="rtl"] .footer-section ul li a:hover {
        transform: none;
    }

    html[dir="rtl"] .footer-section p {
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}

.social-links a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

/* Facebook - Blue */
.social-links a[aria-label="Facebook"] {
    color: #1877f2;
}

.social-links a[aria-label="Facebook"]::before {
    background: #1877f2;
}

.social-links a[aria-label="Facebook"]:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

/* Instagram - Gradient Pink/Purple */
.social-links a[aria-label="Instagram"] {
    color: #E4405F;
}

.social-links a[aria-label="Instagram"]::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #E4405F;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(228, 64, 95, 0.4);
}

/* TikTok - Black/Cyan */
.social-links a[aria-label="TikTok"] {
    color: #ffffff;
}

.social-links a[aria-label="TikTok"]::before {
    background: #000000;
}

.social-links a[aria-label="TikTok"]:hover {
    background: #000000;
    color: #00f2ea;
    border-color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* YouTube - Red */
.social-links a[aria-label="YouTube"] {
    color: #FF0000;
}

.social-links a[aria-label="YouTube"]::before {
    background: #FF0000;
}

.social-links a[aria-label="YouTube"]:hover {
    background: #FF0000;
    color: white;
    border-color: #FF0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

/* Pinterest - Red */
.social-links a[aria-label="Pinterest"] {
    color: #E60023;
}

.social-links a[aria-label="Pinterest"]::before {
    background: #E60023;
}

.social-links a[aria-label="Pinterest"]:hover {
    background: #E60023;
    color: white;
    border-color: #E60023;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(230, 0, 35, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
    letter-spacing: 0.3px;
}

.footer-bottom p span {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .footer-section:first-child {
        max-width: 100%;
    }

    .footer-logo-img {
        max-width: 200px;
        margin-bottom: var(--spacing-lg);
    }

    .footer-section p {
        max-width: 100%;
        font-size: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .social-links {
        gap: var(--spacing-md);
        justify-content: center;
    }

    .social-links a {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .social-links a svg {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        padding-top: var(--spacing-2xl);
        margin-top: var(--spacing-2xl);
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .footer-bottom::before {
        width: 120px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Cart Page - Minimalist */
.cart-section {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 70px);
    background: white;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.cart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 128, 74, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.page-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-2xl);
    text-align: left;
    letter-spacing: 0.3px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    justify-content: flex-start;
}

.page-title-icon {
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-lg);
        text-align: center;
        justify-content: center;
    }

    .page-title-icon {
        font-size: 1.75rem;
    }
}

.cart-empty {
    text-align: center;
    padding: var(--spacing-5xl) var(--spacing-xl);
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cart-empty h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    font-weight: 700;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cart-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-3xl);
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

@media (max-width: 968px) {
    .cart-section {
        padding: var(--spacing-2xl) 0;
    }

    .cart-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        padding: 0 var(--container-padding-x);
    }

    .cart-summary {
        position: static;
        order: 1;
        /* Show summary after cart items on mobile */
    }

    .cart-items {
        order: -1;
        /* Show cart items first on mobile */
    }

    .cart-item {
        grid-template-columns: 90px 1fr auto auto auto;
        gap: var(--spacing-md);
    }

    .cart-item-image {
        width: 90px;
        height: 90px;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .cart-item-remove {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    order: 0;
    /* Default order for desktop */
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[dir="rtl"] .cart-item {
    grid-template-columns: 100px 1fr auto auto auto;
    direction: rtl;
}

/* Cart item remove button RTL handled by grid direction */

.cart-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.cart-item-image .product-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image .product-placeholder::before {
    content: '🎩';
    font-size: 2rem;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
}

.cart-item-details {
    min-width: 0;
    padding-right: var(--spacing-md);
    /* Space for remove button */
}

.cart-item-details h3 {
    font-size: 1.05rem;
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.cart-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cart-item-link:hover h3 {
    color: var(--primary-color);
}

.cart-item-variation {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.25rem 0 0.15rem 0;
}

.cart-item-size {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

.cart-item-price {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.cart-item-price .per-item {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-left: 4px;
}

html[dir="rtl"] .cart-item-price .per-item {
    margin-left: 0;
    margin-right: 4px;
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.cart-item-price .price-amount {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.cart-item-price .price-currency {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

html[dir="rtl"] .cart-item-price .price-amount,
html[dir="rtl"] .cart-item-price .price-currency {
    direction: ltr;
    unicode-bidi: embed;
}

html[dir="rtl"] .cart-item-total .price-amount,
html[dir="rtl"] .cart-item-total .price-currency {
    direction: ltr;
    unicode-bidi: embed;
}

/* Summary prices RTL support */
html[dir="rtl"] .summary-row .price-amount,
html[dir="rtl"] .summary-row .price-currency,
html[dir="rtl"] #cartSubtotal .price-amount,
html[dir="rtl"] #cartSubtotal .price-currency,
html[dir="rtl"] #cartTotal .price-amount,
html[dir="rtl"] #cartTotal .price-currency {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
}

.qty-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    touch-action: manipulation;
}

@media (max-width: 480px) {
    .qty-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

.qty-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.08);
}

.qty-value {
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    min-width: 80px;
    direction: ltr;
    unicode-bidi: embed;
}

.cart-item-total span {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.cart-item-remove {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0;
    touch-action: manipulation;
}

@media (max-width: 480px) {
    .cart-item-remove {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

.cart-item-remove:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
        justify-self: start;
    }

    .cart-item-quantity {
        margin-top: var(--spacing-xs);
    }

    .cart-item-total {
        text-align: left;
        margin-top: var(--spacing-xs);
    }

    .cart-item-remove {
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
    }

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

    html[dir="rtl"] .cart-item-image {
        grid-column: 1;
    }

    html[dir="rtl"] .cart-item-details {
        grid-column: 2;
    }

    html[dir="rtl"] .cart-item-remove {
        position: absolute;
        top: var(--spacing-md);
        left: var(--spacing-md);
        right: auto;
        grid-column: auto;
    }
}

.cart-summary {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
}

@media (max-width: 968px) {
    .cart-summary {
        position: static;
    }
}

.summary-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: var(--spacing-md) 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.summary-row:hover {
    color: var(--text-dark);
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-row .shipping-free {
    color: var(--primary-color);
    font-weight: 600;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, transparent, var(--accent-color), transparent) 1;
    border-image-slice: 1;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-lg);
    padding-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    border-radius: 8px;
}

.summary-row.total span:last-child {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.cart-payment-methods {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.payment-methods-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin: 0 0 var(--spacing-sm) 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.8;
}

.cart-payment-methods .payment-icons-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.cart-payment-methods .payment-icon {
    height: 26px;
    width: auto;
    object-fit: contain;
    opacity: 0.75;
    transition: all 0.3s ease;
    filter: grayscale(10%);
}

.cart-payment-methods .payment-icon:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.cart-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.cart-security-note .security-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.cart-security-note span:last-child {
    font-weight: 600;
}

.btn-continue-shopping {
    margin-top: var(--spacing-lg);
    width: 100%;
    font-size: 0.95rem;
    opacity: 0.9;
}

.btn-continue-shopping:hover {
    opacity: 1;
}

@media (max-width: 968px) {
    .summary-row.total span:last-child {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .summary-row.total span:last-child {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .cart-payment-methods .payment-icon {
        height: 20px;
    }

    .payment-methods-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .summary-row.total span:last-child {
        font-size: 1.2rem;
    }

    .cart-payment-methods .payment-icon {
        height: 18px;
    }

    .cart-payment-methods .payment-icons-container {
        gap: 6px;
    }
}

.btn-checkout {
    width: 100%;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    border: none;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 50%, var(--accent-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* Cart COD Badge */
.cart-cod-badge {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.04) 100%);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 8px auto 0;
    width: fit-content;
    letter-spacing: 0.3px;
    animation: cod-pulse 2.5s ease-in-out infinite;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Product Detail Page - Minimalist */
.product-detail-section {
    padding: var(--spacing-xl) 0;
    background: white;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

@media (max-width: 968px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: var(--spacing-xl) var(--container-padding-x);
    }
}

.product-detail-image {
    position: relative;
    cursor: zoom-in;
}

.product-detail-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

/* Product Image Gallery */
.product-image-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

.product-main-image {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: white;
    cursor: zoom-in;
}

.product-main-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

/* Zoom indicator */
.product-zoom-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-main-image:hover .product-zoom-indicator,
.product-detail-image:hover .product-zoom-indicator {
    opacity: 1;
}

.product-zoom-indicator svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Desktop hover zoom effect */
@media (min-width: 769px) and (hover: hover) {
    .product-main-image:hover img {
        transform: scale(1.1);
    }

    .product-detail-image:hover img {
        transform: scale(1.1);
    }
}

.product-image-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.thumbnail-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex: 0 0 calc(25% - (var(--spacing-sm) * 0.75));
    max-width: calc(25% - (var(--spacing-sm) * 0.75));
    aspect-ratio: 1;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.product-placeholder-large {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Tablet and smaller desktop */
@media (max-width: 1200px) {
    .product-main-image img {
        height: 400px;
    }

    .product-placeholder-large {
        height: 400px;
    }

    .product-detail-image img {
        height: 400px;
    }
}

/* Tablet */
@media (max-width: 968px) {
    .product-placeholder-large {
        height: 350px;
    }

    .product-detail-image img {
        height: 350px;
    }

    .product-image-gallery {
        gap: var(--spacing-sm);
    }

    .product-main-image {
        border-radius: 12px;
    }

    .product-main-image img {
        height: 350px;
    }

    .product-image-thumbnails {
        gap: var(--spacing-xs);
    }

    .thumbnail-item {
        flex: 0 0 calc(50% - (var(--spacing-xs) * 0.5));
        max-width: calc(50% - (var(--spacing-xs) * 0.5));
        border-radius: 10px;
        border-width: 2px;
    }
}

/* Large mobile */
@media (max-width: 768px) {
    .product-main-image img {
        height: 300px;
    }

    .product-placeholder-large {
        height: 300px;
    }

    .product-detail-image img {
        height: 300px;
    }

    .product-image-gallery {
        gap: var(--spacing-sm);
    }

    .product-image-thumbnails {
        gap: var(--spacing-xs);
        justify-content: center;
    }

    .thumbnail-item {
        flex: 0 0 calc(50% - (var(--spacing-xs) * 0.5));
        max-width: calc(50% - (var(--spacing-xs) * 0.5));
    }
}

/* Medium mobile */
@media (max-width: 640px) {
    .product-main-image img {
        height: 280px;
    }

    .product-placeholder-large {
        height: 280px;
    }

    .product-detail-image img {
        height: 280px;
    }

    .product-image-gallery {
        gap: var(--spacing-xs);
    }

    .product-main-image {
        border-radius: 10px;
    }

    .product-image-thumbnails {
        gap: 0.5rem;
    }

    .thumbnail-item {
        flex: 0 0 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        border-radius: 8px;
        border-width: 2px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .product-main-image img {
        height: 250px;
    }

    .product-placeholder-large {
        height: 250px;
    }

    .product-detail-image img {
        height: 250px;
    }

    .product-image-gallery {
        gap: 0.75rem;
    }

    .product-main-image {
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .product-image-thumbnails {
        gap: 0.5rem;
    }

    .thumbnail-item {
        flex: 0 0 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        border-radius: 6px;
    }

    .thumbnail-item img {
        border-radius: 6px;
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .product-main-image img {
        height: 220px;
    }

    .product-placeholder-large {
        height: 220px;
    }

    .product-detail-image img {
        height: 220px;
    }

    .product-image-thumbnails {
        gap: 0.4rem;
    }

    .thumbnail-item {
        flex: 0 0 calc(50% - 0.2rem);
        max-width: calc(50% - 0.2rem);
    }
}

.product-placeholder-large::before {
    content: '🎩';
    font-size: 6rem;
    opacity: 0.25;
    z-index: 1;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.product-detail-info h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: 0.2px;
    line-height: 1.3;
    font-weight: 700;
}

@media (max-width: 768px) {
    .product-detail-info h1 {
        font-size: 1.75rem;
    }
}

.product-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .product-detail-price {
        font-size: 1.5rem;
    }
}

.product-detail-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    font-weight: 400;
}

.product-detail-features {
    margin: 0;
    padding: 0;
}

/* Product Size Selector */
.product-detail-features h3 {
    font-size: 0.8rem;
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-detail-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.product-detail-features li {
    padding: var(--spacing-sm) var(--spacing-md);
    position: relative;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    background: var(--bg-light);
    border-radius: 10px;
    padding-left: calc(var(--spacing-lg) + 24px);
    border-left: 2px solid rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    display: flex;
    align-items: center;
    min-height: 44px;
}

.product-detail-features li:hover {
    background: rgba(0, 0, 0, 0.08);
    border-left-color: var(--primary-color);
    transform: translateX(2px);
}

.product-detail-features li::before {
    content: '✓';
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    width: 20px;
    height: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Product Size Selector */
.product-variation-selector {
    margin: var(--spacing-md) 0;
    padding: 0;
}

.variation-selector-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variation-options {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: 0;
}

.variation-option {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    min-width: 140px;
    flex: 0 1 auto;
}

.variation-option:hover {
    border-color: var(--primary-color);
    background: var(--accent-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.variation-option.active {
    border-color: var(--active-variation-color, var(--accent-color));
    background: var(--active-variation-color, var(--accent-color));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.variation-option.active:hover {
    border-color: var(--active-variation-color, var(--accent-color));
    background: var(--active-variation-color, var(--accent-color));
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.variation-color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-right: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    position: relative;
}

.variation-option.active .variation-color-indicator {
    border-color: rgba(0, 0, 0, 0.1);
    border-width: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.variation-name {
    display: inline-block;
    font-weight: 600;
    vertical-align: middle;
}

.product-size-selector {
    margin: var(--spacing-xs) 0;
    padding: 0;
}

.size-selector-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-selector-help {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.3rem;
    margin-bottom: 0;
}

.size-option {
    min-width: 0;
    padding: 0.35rem 0.2rem;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5px;
    font-family: inherit;
    aspect-ratio: 1;
    justify-content: center;
}

/* Simplified S/M/L Size Options */
.size-options-simple {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.size-option-simple {
    min-width: 80px;
    padding: 12px 20px;
    aspect-ratio: auto;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.size-option-simple .size-code {
    font-size: 1.2rem;
    font-weight: 700;
}

.size-option-simple .size-cm {
    font-size: 0.7rem;
    color: var(--text-light);
}

.size-option-simple.active {
    border-color: var(--primary-color);
    background: var(--accent-color);
    color: var(--text-dark);
}

.size-option-simple.active .size-cm {
    color: rgba(0, 0, 0, 0.7);
}

.size-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.size-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.size-code {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.size-cm {
    font-size: 0.55rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1;
}

.size-option.active .size-code {
    color: var(--primary-color);
}

.size-option.active .size-cm {
    color: var(--primary-color);
}

/* Product Size Guide */
.product-size-guide {
    margin: var(--spacing-xs) 0;
    padding: 0;
}

.size-guide-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem var(--spacing-sm);
    background: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-guide-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.size-guide-toggle.active {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.size-guide-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.size-guide-toggle.active .size-guide-icon {
    transform: rotate(180deg);
}

.size-guide-content {
    margin-top: 0.4rem;
    padding: var(--spacing-sm);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    animation: slideDown 0.3s ease;
}

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

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

.size-guide-table {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.size-guide-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    padding-bottom: 0.3rem;
    border-bottom: 1.5px solid var(--accent-color);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.size-guide-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.size-guide-row:last-child {
    border-bottom: none;
}

.size-guide-row:hover {
    background: rgba(0, 0, 0, 0.03);
}

.size-guide-code {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.75rem;
}

.size-guide-measurement {
    color: var(--text-light);
    font-size: 0.75rem;
    text-align: right;
}

.size-guide-note {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid #f0f0f0;
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.4;
    font-style: italic;
}

/* Quantity Selector */
.quantity-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.quantity-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    /* Pill shape */
    background: var(--bg-white);
    padding: 3px;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.05));
    transition: var(--transition);
}

.quantity-selector:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-quantity {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-quantity:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-1px);
}

.btn-quantity:active {
    transform: translateY(0);
}

.quantity-input {
    width: 44px;
    height: 34px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    -moz-appearance: textfield;
}

.quantity-input:focus {
    outline: none;
}

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

.btn-reset-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
    width: 34px;
    height: 34px;
    margin-left: auto;
    /* Push to right if space permits */
}

.btn-reset-selection:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.btn-reset-selection .reset-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: block;
}

/* Badges */
.variation-option,
.size-option {
    position: relative;
    overflow: visible;
    /* Fix clipping */
}

.count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    /* Removed opacity: 0 to fail-safe visible */
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* RTL Support for Quantity & Badges */
html[dir="rtl"] .quantity-wrapper {
    flex-direction: row;
}

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

/* Mobile Responsiveness for Quantity Selector */
@media (max-width: 480px) {
    .quantity-wrapper {
        justify-content: space-between;
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    .quantity-selector {
        flex: 0 0 auto;
    }
}

@media (max-width: 360px) {
    .btn-quantity {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .quantity-input {
        width: 36px;
        height: 30px;
        font-size: 0.9rem;
    }

    .quantity-label {
        font-size: 0.85rem;
    }

    .count-badge {
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }

    html[dir="rtl"] .count-badge {
        left: -6px;
    }
}

.product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.product-detail-actions .btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-detail-actions .btn-buy-now {
    order: -1;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: var(--spacing-md) var(--spacing-xl);
    min-height: 52px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.product-detail-actions .btn-buy-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.product-detail-actions .btn-buy-now:hover::before {
    left: 100%;
}

.product-detail-actions .btn-buy-now:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 50%, var(--accent-light) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.product-detail-actions .btn-buy-now:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Buy Now Wrapper with COD Badge */
.product-detail-actions .buy-now-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    order: -1;
    width: 100%;
}

.product-detail-actions .buy-now-wrapper .btn-buy-now {
    order: 0;
    width: 100%;
}

.product-detail-actions .cod-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.04) 100%);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    animation: cod-pulse 2.5s ease-in-out infinite;
}

@keyframes cod-pulse {

    0%,
    100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.product-detail-actions .btn-secondary {
    order: 0;
    background: white;
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
}

.product-detail-actions .btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.product-detail-actions .btn-outline {
    order: 1;
}

/* Shipping Information */
.product-shipping-info {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-shipping-info .shipping-icon {
    font-size: 1rem;
    line-height: 1;
    margin-right: 4px;
}

.product-shipping-info .shipping-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Highlight keywords in shipping information */
.highlight-keyword {
    color: var(--primary-color);
    font-weight: 700;
}

.product-shipping-info .shipping-text:first-of-type {
    color: var(--text-light);
    font-weight: 500;
}

.product-shipping-info .shipping-text:last-of-type {
    color: var(--text-light);
    font-weight: 500;
}

.product-shipping-info .shipping-separator {
    color: var(--border-color);
    margin: 0 8px;
    font-size: 0.9rem;
}

/* Express Top Position - After Price */
.product-shipping-info.express-top {
    margin: 12px 0 16px 0;
}

/* Express Delivery Styling for CAN Match Day */
.product-shipping-info.express-delivery {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    margin-top: var(--spacing-sm);
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    gap: 12px;
}

/* Express First - Neuromarketing Priority Styling */
.product-shipping-info.express-first {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.06) 100%);
    border: 2px solid #006233;
    padding: 12px 16px;
    position: relative;
    animation: expressGlow 2s ease-in-out infinite alternate;
}

@keyframes expressGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    }
}

.product-shipping-info .express-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #006233 0%, #008844 100%);
    padding: 6px 14px;
    border-radius: 20px;
    margin-right: 10px;
}

.product-shipping-info .express-highlight .shipping-icon {
    color: #FFD700;
    font-size: 1rem;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.product-shipping-info .express-highlight .express-text {
    color: white;
}

.product-shipping-info .express-highlight .express-text strong {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.product-shipping-info .express-highlight .express-badge {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-shipping-info .express-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.product-shipping-info .express-text strong {
    color: var(--secondary-color);
    font-weight: 700;
    white-space: nowrap;
}

.product-shipping-info .express-badge {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tablets and smaller */
@media (max-width: 768px) {
    .product-shipping-info.express-delivery {
        padding: 8px 10px;
        gap: 4px;
    }

    .product-shipping-info.express-first {
        padding: 10px 12px;
    }

    .product-shipping-info .express-highlight {
        padding: 3px 8px;
        margin-right: 6px;
    }

    .product-shipping-info .express-highlight .shipping-icon {
        font-size: 0.9rem;
    }

    .product-shipping-info .express-highlight .express-text strong {
        font-size: 0.75rem;
    }

    .product-shipping-info .express-highlight .express-badge {
        font-size: 0.5rem;
        padding: 2px 4px;
    }

    .product-shipping-info .express-badge {
        font-size: 0.55rem;
        padding: 2px 5px;
    }
}

/* Small screens */
@media (max-width: 480px) {

    .product-shipping-info.express-delivery,
    .checkout-shipping-info.express-delivery {
        padding: 6px 5px;
        gap: 2px;
        font-size: clamp(0.5rem, 2.5vw, 0.65rem);
        transform: scale(0.98);
        transform-origin: center;
    }

    .product-shipping-info.express-first {
        padding: 7px 9px;
        border-width: 1.5px;
    }

    .product-shipping-info .express-highlight {
        padding: 2px 5px;
        margin-right: 3px;
        border-radius: 14px;
    }

    .product-shipping-info .express-highlight .shipping-icon {
        font-size: 0.75rem;
    }

    .product-shipping-info .express-highlight .express-text strong {
        font-size: 0.6rem;
    }

    .product-shipping-info .express-highlight .express-badge {
        font-size: 0.42rem;
        padding: 1px 3px;
    }

    .product-shipping-info.express-delivery .shipping-icon,
    .checkout-shipping-info.express-delivery .shipping-icon {
        font-size: clamp(0.55rem, 2.2vw, 0.7rem);
    }

    .product-shipping-info .express-text,
    .checkout-shipping-info .express-text {
        gap: 2px;
    }

    .product-shipping-info .express-text strong,
    .checkout-shipping-info .express-text strong {
        font-size: clamp(0.45rem, 2.5vw, 0.6rem);
    }

    .product-shipping-info .express-badge,
    .checkout-shipping-info .express-badge {
        font-size: clamp(0.35rem, 2vw, 0.45rem);
        padding: 1px 3px;
        border-radius: 8px;
    }

    .product-shipping-info.express-delivery .shipping-separator,
    .checkout-shipping-info.express-delivery .shipping-separator {
        margin: 0 1px;
    }

    .product-shipping-info .shipping-text,
    .checkout-shipping-info .shipping-text {
        font-size: clamp(0.5rem, 2.5vw, 0.65rem);
    }
}

/* Very small screens */
@media (max-width: 360px) {

    .product-shipping-info.express-delivery,
    .checkout-shipping-info.express-delivery {
        padding: 5px 3px;
        gap: 1px;
        font-size: clamp(0.4rem, 2.6vw, 0.52rem);
        transform: scale(0.95);
        transform-origin: center;
    }

    .product-shipping-info.express-first {
        padding: 5px 6px;
    }

    .product-shipping-info .express-highlight {
        padding: 2px 4px;
        margin-right: 2px;
        border-radius: 10px;
    }

    .product-shipping-info .express-highlight .shipping-icon {
        font-size: 0.65rem;
    }

    .product-shipping-info .express-highlight .express-text strong {
        font-size: 0.52rem;
    }

    .product-shipping-info .express-highlight .express-badge {
        font-size: 0.35rem;
        padding: 1px 2px;
    }

    .product-shipping-info.express-delivery .shipping-icon,
    .checkout-shipping-info.express-delivery .shipping-icon {
        font-size: clamp(0.5rem, 2.6vw, 0.65rem);
    }

    .product-shipping-info .express-text strong,
    .checkout-shipping-info .express-text strong {
        font-size: clamp(0.4rem, 2.6vw, 0.5rem);
    }

    .product-shipping-info .express-badge,
    .checkout-shipping-info .express-badge {
        font-size: clamp(0.3rem, 2.2vw, 0.4rem);
        padding: 1px 2px;
    }

    .product-shipping-info .shipping-text,
    .checkout-shipping-info .shipping-text {
        font-size: clamp(0.35rem, 2.5vw, 0.48rem);
    }

    .checkout-shipping-info .shipping-separator {
        font-size: 0.35rem;
        margin: 0 1px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {

    .product-shipping-info.express-delivery,
    .checkout-shipping-info.express-delivery {
        padding: 4px 2px;
        gap: 1px;
        font-size: clamp(0.32rem, 2.8vw, 0.45rem);
        transform: scale(0.92);
        transform-origin: center;
    }

    .product-shipping-info.express-first {
        padding: 4px 5px;
        border-width: 1px;
    }

    .product-shipping-info .express-highlight {
        padding: 1px 3px;
        margin-right: 1px;
        border-radius: 8px;
    }

    .product-shipping-info .express-highlight .shipping-icon {
        font-size: 0.55rem;
    }

    .product-shipping-info .express-highlight .express-text strong {
        font-size: 0.45rem;
    }

    .product-shipping-info .express-highlight .express-badge {
        font-size: 0.3rem;
        padding: 0px 2px;
        border-radius: 5px;
    }

    .product-shipping-info.express-delivery .shipping-icon,
    .checkout-shipping-info.express-delivery .shipping-icon {
        font-size: clamp(0.4rem, 2.8vw, 0.55rem);
    }

    .product-shipping-info .express-text,
    .checkout-shipping-info .express-text {
        gap: 1px;
    }

    .product-shipping-info .express-text strong,
    .checkout-shipping-info .express-text strong {
        font-size: clamp(0.35rem, 2.8vw, 0.45rem);
    }

    .product-shipping-info .express-badge,
    .checkout-shipping-info .express-badge {
        font-size: clamp(0.25rem, 2.2vw, 0.35rem);
        padding: 1px 2px;
        border-radius: 5px;
    }

    .product-shipping-info .shipping-text,
    .checkout-shipping-info .shipping-text {
        font-size: clamp(0.3rem, 2.5vw, 0.4rem);
    }

    .checkout-shipping-info .shipping-separator {
        font-size: 0.3rem;
        margin: 0 1px;
    }
}

/* Cart & Checkout extra tight sizing */
@media (max-width: 380px) {

    .cart-shipping-info.express-delivery,
    .checkout-shipping-info.express-delivery {
        padding: 4px 4px;
        gap: 1px;
    }

    .cart-shipping-info.express-delivery .shipping-icon,
    .checkout-shipping-info.express-delivery .shipping-icon {
        font-size: clamp(0.5rem, 3vw, 0.6rem);
    }

    .cart-shipping-info.express-delivery .shipping-text,
    .checkout-shipping-info.express-delivery .shipping-text {
        font-size: clamp(0.45rem, 2.8vw, 0.55rem);
    }

    .cart-shipping-info .express-text,
    .checkout-shipping-info .express-text {
        gap: 1px;
    }

    .cart-shipping-info .express-text strong,
    .checkout-shipping-info .express-text strong {
        font-size: clamp(0.4rem, 2.8vw, 0.5rem);
    }

    .cart-shipping-info .express-badge,
    .checkout-shipping-info .express-badge {
        font-size: clamp(0.3rem, 2.2vw, 0.38rem);
        padding: 1px 2px;
        border-radius: 4px;
    }

    .cart-shipping-info.express-delivery .shipping-separator,
    .checkout-shipping-info.express-delivery .shipping-separator {
        margin: 0;
        font-size: clamp(0.3rem, 2vw, 0.4rem);
    }
}

@media (max-width: 340px) {

    .cart-shipping-info.express-delivery,
    .checkout-shipping-info.express-delivery {
        padding: 3px 3px;
        gap: 1px;
    }

    .cart-shipping-info.express-delivery .shipping-icon,
    .checkout-shipping-info.express-delivery .shipping-icon {
        font-size: clamp(0.45rem, 3vw, 0.55rem);
    }

    .cart-shipping-info.express-delivery .shipping-text,
    .checkout-shipping-info.express-delivery .shipping-text {
        font-size: clamp(0.4rem, 3vw, 0.5rem);
    }

    .cart-shipping-info .express-text strong,
    .checkout-shipping-info .express-text strong {
        font-size: clamp(0.35rem, 3vw, 0.45rem);
    }

    .cart-shipping-info .express-badge,
    .checkout-shipping-info .express-badge {
        font-size: clamp(0.28rem, 2.5vw, 0.35rem);
        padding: 0px 2px;
    }

    .cart-shipping-info.express-delivery .shipping-separator,
    .checkout-shipping-info.express-delivery .shipping-separator {
        display: none;
    }
}

.cart-shipping-info,
.checkout-shipping-info {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: nowrap;
    font-size: clamp(0.5rem, 2.2vw, 0.8rem);
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.cart-shipping-info .shipping-icon,
.checkout-shipping-info .shipping-icon {
    font-size: 0.9rem;
    line-height: 1;
    flex-shrink: 0;
}

.cart-shipping-info .shipping-text,
.checkout-shipping-info .shipping-text {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.cart-shipping-info .shipping-separator,
.checkout-shipping-info .shipping-separator {
    color: var(--border-color);
    margin: 0 4px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Highlight keywords in shipping info */
.cart-shipping-info .highlight-keyword,
.checkout-shipping-info .highlight-keyword {
    color: var(--primary-color);
    font-weight: 700;
}

/* Express Delivery for Cart & Checkout Pages */
.cart-shipping-info.express-delivery,
.checkout-shipping-info.express-delivery {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    overflow: visible;
}

.cart-shipping-info .express-text,
.checkout-shipping-info .express-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.cart-shipping-info .express-text strong,
.checkout-shipping-info .express-text strong {
    color: var(--secondary-color);
    font-weight: 700;
    white-space: nowrap;
}

.cart-shipping-info .express-badge,
.checkout-shipping-info .express-badge {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.shipping-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
}

.shipping-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.shipping-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.shipping-info-content strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.shipping-info-content span {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .product-shipping-info {
        margin-top: var(--spacing-xs);
        padding-top: var(--spacing-xs);
        font-size: 0.75rem;
    }

    .product-shipping-info .shipping-icon {
        font-size: 0.85rem;
    }

    .product-shipping-info .shipping-text {
        font-size: 0.75rem;
    }

    .cart-shipping-info,
    .checkout-shipping-info {
        margin-top: var(--spacing-xs);
        padding-top: var(--spacing-xs);
        font-size: clamp(0.5rem, 2.5vw, 0.75rem);
    }

    .cart-shipping-info .shipping-icon,
    .checkout-shipping-info .shipping-icon {
        font-size: clamp(0.65rem, 2.8vw, 0.85rem);
    }

    .cart-shipping-info .shipping-text,
    .checkout-shipping-info .shipping-text {
        font-size: clamp(0.5rem, 2.5vw, 0.75rem);
    }

    .cart-shipping-info.express-delivery,
    .checkout-shipping-info.express-delivery {
        padding: 8px 8px;
        gap: 3px;
    }

    .cart-shipping-info .express-text strong,
    .checkout-shipping-info .express-text strong {
        font-size: clamp(0.5rem, 2.5vw, 0.7rem);
    }

    .cart-shipping-info .express-badge,
    .checkout-shipping-info .express-badge {
        font-size: clamp(0.4rem, 2vw, 0.5rem);
        padding: 2px 4px;
    }

    .shipping-info-item {
        gap: var(--spacing-xs);
    }

    .shipping-icon {
        font-size: 1.1rem;
    }

    .shipping-info-content strong {
        font-size: 0.85rem;
    }

    .shipping-info-content span {
        font-size: 0.75rem;
    }
}

/* Payment Security Icons */
.payment-security-icons {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    order: 2;
}

.payment-security-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin: 0 0 var(--spacing-sm) 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-icons-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.payment-icon {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.payment-icon:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-actions .btn {
        width: 100%;
        min-width: 100%;
    }

    .product-detail-actions .cod-badge {
        font-size: 0.68rem;
        padding: 3px 10px;
    }

    .payment-icon {
        height: 24px;
    }

    .payment-icons-container {
        gap: var(--spacing-xs);
    }

    .payment-security-label {
        font-size: 0.7rem;
    }
}

/* RTL Support for Shipping Information */
html[dir="rtl"] .product-shipping-info,
html[dir="rtl"] .cart-shipping-info,
html[dir="rtl"] .checkout-shipping-info {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .product-shipping-info.express-delivery,
html[dir="rtl"] .cart-shipping-info.express-delivery,
html[dir="rtl"] .checkout-shipping-info.express-delivery {
    justify-content: center;
    gap: var(--spacing-xs);
}

html[dir="rtl"] .product-shipping-info .express-highlight {
    margin-right: 6px;
    margin-left: 0;
}

html[dir="rtl"] .product-shipping-info .express-text,
html[dir="rtl"] .cart-shipping-info .express-text,
html[dir="rtl"] .checkout-shipping-info .express-text {
    justify-content: flex-end;
    text-align: right;
    gap: 3px;
}

html[dir="rtl"] .product-shipping-info .shipping-icon,
html[dir="rtl"] .cart-shipping-info .shipping-icon,
html[dir="rtl"] .checkout-shipping-info .shipping-icon {
    margin-right: 0;
    margin-left: 4px;
}

html[dir="rtl"] .product-shipping-info .shipping-text,
html[dir="rtl"] .cart-shipping-info .shipping-text,
html[dir="rtl"] .checkout-shipping-info .shipping-text {
    text-align: right;
}

html[dir="rtl"] .product-shipping-info .shipping-separator,
html[dir="rtl"] .cart-shipping-info .shipping-separator,
html[dir="rtl"] .checkout-shipping-info .shipping-separator {
    margin: 0 4px;
}

/* RTL COD Badge */
html[dir="rtl"] .product-detail-actions .cod-badge {
    direction: rtl;
}

html[dir="rtl"] .shipping-info-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .shipping-info-content {
    align-items: flex-end;
    text-align: right;
}

/* RTL Support for Express First Banner on Product Page */
html[dir="rtl"] .product-shipping-info.express-first {
    justify-content: center;
    text-align: right;
}

html[dir="rtl"] .product-shipping-info.express-first .express-highlight {
    margin-right: 6px;
    margin-left: 0;
}

html[dir="rtl"] .product-shipping-info.express-first .express-highlight .express-text {
    text-align: right;
}

html[dir="rtl"] .product-shipping-info.express-first .express-badge {
    margin-left: 4px;
    margin-right: 0;
}

/* RTL small screen adjustments for shipping banner */
@media (max-width: 480px) {

    html[dir="rtl"] .product-shipping-info.express-delivery,
    html[dir="rtl"] .product-shipping-info.express-first {
        gap: 3px;
        padding-left: 4px;
        padding-right: 4px;
    }

    html[dir="rtl"] .product-shipping-info .express-highlight {
        margin-right: 4px;
        margin-left: 0;
    }

    html[dir="rtl"] .product-shipping-info .shipping-separator {
        margin: 0 2px;
    }
}

@media (max-width: 360px) {

    html[dir="rtl"] .product-shipping-info.express-delivery,
    html[dir="rtl"] .product-shipping-info.express-first {
        gap: 2px;
        padding-left: 3px;
        padding-right: 3px;
    }

    html[dir="rtl"] .product-shipping-info .express-highlight {
        margin-right: 3px;
        margin-left: 0;
        padding: 2px 4px;
    }

    html[dir="rtl"] .product-shipping-info .shipping-separator {
        margin: 0 1px;
    }
}

@media (max-width: 320px) {

    html[dir="rtl"] .product-shipping-info.express-delivery,
    html[dir="rtl"] .product-shipping-info.express-first {
        gap: 1px;
        padding-left: 2px;
        padding-right: 2px;
    }

    html[dir="rtl"] .product-shipping-info .express-highlight {
        margin-right: 2px;
        margin-left: 0;
        padding: 1px 3px;
    }

    html[dir="rtl"] .product-shipping-info .shipping-separator {
        margin: 0;
    }
}

/* RTL Support for Payment Icons */
html[dir="rtl"] .payment-security-icons {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .payment-icons-container {
    direction: ltr;
    /* Keep icons LTR for consistency */
}

/* RTL Support for Product Detail Features */
html[dir="rtl"] .product-detail-features ul {
    direction: rtl;
}

html[dir="rtl"] .product-detail-features li {
    direction: rtl;
    text-align: right;
    padding-left: var(--spacing-md);
    padding-right: calc(var(--spacing-lg) + 24px);
    border-left: none;
    border-right: 2px solid rgba(0, 0, 0, 0.15);
}

html[dir="rtl"] .product-detail-features li:hover {
    transform: translateX(-2px);
    border-right-color: var(--primary-color);
}

html[dir="rtl"] .product-detail-features li::before {
    left: auto !important;
    right: var(--spacing-md) !important;
    top: 50%;
    transform: translateY(-50%);
}

.loading,
.error-message {
    text-align: center;
    padding: var(--spacing-5xl) var(--spacing-xl);
    font-size: 1.2rem;
    color: var(--text-light);
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.error-message {
    color: var(--primary-color);
    font-weight: 500;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Size Added Notification */
.size-added-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    max-width: 400px;
}

.size-added-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.size-added-notification .notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.size-added-notification .notification-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.size-added-notification .notification-message {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Size Required Error Notification */
.size-required-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    max-width: 400px;
}

.size-required-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.size-required-notification .notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.size-required-notification .notification-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.size-required-notification .notification-message {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Error highlight for size selector */
.product-size-selector.error-highlight {
    animation: errorPulse 0.5s ease-in-out;
    border-radius: 8px;
    padding: var(--spacing-xs);
    margin: calc(var(--spacing-xs) * -1);
}

@keyframes errorPulse {

    0%,
    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        background-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .cart-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }

    .size-added-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .size-added-notification .notification-message {
        font-size: 0.85rem;
    }

    .size-required-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .size-required-notification .notification-message {
        font-size: 0.85rem;
    }
}

/* Checkout Page */
.checkout-section {
    padding: var(--spacing-2xl) 0;
    min-height: calc(100vh - 70px);
    background: white;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.checkout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 128, 74, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.checkout-section .container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.checkout-section .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    letter-spacing: -0.5px;
    animation: fadeInDown 0.6s ease;
}

.checkout-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-3xl);
    font-weight: 400;
    animation: fadeInDown 0.6s ease 0.1s both;
}

/* Checkout Progress Steps */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: fadeInDown 0.6s ease 0.2s both;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 1;
    max-width: 200px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    direction: ltr;
    unicode-bidi: embed;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    border-color: var(--accent-color);
    color: var(--text-dark) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 var(--spacing-sm);
    position: relative;
    max-width: 100px;
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    transition: width 0.5s ease;
}

.progress-step.active~.progress-line::after {
    width: 100%;
}

/* Checkout Help Banner */
.checkout-help-banner {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 128, 74, 0.06) 50%, rgba(0, 0, 0, 0.05) 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.checkout-help-banner p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* Phone number should always be LTR */
.phone-number {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
}

/* Section Help Text */
.section-help-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 var(--spacing-lg) 0;
    line-height: 1.7;
    font-style: italic;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Field Help Text */
.field-help {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
    line-height: 1.5;
    font-style: italic;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 128, 74, 0.08) 50%, rgba(0, 0, 0, 0.06) 100%);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
}

.security-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.security-badge span:last-child {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    flex: 1;
}

/* Payment Instructions */
.payment-instructions {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: -webkit-sticky;
    position: sticky;
    top: calc(70px + var(--spacing-md));
    z-index: 100;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    align-self: start;
    will-change: transform;
}

.payment-instructions::-webkit-scrollbar {
    width: 6px;
}

.payment-instructions::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.payment-instructions::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.payment-instructions::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.instruction-title {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.instruction-steps {
    margin: 0 0 var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
    color: var(--text-dark);
    text-align: left;
}

.instruction-steps li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    font-size: 0.9rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.instruction-steps li:last-child {
    margin-bottom: 0;
}

.instruction-result {
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 128, 74, 0.06) 50%, rgba(0, 0, 0, 0.08) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.result-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.result-text {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    flex: 1;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.instruction-note {
    margin: 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.checkout-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-2xl);
    align-items: start;
    animation: fadeInUp 0.6s ease 0.2s both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.checkout-form-wrapper {
    background: white;
    padding: var(--spacing-4xl);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.checkout-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    z-index: 1;
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.checkout-section-block {
    margin-bottom: var(--spacing-4xl);
    position: relative;
    overflow: visible;
}

.checkout-section-block:last-of-type {
    margin-bottom: 0;
}

.checkout-section-block h2 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
    font-weight: 700;
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%) 1;
    border-image-slice: 1;
    margin-top: 0;
    position: relative;
    letter-spacing: -0.3px;
    text-align: left;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: visible;
}

.checkout-section-block .form-row:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group label {
    margin-bottom: var(--spacing-xs);
}

.checkout-section-block .form-group:not(:last-child) {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.label-text {
    flex: 1;
}

.label-required {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: var(--spacing-xs);
}

.label-optional {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
    margin-left: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    margin: 0;
    position: relative;
}

/* District Autocomplete Styles */
.district-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.district-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: -2px;
}

.district-autocomplete-item {
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.district-autocomplete-item:last-child {
    border-bottom: none;
}

.district-autocomplete-item:hover,
.district-autocomplete-item.selected {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.district-autocomplete-item:active {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Enhanced district autocomplete with Arabic names */
.district-name-main {
    font-weight: 500;
    display: inline;
}

.district-name-secondary {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9em;
    opacity: 0.8;
}

.district-info {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-left: 4px;
}

.district-pickup-badge {
    font-size: 0.85em;
    margin-left: 4px;
    cursor: help;
}

/* RTL support for district autocomplete */
[dir="rtl"] .district-autocomplete-item {
    text-align: right;
}

[dir="rtl"] .district-name-secondary {
    margin-right: 4px;
    margin-left: 0;
}

[dir="rtl"] .district-info {
    margin-right: 4px;
    margin-left: 0;
}

#districtId:focus+#districtIdValue+.district-autocomplete-list {
    border-color: var(--primary-color);
}

/* =============================================
   City/District Autocomplete Dropdown
   ============================================= */
.city-autocomplete-wrapper,
.form-group {
    position: relative;
}

.city-input-container {
    position: relative;
    width: 100%;
}

/* Autocomplete list - supports both city-* and district-* classes */
.city-autocomplete-list,
#cityAutocompleteList {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important;
    border: 2px solid var(--primary-color, #c8102e);
    border-radius: 0 0 12px 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-top: 0;
    /* Smooth scrolling for touch devices */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.city-autocomplete-list.show,
#cityAutocompleteList.show {
    display: block !important;
    animation: slideDown 0.2s ease-out;
}

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

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

/* Autocomplete items - support both naming conventions */
/* Touch-friendly with minimum 44px touch targets */
.city-autocomplete-item,
.district-autocomplete-item {
    padding: 14px 16px;
    min-height: 48px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease, transform 0.1s ease;
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    /* Prevent text selection on touch */
    -webkit-user-select: none;
    user-select: none;
    /* Touch feedback */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.15);
}

.city-autocomplete-item:first-child {
    border-radius: 0;
}

.city-autocomplete-item:last-child,
.district-autocomplete-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.city-autocomplete-item:hover,
.city-autocomplete-item.selected,
.district-autocomplete-item:hover,
.district-autocomplete-item.selected {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

.city-autocomplete-item:active,
.district-autocomplete-item:active {
    background-color: rgba(0, 0, 0, 0.15) !important;
    transform: scale(0.99);
}

/* Visual indicator for selected item */
.city-autocomplete-item.selected::before,
.district-autocomplete-item.selected::before {
    content: '✓';
    position: absolute;
    right: 16px;
    color: var(--primary-color, #c8102e);
    font-weight: bold;
}

/* Main text styling */
.city-autocomplete-item .city-name-primary,
.district-autocomplete-item .district-name-main {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.3;
    display: block;
}

/* Secondary text (Arabic/French alternate name) */
.city-autocomplete-item .city-name-secondary,
.district-autocomplete-item .district-name-secondary {
    font-size: 0.82rem;
    color: #777777;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 2px;
    display: block;
}

/* Hide price/delivery info - shipping is FREE for customer */
.city-autocomplete-item .city-info,
.district-autocomplete-item .district-info {
    display: none !important;
}

/* Pickup badge */
.district-autocomplete-item .district-pickup-badge {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* "Other" option styling - make it stand out */
.city-autocomplete-item.other-option,
.district-autocomplete-item.other-option {
    background-color: #f8f9fa !important;
    border-top: 2px solid #e0e0e0;
    padding: 16px;
    position: sticky;
    bottom: 0;
}

.city-autocomplete-item.other-option:hover,
.district-autocomplete-item.other-option:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.city-autocomplete-item.other-option .city-name-primary,
.district-autocomplete-item.other-option .district-name-main {
    color: #006233;
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-autocomplete-item.other-option .city-name-primary::before {
    content: '📍';
}

.city-autocomplete-item.other-option .city-name-secondary {
    color: #888888;
    font-size: 0.78rem;
}

/* RTL support for autocomplete */
[dir="rtl"] .city-autocomplete-item,
[dir="rtl"] .district-autocomplete-item {
    text-align: right;
}

[dir="rtl"] .city-autocomplete-item .city-name-secondary,
[dir="rtl"] .district-autocomplete-item .district-name-secondary {
    direction: ltr;
    unicode-bidi: embed;
}

[dir="rtl"] .district-autocomplete-item .district-pickup-badge {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .city-autocomplete-item.selected::before,
[dir="rtl"] .district-autocomplete-item.selected::before {
    right: auto;
    left: 16px;
}

[dir="rtl"] .city-autocomplete-item.other-option .city-name-primary::before {
    content: '';
}

[dir="rtl"] .city-autocomplete-item.other-option .city-name-primary::after {
    content: '📍';
}

/* Responsive: Tablet & smaller */
@media (max-width: 768px) {

    .city-autocomplete-list,
    #cityAutocompleteList {
        max-height: 55vh;
        /* More space on mobile */
        border-radius: 0 0 10px 10px;
    }
}

/* Responsive: Small screens (mobile) */
@media (max-width: 480px) {

    .city-autocomplete-list,
    #cityAutocompleteList {
        max-height: 50vh;
        left: -1px;
        right: -1px;
        border-width: 2px;
    }

    .city-autocomplete-item,
    .district-autocomplete-item {
        padding: 14px 14px;
        min-height: 52px;
        /* Larger touch targets on mobile */
    }

    .city-autocomplete-item .city-name-primary,
    .district-autocomplete-item .district-name-main {
        font-size: 0.95rem;
    }

    .city-autocomplete-item .city-name-secondary,
    .district-autocomplete-item .district-name-secondary {
        font-size: 0.78rem;
    }

    .city-autocomplete-item.other-option {
        padding: 14px;
    }
}

/* Very small screens (320px phones) */
@media (max-width: 360px) {

    .city-autocomplete-list,
    #cityAutocompleteList {
        max-height: 45vh;
    }

    .city-autocomplete-item,
    .district-autocomplete-item {
        padding: 12px;
        min-height: 50px;
    }

    .city-autocomplete-item .city-name-primary,
    .district-autocomplete-item .district-name-main {
        font-size: 0.9rem;
    }

    .city-autocomplete-item .city-name-secondary,
    .district-autocomplete-item .district-name-secondary {
        font-size: 0.75rem;
    }
}

/* Loading state */
.city-autocomplete-list.loading::after {
    content: '';
    display: block;
    padding: 20px;
    text-align: center;
    color: #888888;
}

/* No results state */
.city-autocomplete-item.no-results {
    color: #888888;
    font-style: italic;
    pointer-events: none;
    text-align: center;
    padding: 20px;
}

/* Keyboard navigation highlight */
.city-autocomplete-item:focus,
.district-autocomplete-item:focus {
    outline: 2px solid var(--primary-color, #c8102e);
    outline-offset: -2px;
    background-color: rgba(0, 0, 0, 0.08) !important;
}

/* =============================================
   Mobile Keyboard Optimization
   ============================================= */
/* Position above input when keyboard takes too much space */
.city-autocomplete-list.position-above,
#cityAutocompleteList.position-above {
    bottom: 100%;
    top: auto;
    margin-bottom: 4px;
    margin-top: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}

.city-autocomplete-list.position-above .city-autocomplete-item:first-child {
    border-radius: 10px 10px 0 0;
}

.city-autocomplete-list.position-above .city-autocomplete-item:last-child {
    border-radius: 0;
}

/* Mobile-specific: when virtual keyboard is visible */
@media (max-width: 768px) {

    /* Ensure the form group container allows dropdown to overflow */
    .form-group:has(#city) {
        position: relative;
        z-index: 100;
    }

    /* Make the autocomplete more compact on mobile with keyboard */
    .city-autocomplete-list,
    #cityAutocompleteList {
        max-height: 40vh;
        /* Smaller to fit with keyboard */
    }

    /* Faster scroll for quick selection */
    .city-autocomplete-list {
        scroll-snap-type: y proximity;
    }

    .city-autocomplete-item {
        scroll-snap-align: start;
    }

    /* Add subtle hint that list is scrollable */
    .city-autocomplete-list::after {
        content: '';
        display: block;
        height: 1px;
    }
}

/* Extra small screens with keyboard */
@media (max-width: 480px) {

    .city-autocomplete-list,
    #cityAutocompleteList {
        max-height: 35vh;
    }

    /* More compact items to show more options */
    .city-autocomplete-item,
    .district-autocomplete-item {
        padding: 12px 14px;
        min-height: 46px;
    }
}

/* Tiny screens (320px) - most compact */
@media (max-width: 360px) {

    .city-autocomplete-list,
    #cityAutocompleteList {
        max-height: 30vh;
    }

    .city-autocomplete-item,
    .district-autocomplete-item {
        padding: 10px 12px;
        min-height: 44px;
    }

    .city-autocomplete-item .city-name-primary {
        font-size: 0.88rem;
    }

    .city-autocomplete-item .city-name-secondary {
        font-size: 0.72rem;
    }
}

/* Handle iOS safe area at bottom */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .city-autocomplete-list.position-above {
        margin-bottom: calc(4px + env(safe-area-inset-bottom));
    }
}

/* City Matching Status Indicator */
.city-matching-status {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    transition: all 0.3s ease;
}

.city-matching-status.matching {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.city-matching-status.matched {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.city-matching-status.not-matched {
    background-color: rgba(255, 152, 0, 0.1);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.city-matching-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.city-matching-status.matching::before {
    background-color: #2196F3;
    animation: pulse 1.5s ease-in-out infinite;
}

.city-matching-status.matched::before {
    background-color: #4CAF50;
}

.city-matching-status.not-matched::before {
    background-color: #FF9800;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.form-group input,
.form-group select,
.form-group textarea {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--primary-color);
    background-color: #fff5f5;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group.error {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Enhanced form error styling */
.form-error .error-main {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.form-error .error-help {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: var(--spacing-xs);
}

/* Payment error message */
.payment-error-message,
.payment-loading-error {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-dark);
}

.payment-error-message .error-icon,
.payment-loading-error .error-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-error-message .error-content,
.payment-loading-error .error-content {
    flex: 1;
}

.payment-error-message .error-main,
.payment-loading-error .error-main {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.payment-error-message .error-help,
.payment-loading-error .error-help {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Contact form success message */
.contact-success-message {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
    font-weight: 600;
    display: none;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-success-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.contact-success-message::before {
    content: "✅";
    position: absolute;
    left: var(--spacing-md);
    top: var(--spacing-md);
    font-size: 1.2rem;
}

.contact-success-message {
    padding-left: calc(var(--spacing-lg) + 1.5rem);
}

/* Tracking error styling */
.tracking-error .error-help-text {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.tracking-error .error-contact {
    display: block;
    margin-top: var(--spacing-sm);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.error-message {
    color: var(--primary-color);
    font-size: 0.75rem;
    display: none;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    min-height: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.15s ease, margin 0.15s ease;
}

.error-message:not(:empty) {
    display: block;
    height: auto;
    margin-top: 0.2rem;
}

.form-error {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    padding: var(--spacing-md);
    border-radius: 10px;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--primary-color);
    display: none;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.payment-option {
    display: flex;
    align-items: center;
    padding: var(--spacing-xl);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.payment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    transition: left 0.5s ease;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 128, 74, 0.03) 50%, rgba(0, 0, 0, 0.02) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.payment-option:hover::before {
    left: 100%;
}

html[dir="rtl"] .payment-option:hover::before {
    right: 100%;
    left: auto;
}

.payment-option input[type="radio"] {
    margin-right: var(--spacing-lg);
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transition: all 0.2s ease;
}

.payment-option input[type="radio"]:checked {
    transform: scale(1.1);
}

.payment-option input[type="radio"]:checked+.payment-label {
    color: var(--primary-color);
}

.payment-option input[type="radio"]:checked+.payment-label strong {
    color: var(--primary-color);
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 128, 74, 0.08) 50%, rgba(0, 0, 0, 0.06) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.payment-label {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
    /* Add padding-right to make room for badge */
    padding-right: 80px;
    min-width: 0;
    /* Allow text to wrap if needed */
}

.payment-label strong {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
    word-wrap: break-word;
}

.payment-label small {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    word-wrap: break-word;
}

html[dir="rtl"] .payment-label {
    padding-right: 0;
    padding-left: 80px;
}

/* Payment Icons */
.payment-icon-cod,
.payment-icon-paypal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-right: var(--spacing-md);
    transition: transform 0.3s ease;
}

.payment-icon-cod picture,
.payment-icon-paypal picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon-cod img,
.payment-icon-paypal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

html[dir="rtl"] .payment-icon-cod,
html[dir="rtl"] .payment-icon-paypal {
    margin-right: 0;
    margin-left: var(--spacing-sm);
}

.payment-option:hover .payment-icon-cod,
.payment-option:hover .payment-icon-paypal {
    transform: scale(1.1);
}

/* Payment Badge */
.payment-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.3rem 0.6rem;
    background: var(--accent-color);
    color: var(--text-dark);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    z-index: 10;
    /* Ensure badge doesn't overlap content */
    max-width: calc(100% - var(--spacing-md));
    overflow: hidden;
    text-overflow: ellipsis;
}

html[dir="rtl"] .payment-badge {
    right: auto;
    left: var(--spacing-sm);
}

/* Cash on Delivery - Highlighted as preferred */
.payment-option-cod:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 128, 74, 0.1) 50%, rgba(0, 0, 0, 0.08) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Fix for payment option with icon */
.payment-option input[type="radio"]:checked+.payment-icon-cod+.payment-label,
.payment-option input[type="radio"]:checked+.payment-icon-paypal+.payment-label {
    color: var(--primary-color);
}

.payment-option input[type="radio"]:checked+.payment-icon-cod+.payment-label strong,
.payment-option input[type="radio"]:checked+.payment-icon-paypal+.payment-label strong {
    color: var(--primary-color);
}

/* Cash on Delivery Info Section */
.cod-info-section {
    margin-top: var(--spacing-md);
    animation: fadeIn 0.3s ease;
}

.cod-info-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.cod-info-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.cod-info-header .cod-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.cod-info-header .cod-icon picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cod-info-header .cod-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cod-info-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.cod-info-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.cod-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.cod-benefits li {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: var(--spacing-sm);
}

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

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

.paypal-button-container {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.paypal-button-container>div {
    width: 100%;
    max-width: 500px;
}

/* Customize PayPal buttons to match site theme */
.paypal-button-container [id*="paypal-button"],
.paypal-button-container iframe {
    border-radius: 12px !important;
    overflow: hidden;
}

/* PayPal button container styling to match site theme */
.paypal-button-container {
    transition: all 0.3s ease;
}

.paypal-button-container:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

.paypal-loading {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: var(--spacing-md);
    width: 100%;
}

.paypal-loading p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.paypal-loading p::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

.manual-order-section {
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .paypal-button-container {
        padding: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .paypal-button-container {
        padding: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid;
    border-image: linear-gradient(90deg, transparent, var(--border-color), transparent) 1;
    border-image-slice: 1;
}

.form-actions .btn {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.form-actions .btn-primary,
.form-actions .btn-place-order {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    border: none;
    order: -1;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.form-actions .btn-primary::before,
.form-actions .btn-place-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.form-actions .btn-primary:hover::before,
.form-actions .btn-place-order:hover::before {
    left: 100%;
}

.form-actions .btn-primary:hover,
.form-actions .btn-place-order:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 50%, var(--accent-light) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    transform: translateY(-3px);
}

.form-actions .btn-outline {
    order: 1;
    font-size: 0.95rem;
    min-height: 48px;
    opacity: 0.8;
    background: transparent;
    border: 1px solid var(--border-color);
}

.form-actions .btn-outline:hover {
    opacity: 1;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.05);
}

.checkout-summary {
    background: white;
    padding: var(--spacing-3xl);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px;
    height: fit-content;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.checkout-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light), var(--accent-color));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.summary-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color)) 1;
    border-image-slice: 1;
    letter-spacing: -0.3px;
}

.checkout-items {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, transparent, var(--border-color), transparent) 1;
    border-image-slice: 1;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: var(--spacing-xs);
}

html[dir="rtl"] .checkout-items {
    padding-right: 0;
    padding-left: var(--spacing-xs);
}

.checkout-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    align-items: center;
    padding: var(--spacing-md);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.01);
}

.checkout-item-image {
    order: 1;
}

.checkout-item-variation {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.25rem 0 0.15rem 0;
}

.checkout-item-size {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

.checkout-item-details {
    order: 2;
}

.checkout-item-total {
    order: 3;
}

.checkout-item:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .checkout-item:hover {
        transform: none;
    }
}

.checkout-item:last-child {
    margin-bottom: 0;
}

.checkout-item-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.checkout-item:hover .checkout-item-image {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-details {
    flex: 1;
    min-width: 0;
}

.checkout-item-details h4 {
    font-size: 1rem;
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-dark);
    font-weight: 600;
}

.checkout-item-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    direction: ltr;
    unicode-bidi: bidi-override;
}

html[dir="rtl"] .checkout-item-details p {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
    text-align: left;
}

.checkout-item-total {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-family: 'Playfair Display', serif;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
}

/* Confirmation Page - Full Page Layout */
.confirmation-section {
    padding: var(--spacing-5xl) 0 var(--spacing-4xl);
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), white);
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.confirmation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 128, 74, 0.04) 100%);
    pointer-events: none;
}

.confirmation-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.confirmation-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.confirmation-icon {
    width: 120px;
    /* Larger icon */
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-lg);
    animation: scaleInBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(0, 0, 0, 0.05);
    /* Softer outer ring */
    position: relative;
}

.confirmation-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0.2;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes scaleInBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.1;
    }
}

.confirmation-content h1 {
    font-size: 3rem;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-dark);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: center;
}

.confirmation-thankyou {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-3xl);
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.confirmation-order-info {
    max-width: 600px;
    margin: 0 auto var(--spacing-4xl);
    padding: var(--spacing-2xl);
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.confirmation-details {
    text-align: left;
    margin: var(--spacing-4xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.confirmation-details>div {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border-left: 3px solid var(--primary-color);
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    font-size: 1.1rem;
}

.confirmation-row span {
    color: var(--text-light);
    font-weight: 500;
}

.confirmation-row strong {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.confirmation-message {
    color: var(--text-light);
    line-height: 1.7;
    margin: var(--spacing-lg) 0 0;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    font-size: 1rem;
}

/* Confirmation cards styled by parent .confirmation-details > div */

.confirmation-delivery-info h3,
.confirmation-next-steps h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-lg) 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.confirmation-delivery-info h3::before {
    content: '🚚';
    font-size: 1.5rem;
}

.confirmation-next-steps h3::before {
    content: '✨';
    font-size: 1.5rem;
}

.delivery-info-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.delivery-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    transition: var(--transition);
}

.delivery-info-item:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.delivery-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.delivery-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.delivery-info-content strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.delivery-info-content span {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.delivery-total {
    margin-top: var(--spacing-md);
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.next-step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    border-left: 3px solid rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.next-step-item:hover {
    background: white;
    border-left-color: var(--primary-color);
    transform: translateY(-3px);
    /* Lift up */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    /* Add shadow */
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--text-dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.step-content strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.confirmation-contact {
    text-align: center;
    color: var(--text-light);
    line-height: 1.6;
    margin: var(--spacing-3xl) 0 var(--spacing-2xl);
    font-size: 1rem;
}

.confirmation-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.confirmation-contact a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.confirmation-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-2xl);
}

.confirmation-actions .btn {
    min-width: 200px;
    padding: var(--spacing-md) var(--spacing-2xl);
    font-weight: 600;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.confirmation-row:first-child {
    padding-top: 0;
}

.confirmation-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Delivery Information */
.confirmation-delivery-info {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.confirmation-delivery-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-md) 0;
    text-align: left;
}

.delivery-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.delivery-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: 8px;
}

.delivery-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.delivery-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.delivery-info-content strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.delivery-info-content span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.3;
}

.delivery-total {
    text-align: center;
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.delivery-total span {
    color: var(--text-dark);
    font-weight: 700;
}

/* Next Steps */
.confirmation-next-steps {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.confirmation-next-steps h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-md) 0;
    text-align: left;
}

.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.next-step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    color: var(--text-dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-content strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .delivery-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .confirmation-delivery-info,
    .confirmation-next-steps {
        padding: var(--spacing-md);
    }

    .confirmation-delivery-info h3,
    .confirmation-next-steps h3 {
        font-size: 1rem;
    }

    .next-step-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .step-content strong {
        font-size: 0.9rem;
    }

    .step-content p {
        font-size: 0.8rem;
    }
}

.confirmation-row:hover {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.confirmation-row span {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.confirmation-row strong {
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', serif;
}

.confirmation-message {
    color: var(--text-light);
    line-height: 1.6;
    margin: var(--spacing-md) 0 0 0;
    font-size: 0.95rem;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.confirmation-contact {
    color: var(--text-light);
    line-height: 1.6;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.confirmation-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.confirmation-contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

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

.confirmation-contact a:hover::after {
    width: 100%;
}

.confirmation-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.confirmation-actions .btn {
    min-width: 180px;
    padding: var(--spacing-md) var(--spacing-2xl);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.confirmation-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.confirmation-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.confirmation-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 50%, var(--accent-light) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

@media (max-width: 968px) {
    .checkout-section {
        padding: var(--spacing-2xl) 0;
    }

    .checkout-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .payment-instructions {
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .checkout-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-2xl);
    }

    .checkout-progress {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        padding: var(--spacing-md);
    }

    .progress-step {
        max-width: none;
        flex: 1;
        min-width: 100px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .progress-line {
        max-width: 50px;
        margin: 0 var(--spacing-xs);
    }

    .checkout-help-banner {
        padding: var(--spacing-md) var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }

    .checkout-help-banner p {
        font-size: 0.9rem;
    }

    .section-help-text {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-md);
    }

    .field-help {
        font-size: 0.7rem;
    }

    .security-badge {
        padding: var(--spacing-md) var(--spacing-lg);
        flex-wrap: wrap;
    }

    .payment-instructions {
        padding: var(--spacing-lg);
    }

    .paypal-button-container {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }

    .checkout-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        margin-top: var(--spacing-xl);
    }

    .checkout-form-wrapper {
        padding: var(--spacing-2xl);
        border-radius: 20px;
    }

    .checkout-summary {
        position: static;
        order: -1;
        max-height: none;
    }

    .checkout-section-block {
        margin-bottom: var(--spacing-2xl);
    }

    .checkout-section-block h2 {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

    .form-actions .btn {
        width: 100%;
    }

    .checkout-item {
        padding: var(--spacing-sm);
    }

    .checkout-item-image {
        width: 60px;
        height: 60px;
    }

    .confirmation-section {
        padding: var(--spacing-4xl) 0 var(--spacing-3xl);
    }

    .confirmation-content {
        padding: 0 var(--container-padding-x);
    }

    .confirmation-icon {
        width: 85px;
        height: 85px;
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }

    .confirmation-content h1 {
        font-size: 2.5rem;
    }

    .confirmation-thankyou {
        font-size: 1.15rem;
        margin-bottom: var(--spacing-2xl);
    }

    .confirmation-order-info {
        padding: var(--spacing-xl);
    }

    .confirmation-details {
        gap: var(--spacing-lg);
        margin: var(--spacing-3xl) 0;
    }

    .confirmation-details>div {
        padding: var(--spacing-xl);
    }

    .confirmation-actions {
        margin-top: var(--spacing-2xl);
    }

    /* Confirmation Tracking Section Tablet */
    .confirmation-tracking-section {
        padding: var(--spacing-xl);
        margin: var(--spacing-2xl) 0;
    }

    .confirmation-tracking-section h3 {
        font-size: 1.4rem;
    }

    .tracking-code-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: var(--spacing-xl) 0;
    }

    .page-title {
        font-size: 1.9rem;
    }

    .checkout-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-xl);
    }

    .checkout-progress {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    .progress-step {
        min-width: 90px;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .progress-line {
        max-width: 40px;
    }

    .checkout-help-banner {
        padding: var(--spacing-sm) var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .checkout-help-banner p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .section-help-text {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-md);
        line-height: 1.6;
    }

    .field-help {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .security-badge {
        padding: var(--spacing-sm) var(--spacing-md);
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .security-badge span:last-child {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .payment-instructions {
        padding: var(--spacing-md);
        margin-top: var(--spacing-md);
    }

    .instruction-title {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }

    .instruction-steps {
        font-size: 0.88rem;
        padding-left: var(--spacing-md);
    }

    .instruction-steps li {
        line-height: 1.6;
    }

    .instruction-note {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .paypal-button-container {
        padding: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    .paypal-button-container>div {
        max-width: 100%;
    }

    .checkout-content {
        gap: var(--spacing-xl);
        margin-top: var(--spacing-lg);
    }

    .checkout-form-wrapper {
        padding: var(--spacing-xl);
        border-radius: 15px;
    }

    .checkout-summary {
        padding: var(--spacing-xl);
        border-radius: 15px;
    }

    .checkout-section-block {
        margin-bottom: var(--spacing-xl);
    }

    .checkout-section-block h2 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-sm);
    }

    .form-group {
        gap: var(--spacing-xs);
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
        min-height: 44px;
        /* Touch-friendly */
    }

    .payment-option {
        padding: var(--spacing-md);
        min-height: 60px;
        /* Touch-friendly */
        gap: var(--spacing-sm);
    }

    .payment-label {
        padding-right: 70px;
        /* Adjust for smaller badge on tablet */
        gap: 0.2rem;
    }

    html[dir="rtl"] .payment-label {
        padding-right: 0;
        padding-left: 70px;
    }

    .payment-label strong {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .payment-label small {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .payment-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        top: 0.5rem;
        right: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    html[dir="rtl"] .payment-badge {
        right: auto;
        left: 0.5rem;
    }

    .cod-info-card {
        padding: var(--spacing-md);
    }

    .cod-info-header {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .cod-info-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-sm);
    }

    .cod-benefits {
        gap: var(--spacing-xs);
    }

    .cod-benefits li {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .checkout-items {
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }

    .checkout-item {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .checkout-item-image {
        width: 50px;
        height: 50px;
    }

    .checkout-item-details h4 {
        font-size: 0.9rem;
    }

    .checkout-item-details p {
        font-size: 0.8rem;
    }

    .checkout-item-total {
        font-size: 0.9rem;
    }

    .summary-content h3 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-md);
    }

    .summary-row {
        font-size: 0.9rem;
        padding: var(--spacing-sm) 0;
    }

    .summary-row.total {
        font-size: 1.1rem;
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-md);
    }

    .confirmation-section {
        padding: var(--spacing-3xl) 0 var(--spacing-2xl);
        margin-top: 60px;
    }

    .confirmation-content {
        padding: 0 var(--container-padding-x);
    }

    .confirmation-icon {
        width: 75px;
        height: 75px;
        font-size: 2.25rem;
    }

    .confirmation-content h1 {
        font-size: 2.25rem;
    }

    .confirmation-thankyou {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-2xl);
    }

    .confirmation-order-info {
        padding: var(--spacing-lg);
    }

    .confirmation-row strong {
        font-size: 1.3rem;
    }

    .confirmation-details {
        gap: var(--spacing-md);
        margin: var(--spacing-2xl) 0;
    }

    .confirmation-details>div {
        padding: var(--spacing-lg);
    }

    .confirmation-message {
        font-size: 0.95rem;
    }

    .confirmation-contact {
        margin: var(--spacing-2xl) 0 var(--spacing-xl);
        font-size: 0.9rem;
    }

    .confirmation-actions {
        flex-direction: column;
        margin-top: var(--spacing-xl);
        gap: var(--spacing-sm);
    }

    .confirmation-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .checkout-section {
        padding: var(--spacing-xl) 0;
    }

    .page-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-xs);
    }

    .checkout-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-xl);
    }

    .checkout-progress {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-xl);
    }

    .progress-step {
        min-width: 80px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
        display: none;
    }

    .progress-line {
        max-width: 30px;
        margin: 0 2px;
    }

    .checkout-help-banner {
        padding: var(--spacing-sm) var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    .checkout-help-banner p {
        font-size: 0.85rem;
        line-height: 1.5;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    html[dir="rtl"] .checkout-help-banner p {
        line-height: 1.6;
    }

    .section-help-text {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-md);
        line-height: 1.6;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    html[dir="rtl"] .section-help-text {
        line-height: 1.7;
        text-align: right;
    }

    .field-help {
        font-size: 0.7rem;
        line-height: 1.5;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    html[dir="rtl"] .field-help {
        line-height: 1.6;
        text-align: right;
    }

    .security-badge {
        padding: var(--spacing-sm) var(--spacing-md);
        margin-bottom: var(--spacing-md);
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .security-badge span:last-child {
        font-size: 0.85rem;
        line-height: 1.4;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    html[dir="rtl"] .security-badge span:last-child {
        line-height: 1.5;
        text-align: right;
    }

    .payment-instructions {
        padding: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    .instruction-title {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }

    .instruction-steps {
        font-size: 0.85rem;
        padding-left: var(--spacing-md);
    }

    .instruction-steps li {
        line-height: 1.6;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    html[dir="rtl"] .instruction-steps {
        padding-right: var(--spacing-lg);
        padding-left: 0;
        margin-right: 0;
    }

    .instruction-note {
        font-size: 0.8rem;
        line-height: 1.5;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    html[dir="rtl"] .instruction-result {
        border-left: none;
        border-right: 4px solid var(--accent-color);
    }

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

    html[dir="rtl"] .instruction-note {
        line-height: 1.6;
    }

    .checkout-content {
        gap: var(--spacing-lg);
        margin-top: var(--spacing-md);
        grid-template-columns: 1fr;
    }

    .checkout-form-wrapper {
        padding: var(--spacing-lg);
        border-radius: 16px;
    }

    .payment-instructions {
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
    }

    .checkout-summary {
        padding: var(--spacing-md);
        border-radius: 16px;
        max-height: none;
        overflow: visible;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .checkout-section-block {
        margin-bottom: var(--spacing-lg);
    }

    .checkout-section-block h2 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-xs);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .payment-option {
        padding: var(--spacing-md);
        flex-wrap: wrap;
        min-height: 60px;
        gap: var(--spacing-xs);
    }

    .payment-label {
        padding-right: 60px;
        /* Adjust for smaller badge on mobile */
        flex: 1;
        min-width: 0;
    }

    html[dir="rtl"] .payment-label {
        padding-right: 0;
        padding-left: 60px;
    }

    .payment-label strong {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .payment-label small {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .payment-option input[type="radio"] {
        margin-right: var(--spacing-sm);
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .payment-badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
        top: 0.4rem;
        right: 0.4rem;
        max-width: calc(100% - 0.8rem);
    }

    html[dir="rtl"] .payment-badge {
        right: auto;
        left: 0.4rem;
    }

    .form-actions {
        gap: var(--spacing-sm);
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
    }

    .form-actions .btn-primary,
    .form-actions .btn-place-order {
        font-size: 1rem;
    }

    .form-actions .btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.9rem;
        min-height: 48px;
        /* Touch-friendly */
    }

    .checkout-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-xs);
    }

    .checkout-item-image {
        width: 50px;
        height: 50px;
    }

    .checkout-item-details h4 {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .checkout-item-details p {
        font-size: 0.75rem;
    }

    .checkout-item-total {
        font-size: 0.85rem;
    }

    .summary-content h3 {
        font-size: 1.1rem;
    }

    .summary-row {
        font-size: 0.9rem;
        padding: var(--spacing-sm) 0;
    }

    .summary-row.total {
        font-size: 1.1rem;
        padding: var(--spacing-md);
    }

    .summary-row.total span:last-child {
        font-size: 1.2rem;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .checkout-section {
        padding: var(--spacing-lg) 0;
        overflow-x: hidden;
    }

    .checkout-section .container {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .checkout-content {
        gap: var(--spacing-md);
        max-width: 100%;
        overflow-x: hidden;
    }

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

    .checkout-subtitle {
        font-size: 0.85rem;
    }

    .checkout-progress {
        padding: var(--spacing-xs);
        gap: 2px;
    }

    .progress-step {
        min-width: 60px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .progress-line {
        max-width: 20px;
        margin: 0 1px;
    }

    .checkout-form-wrapper,
    .checkout-summary {
        padding: 8px 10px;
        border-radius: 12px;
        overflow: hidden;
        max-width: calc(100vw - 24px);
        width: calc(100vw - 24px);
        box-sizing: border-box;
    }

    .checkout-section-block h2 {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
        min-height: 44px;
    }

    .payment-option {
        padding: var(--spacing-sm);
        min-height: 56px;
        gap: var(--spacing-xs);
    }

    .payment-icon-cod,
    .payment-icon-paypal {
        width: 32px;
        height: 32px;
        margin-right: var(--spacing-xs);
    }

    html[dir="rtl"] .payment-icon-cod,
    html[dir="rtl"] .payment-icon-paypal {
        margin-right: 0;
        margin-left: var(--spacing-xs);
    }

    .payment-label {
        gap: 0.15rem;
    }

    .payment-label strong {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .payment-label small {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .payment-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.3rem;
        top: 0.4rem;
        right: 0.4rem;
    }

    html[dir="rtl"] .payment-badge {
        right: auto;
        left: 0.4rem;
    }

    .cod-info-card {
        padding: var(--spacing-sm);
    }

    .cod-info-header {
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
    }

    .cod-info-header .cod-icon {
        width: 40px;
        height: 40px;
    }

    .cod-info-header h3 {
        font-size: 0.95rem;
    }

    .cod-info-content p {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }

    .cod-benefits {
        gap: var(--spacing-xs);
    }

    .cod-benefits li {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .form-actions .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
        min-height: 44px;
    }

    .checkout-item-image {
        width: 40px;
        height: 40px;
    }

    .checkout-item-details h4 {
        font-size: 0.8rem;
    }

    .checkout-item-details p {
        font-size: 0.7rem;
    }

    .summary-content h3 {
        font-size: 1rem;
    }

    .summary-row {
        font-size: 0.85rem;
    }

    .summary-row.total {
        font-size: 1rem;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ============================================ */

/* Tablet and Small Desktop (769px - 968px) */
@media (max-width: 968px) {
    html[dir="rtl"] .checkout-progress {
        padding: var(--spacing-md);
    }

    html[dir="rtl"] .checkout-help-banner {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    html[dir="rtl"] .section-help-text {
        font-size: 0.85rem;
    }

    html[dir="rtl"] .field-help {
        font-size: 0.7rem;
    }

    html[dir="rtl"] .security-badge {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    html[dir="rtl"] .payment-instructions {
        padding: var(--spacing-lg);
        margin-right: var(--spacing-sm);
    }

    html[dir="rtl"] .instruction-steps {
        padding-right: var(--spacing-lg);
        padding-left: 0;
        margin-right: 0;
    }

    html[dir="rtl"] .paypal-button-container {
        padding: var(--spacing-lg);
    }

    .navbar {
        padding: var(--spacing-md) 0;
    }

    .nav-content {
        gap: var(--spacing-sm);
        flex-wrap: nowrap;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #ffffff;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        width: 100%;
        max-width: 100vw;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-4xl) var(--spacing-lg) var(--spacing-3xl);
        gap: var(--spacing-xs);
        border-bottom: 4px solid;
        border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color)) 1;
        border-image-slice: 1;
        z-index: 10001;
        display: none;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
        opacity: 1;
        isolation: isolate;
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image:
            repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(0, 0, 0, 0.015) 40px, rgba(0, 0, 0, 0.015) 41px),
            repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(0, 0, 0, 0.01) 40px, rgba(0, 0, 0, 0.01) 41px);
        pointer-events: none;
        opacity: 0.6;
    }

    .nav-menu.active {
        left: 0;
        display: flex;
        animation: slideInMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideInMenu {
        from {
            left: -100%;
            opacity: 0;
        }

        to {
            left: 0;
            opacity: 1;
        }
    }

    .nav-menu.active {
        opacity: 1 !important;
    }

    /* Mobile menu backdrop removed - menu has solid white background */

    .nav-menu li {
        width: 100%;
        margin: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li a {
        opacity: 1;
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu a {
        width: 100%;
        padding: var(--spacing-lg) var(--spacing-xl);
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        margin: 0 auto;
        max-width: 90%;
        display: block;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: #ffffff;
        border: 2px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        color: var(--text-dark);
        opacity: 1;
    }

    .nav-menu a::before {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.08));
        border-radius: 12px;
    }

    .nav-menu a:hover,
    .nav-menu a:focus {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.1));
        border-color: rgba(0, 0, 0, 0.3);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        color: var(--primary-color);
        opacity: 1;
    }

    .nav-menu a::after {
        bottom: 10px;
        height: 3px;
        width: 0;
        background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu a:hover::after,
    .nav-menu a:focus::after {
        width: 60%;
    }

    .nav-menu a.active {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.12));
        border-color: var(--primary-color);
        color: var(--primary-color);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        opacity: 1;
    }

    .nav-menu a.active::after {
        width: 60%;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        max-width: 150px;
    }

    .nav-actions {
        gap: var(--spacing-xs);
        flex-shrink: 0;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
    }


    .language-switcher {
        gap: var(--spacing-xs);
        padding: 4px;
    }

    .lang-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 0.8rem;
        padding: var(--spacing-xs);
    }

    .hero {
        min-height: 550px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        gap: var(--spacing-sm);
    }

    .section-header h2 {
        font-size: 2.4rem;
    }

    .section-header p {
        font-size: 1.05rem;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--element-gap-md);
    }

    .value-card {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }



    .value-card h3 {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--element-gap-lg);
    }

    .about-image {
        order: -1;
    }

    .about-text h2 {
        font-size: 2.4rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .image-placeholder {
        height: 400px;
    }

    .products-preview {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--element-gap-md);
    }

    .product-card {
        margin-bottom: var(--spacing-md);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--element-gap-lg);
    }

    .contact-form {
        padding: var(--spacing-2xl);
    }

    .contact-info {
        gap: var(--spacing-lg);
    }

    .products-hero h1 {
        font-size: 2.8rem;
    }

    .products-hero p {
        font-size: 1.15rem;
    }

    .products-filters {
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-sm);
    }

    .filter-btn {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
        min-height: 34px;
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--element-gap-md);
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }

    .product-detail-info h1 {
        font-size: 2.2rem;
    }

    .product-detail-price {
        font-size: 2rem;
    }

    .cart-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .cart-summary {
        position: static;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-2xl);
    }
}

/* Tablet (481px - 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: var(--spacing-sm) 0;
    }

    .nav-content {
        gap: var(--spacing-xs);
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .logo-img {
        max-width: 130px;
    }

    .nav-menu {
        top: 60px;
    }

    .cart-icon {
        font-size: 1.4rem;
        width: 40px;
        height: 40px;
    }

    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        top: -4px;
        right: -4px;
    }

    .hero {
        min-height: 500px;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-header {
        margin-bottom: var(--spacing-4xl);
        padding: 0 var(--spacing-sm);
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .section-header p {
        font-size: 1rem;
    }

    .values {
        padding: var(--section-padding-y-mobile) 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--element-gap-md);
    }

    .value-card {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }



    .value-card h3 {
        font-size: 1.4rem;
    }

    .value-card p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .about {
        padding: var(--section-padding-y-mobile) 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--element-gap-lg);
    }

    .about-text h2 {
        font-size: 2rem;
        margin-bottom: var(--spacing-lg);
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .image-placeholder {
        height: 350px;
    }

    .featured {
        padding: var(--section-padding-y-mobile) 0;
    }

    .products-preview {
        grid-template-columns: 1fr;
        gap: var(--element-gap-md);
        margin-bottom: var(--spacing-2xl);
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        min-height: 280px;
    }

    .product-info {
        padding: var(--spacing-md);
    }

    .product-info h3 {
        font-size: 1.2rem;
    }

    .contact {
        padding: var(--section-padding-y-mobile) 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--element-gap-lg);
    }

    .contact-form {
        padding: var(--spacing-2xl);
    }

    .contact-item {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .contact-icon {
        font-size: 1.6rem;
        min-width: 40px;
        min-height: 40px;
    }

    .contact-item h4 {
        font-size: 1.1rem;
    }

    .contact-item p {
        font-size: 0.95rem;
    }

    .products-hero {
        padding: 2rem 0 2.5rem;
    }

    .products-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .products-hero p {
        font-size: 1.1rem;
    }

    .products-section {
        padding: var(--section-padding-y-mobile) 0;
    }

    .products-filters {
        margin-bottom: var(--spacing-3xl);
        gap: var(--spacing-xs);
        padding: 0 var(--spacing-sm);
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        min-width: auto;
        min-height: 32px;
        border-radius: 6px;
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
        flex: 0 1 auto;
        word-break: break-word;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--element-gap-md);
    }

    .product-item {
        max-width: 100%;
        width: 100%;
    }

    .product-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .product-details {
        padding: var(--spacing-md);
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .product-details h3 {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-sm);
        margin-top: auto;
        padding-top: var(--spacing-sm);
        flex-wrap: nowrap;
        min-width: 0;
    }

    .product-price {
        font-size: 1.3rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 0;
    }

    .product-footer .btn {
        flex-shrink: 1;
        min-width: 0;
        white-space: nowrap;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .btn-cart {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .products-cta {
        padding: var(--spacing-4xl) 0;
    }

    .products-cta h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .products-cta p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .product-detail-section {
        padding: var(--spacing-2xl) 0;
        min-height: auto;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        padding: var(--spacing-xl) var(--container-padding-x-mobile);
    }

    .product-detail-image {
        width: 100%;
    }

    .product-detail-image img {
        height: 350px;
        border-radius: 15px;
    }

    .product-placeholder-large {
        height: 350px;
        border-radius: 15px;
    }

    .product-detail-info {
        gap: var(--spacing-md);
    }

    .product-detail-info h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .product-detail-price {
        font-size: 1.8rem;
    }

    .product-detail-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .product-detail-features {
        margin-top: var(--spacing-sm);
    }

    .product-detail-features h3 {
        font-size: 0.8rem;
        margin-bottom: var(--spacing-xs);
    }

    .product-variation-selector {
        margin: var(--spacing-sm) 0;
    }

    .variation-selector-label {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .variation-options {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .variation-option {
        min-width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .product-size-selector {
        margin: var(--spacing-sm) 0;
    }

    .size-selector-label {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .size-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
    }

    .size-option {
        padding: 0.4rem 0.25rem;
    }

    .size-code {
        font-size: 0.75rem;
    }

    .size-cm {
        font-size: 0.6rem;
    }

    .product-size-guide {
        margin: var(--spacing-xs) 0;
    }

    .size-guide-toggle {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.75rem;
    }

    .size-guide-content {
        padding: var(--spacing-sm);
    }

    .size-guide-header,
    .size-guide-row {
        gap: var(--spacing-sm);
        font-size: 0.85rem;
    }

    .size-guide-note {
        font-size: 0.75rem;
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
    }

    .product-detail-features ul {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .product-detail-features li {
        font-size: 0.9rem;
        padding: var(--spacing-sm) var(--spacing-md);
        padding-left: calc(var(--spacing-lg) + 24px);
    }

    .product-detail-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .product-detail-actions .btn {
        width: 100%;
        min-width: 100%;
    }

    .cart-section {
        padding: var(--spacing-2xl) 0;
        min-height: auto;
    }

    .page-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }

    .cart-empty {
        padding: var(--spacing-3xl) var(--spacing-lg);
    }

    .empty-cart-icon {
        font-size: 3rem;
    }

    .cart-empty h2 {
        font-size: 1.3rem;
    }

    .cart-empty p {
        font-size: 0.95rem;
    }

    .cart-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .cart-items {
        gap: var(--spacing-sm);
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-details h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .cart-item-price {
        font-size: 0.85rem;
    }

    .cart-item-quantity {
        grid-column: 2;
        justify-self: start;
        margin-top: var(--spacing-xs);
    }

    .cart-item-total {
        grid-column: 2;
        text-align: left;
        margin-top: var(--spacing-xs);
        font-size: 1rem;
    }

    .cart-item-remove {
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }

    .cart-summary {
        position: static;
        padding: var(--spacing-xl);
    }

    .summary-content h3 {
        font-size: 1.1rem;
    }

    .summary-row {
        font-size: 0.9rem;
    }

    .summary-row.total {
        font-size: 1.2rem;
    }

    .btn-checkout {
        font-size: 0.95rem;
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .footer {
        padding: var(--spacing-4xl) 0 var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        margin-bottom: var(--spacing-2xl);
    }

    .footer-section:first-child {
        max-width: 100%;
    }

    .footer-logo-img {
        max-width: 200px;
        margin-bottom: var(--spacing-lg);
    }

    .footer-section p {
        max-width: 100%;
        font-size: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .social-links {
        gap: var(--spacing-md);
        justify-content: center;
    }

    .social-links a {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .social-links a svg {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        padding-top: var(--spacing-2xl);
        margin-top: var(--spacing-2xl);
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .footer-bottom::before {
        width: 120px;
    }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--container-padding-x-mobile);
    }

    .navbar {
        padding: var(--spacing-xs) 0;
    }

    .nav-content {
        gap: var(--spacing-xs);
        padding: 0;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 180px);
        margin-right: var(--spacing-xs);
    }

    .logo-img {
        max-width: 90px;
    }

    .nav-actions {
        gap: var(--spacing-xs);
        flex-shrink: 0;
        min-width: 100px;
    }

    .cart-icon {
        font-size: 1.2rem;
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    .language-switcher {
        padding: 2px;
        gap: 1px;
    }

    .lang-btn {
        min-width: 30px;
        min-height: 30px;
        font-size: 0.7rem;
        padding: 1px;
    }

    .nav-menu {
        top: 60px;
        padding: var(--spacing-3xl) var(--spacing-md) var(--spacing-2xl);
    }

    .nav-menu a {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        max-width: 95%;
    }

    .cart-icon {
        font-size: 1.3rem;
        width: 38px;
        height: 38px;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }

    .language-switcher {
        padding: 3px;
        gap: 2px;
    }

    .lang-btn {
        min-width: 32px;
        min-height: 32px;
        font-size: 0.75rem;
        padding: 2px;
    }

    .hero {
        min-height: 450px;
        /* margin-top set dynamically by JavaScript */
    }

    .hero-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
        line-height: 1.2;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-lg);
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: var(--spacing-sm) var(--spacing-xl);
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: var(--spacing-3xl);
        padding: 0 var(--spacing-sm);
    }

    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-xs);
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .values {
        padding: var(--section-padding-y-mobile) 0;
    }

    .values-grid {
        gap: var(--spacing-lg);
    }

    .value-card {
        padding: var(--spacing-xl) var(--spacing-lg);
    }



    .value-card h3 {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-sm);
    }

    .value-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about {
        padding: var(--section-padding-y-mobile) 0;
    }

    .about-text h2 {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: var(--spacing-md);
    }

    .image-placeholder {
        height: 300px;
        border-radius: 15px;
    }

    .about-image::before {
        width: 80px;
        height: 80px;
        top: -15px;
        right: -15px;
    }

    .featured {
        padding: var(--section-padding-y-mobile) 0;
    }

    .products-preview {
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }

    .product-card {
        border-radius: 15px;
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        min-height: 250px;
    }

    .product-info {
        padding: var(--spacing-md);
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .text-center {
        margin-top: var(--spacing-lg);
    }

    .contact {
        padding: var(--section-padding-y-mobile) 0;
    }

    .contact-content {
        gap: var(--spacing-lg);
    }

    .contact-item {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-icon svg {
        width: 22px;
        height: 22px;
    }

    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    /* Keep row layout on mobile for better Arabic support */
    html[dir="rtl"] .contact-item {
        flex-direction: row-reverse;
        text-align: right;
    }

    .contact-form {
        padding: var(--spacing-xl);
        border-radius: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    .products-hero {
        padding: 2rem 0 2rem;
    }

    .products-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.8rem;
    }

    .products-hero p {
        font-size: 1rem;
    }

    .products-filters {
        gap: var(--spacing-xs);
        padding: 0 var(--spacing-xs);
        margin-bottom: var(--spacing-2xl);
    }

    .filter-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        min-width: 90px;
        flex: 1 1 auto;
        min-height: 30px;
        border-radius: 6px;
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
        line-height: 1.3;
        text-align: center;
        word-break: break-word;
    }

    .products-grid {
        gap: var(--spacing-md);
    }

    .product-item {
        border-radius: 15px;
    }

    .product-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .product-details {
        padding: var(--spacing-md);
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .product-details h3 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }

    .product-description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-sm);
    }

    .product-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-sm);
        margin-top: auto;
        padding-top: var(--spacing-sm);
        flex-wrap: nowrap;
        min-width: 0;
    }

    .product-price {
        font-size: 1.2rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 0;
    }

    .product-footer .btn {
        flex-shrink: 1;
        min-width: 0;
        white-space: nowrap;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }

    .btn-cart {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }

    .products-cta {
        padding: var(--spacing-3xl) 0;
    }

    .products-cta h2 {
        font-size: 1.75rem;
        margin-bottom: 0.8rem;
    }

    .products-cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .products-cta .btn {
        padding: var(--spacing-sm) var(--spacing-xl);
        font-size: 0.95rem;
    }

    .product-detail-section {
        padding: var(--spacing-xl) 0;
    }

    .product-detail {
        gap: var(--spacing-xl);
        padding: var(--spacing-lg) var(--container-padding-x-mobile);
    }

    .product-detail-image img {
        height: 300px;
        border-radius: 12px;
    }

    .product-placeholder-large {
        height: 300px;
        border-radius: 12px;
    }

    .product-detail-info h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .product-detail-price {
        font-size: 1.6rem;
    }

    .product-detail-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .product-detail-features h3 {
        font-size: 0.75rem;
    }

    .product-detail-features li {
        font-size: 0.85rem;
        padding: var(--spacing-sm) var(--spacing-md);
        padding-left: calc(var(--spacing-lg) + 24px);
    }

    .product-detail-actions .btn {
        font-size: 0.9rem;
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .cart-section {
        padding: var(--spacing-xl) 0;
        min-height: auto;
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }

    .cart-content-wrapper {
        padding: 0;
    }

    .cart-items {
        gap: var(--spacing-xs);
    }

    .cart-summary {
        margin-top: var(--spacing-lg);
    }

    .cart-empty {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .empty-cart-icon {
        font-size: 2.5rem;
    }

    .cart-empty h2 {
        font-size: 1.2rem;
    }

    .cart-empty p {
        font-size: 0.9rem;
    }

    .cart-empty .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }

    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
        border-radius: 10px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-details h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .cart-item-price {
        font-size: 0.8rem;
    }

    .cart-item-quantity {
        margin-top: var(--spacing-xs);
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .qty-value {
        font-size: 0.85rem;
    }

    .cart-item-total {
        font-size: 0.95rem;
    }

    .cart-item-remove {
        width: 26px;
        height: 26px;
        font-size: 1.2rem;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .cart-summary {
        padding: var(--spacing-lg);
        border-radius: 10px;
    }

    .summary-content h3 {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .summary-row {
        font-size: 0.85rem;
        padding: var(--spacing-xs) 0;
    }

    .summary-row.total {
        font-size: 1.1rem;
        margin-top: var(--spacing-xs);
        padding-top: var(--spacing-sm);
    }

    .btn-checkout {
        font-size: 0.9rem;
        padding: var(--spacing-sm) var(--spacing-md);
        margin-top: var(--spacing-md);
    }

    .confirmation-section {
        padding: var(--spacing-2xl) 0 var(--spacing-xl);
        margin-top: 60px;
    }

    .confirmation-content {
        padding: 0 var(--container-padding-x-mobile);
    }

    .confirmation-header {
        margin-bottom: var(--spacing-2xl);
    }

    .confirmation-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .confirmation-content h1 {
        font-size: 2rem;
    }

    .confirmation-thankyou {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }

    .confirmation-order-info {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-2xl);
    }

    .confirmation-row {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
        padding: var(--spacing-sm) 0;
    }

    .confirmation-row strong {
        font-size: 1.2rem;
    }

    .confirmation-details {
        gap: var(--spacing-md);
        margin: var(--spacing-2xl) 0;
    }

    .confirmation-details>div {
        padding: var(--spacing-md);
    }

    .confirmation-delivery-info h3,
    .confirmation-next-steps h3 {
        font-size: 1.15rem;
    }

    .delivery-info-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .delivery-icon {
        font-size: 1.5rem;
    }

    .delivery-info-content strong {
        font-size: 0.9rem;
    }

    .delivery-info-content span {
        font-size: 0.8rem;
    }

    .delivery-total {
        font-size: 0.9rem;
        padding: var(--spacing-sm);
    }

    .next-step-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-content strong {
        font-size: 0.9rem;
    }

    .step-content p {
        font-size: 0.8rem;
    }

    .confirmation-message {
        font-size: 0.9rem;
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
    }

    .confirmation-contact {
        font-size: 0.85rem;
        margin: var(--spacing-2xl) 0 var(--spacing-xl);
    }

    .confirmation-actions {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .confirmation-actions .btn {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.95rem;
        min-width: auto;
    }

    .footer {
        padding: var(--spacing-3xl) 0 var(--spacing-md);
    }

    .footer-content {
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
    }

    .footer-logo-img {
        max-width: 160px;
        margin-bottom: var(--spacing-md);
    }

    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }

    .footer-section ul {
        gap: var(--spacing-xs);
    }

    .footer-section ul li a {
        font-size: 0.9rem;
        padding: var(--spacing-xs) 0;
    }

    .social-links {
        gap: var(--spacing-sm);
    }

    .social-links a {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .social-links a svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        padding-top: var(--spacing-xl);
        margin-top: var(--spacing-xl);
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .footer-bottom::before {
        width: 100px;
    }
}

/* RTL Support */
html[dir="rtl"] .nav-menu {
    direction: rtl;
}

/* Nav menu pseudo-elements work in RTL (inset pattern and centered) */

html[dir="rtl"] .nav-content {
    direction: rtl;
}

html[dir="rtl"] .language-switcher {
    direction: ltr;
}

html[dir="rtl"] .about-content {
    direction: rtl;
}

html[dir="rtl"] .contact-content {
    direction: rtl;
}

html[dir="rtl"] .footer-content {
    direction: rtl;
}

/* RTL Support for Cart Page */
html[dir="rtl"] .cart-section {
    direction: rtl;
}

html[dir="rtl"] .page-title {
    text-align: right;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .page-title-icon {
    order: 2;
}

html[dir="rtl"] .cart-content-wrapper {
    direction: rtl;
}

/* Cart item RTL handled by direction: rtl above at line 2626 */

html[dir="rtl"] .cart-item-details {
    text-align: right;
    padding-right: var(--spacing-md);
    padding-left: 0;
}

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

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

html[dir="rtl"] .cart-item-total {
    text-align: right;
    direction: ltr;
    unicode-bidi: embed;
}

html[dir="rtl"] .cart-item-total span {
    direction: ltr;
    unicode-bidi: embed;
}

/* Cart item remove button RTL handled by grid direction above */

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

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

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

html[dir="rtl"] .summary-row:hover {
    padding-right: var(--spacing-sm);
    padding-left: var(--spacing-sm);
}

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

html[dir="rtl"] .summary-row span:last-child {
    text-align: left;
    direction: ltr;
    unicode-bidi: embed;
}

@media (max-width: 768px) {
    html[dir="rtl"] .cart-item-remove {
        left: var(--spacing-md);
        right: auto;
        position: absolute;
    }

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

@media (max-width: 480px) {
    html[dir="rtl"] .cart-item-remove {
        left: var(--spacing-sm);
        right: auto;
        position: absolute;
    }
}

/* RTL Support for Checkout Page */
html[dir="rtl"] .checkout-section {
    direction: rtl;
}

html[dir="rtl"] .checkout-content {
    direction: rtl;
}

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

html[dir="rtl"] .checkout-form-wrapper::before {
    background: linear-gradient(270deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

html[dir="rtl"] .checkout-section-block {
    direction: rtl;
}

html[dir="rtl"] .checkout-section-block h2 {
    text-align: right;
    border-image-source: linear-gradient(270deg, var(--primary-color), var(--accent-color));
    padding-right: 0;
    padding-left: 0;
}

html[dir="rtl"] .checkout-form {
    direction: rtl;
}

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

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

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select,
html[dir="rtl"] .form-group textarea {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .form-group input::placeholder,
html[dir="rtl"] .form-group textarea::placeholder {
    text-align: right;
}

/* Phone number input should always be LTR, even in RTL layout */
#phone,
input[type="tel"],
input[name="phone"] {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
}

html[dir="rtl"] #phone,
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[name="phone"] {
    direction: ltr !important;
    text-align: right !important;
    /* Right-align visually in RTL, but text flows LTR */
    unicode-bidi: embed;
}

html[dir="rtl"] #phone::placeholder,
html[dir="rtl"] input[type="tel"]::placeholder,
html[dir="rtl"] input[name="phone"]::placeholder {
    direction: ltr !important;
    text-align: right !important;
    unicode-bidi: embed;
}

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

html[dir="rtl"] .form-row {
    direction: rtl;
}

/* Ensure form rows maintain proper spacing in RTL */
/* RTL form row spacing is handled by gap property, no additional margin needed */

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

html[dir="rtl"] .payment-option input[type="radio"] {
    margin-right: 0;
    margin-left: var(--spacing-lg);
}

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

html[dir="rtl"] .form-actions {
    direction: rtl;
    border-image-source: linear-gradient(270deg, transparent, var(--border-color), transparent);
}

html[dir="rtl"] .form-actions .btn-primary::before,
html[dir="rtl"] .form-actions .btn-place-order::before {
    right: -100%;
    left: auto;
}

html[dir="rtl"] .form-actions .btn-primary:hover::before,
html[dir="rtl"] .form-actions .btn-place-order:hover::before {
    right: 100%;
    left: auto;
}

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

html[dir="rtl"] .checkout-summary::before {
    background: linear-gradient(270deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

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

html[dir="rtl"] .checkout-items {
    direction: rtl;
}

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

html[dir="rtl"] .checkout-item-image {
    order: 1;
}

html[dir="rtl"] .checkout-item-details {
    order: 2;
    text-align: right;
}

html[dir="rtl"] .checkout-item-total {
    order: 3;
    text-align: left;
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
}

html[dir="rtl"] .checkout-item:hover {
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    html[dir="rtl"] .checkout-item:hover {
        transform: none;
    }

    html[dir="rtl"] .checkout-progress {
        padding: var(--spacing-md);
    }

    html[dir="rtl"] .checkout-help-banner {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    html[dir="rtl"] .section-help-text {
        font-size: 0.85rem;
    }

    html[dir="rtl"] .field-help {
        font-size: 0.7rem;
    }

    html[dir="rtl"] .security-badge {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    html[dir="rtl"] .payment-instructions {
        padding: var(--spacing-md);
        margin-right: 0;
    }

    html[dir="rtl"] .instruction-steps {
        padding-right: var(--spacing-md);
        padding-left: 0;
        margin-right: 0;
    }

    html[dir="rtl"] .paypal-button-container {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    html[dir="rtl"] .payment-option input[type="radio"] {
        margin-left: var(--spacing-sm);
    }

    html[dir="rtl"] .checkout-progress {
        padding: var(--spacing-sm);
    }

    html[dir="rtl"] .checkout-help-banner {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    html[dir="rtl"] .section-help-text {
        font-size: 0.85rem;
    }

    html[dir="rtl"] .field-help {
        font-size: 0.7rem;
    }

    html[dir="rtl"] .security-badge {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    html[dir="rtl"] .payment-instructions {
        padding: var(--spacing-md);
        margin-right: 0;
    }

    html[dir="rtl"] .instruction-steps {
        padding-right: var(--spacing-md);
        padding-left: 0;
        margin-right: 0;
    }

    html[dir="rtl"] .paypal-button-container {
        padding: var(--spacing-sm);
    }
}

/* RTL Support for Confirmation Page */
/* RTL Support for Confirmation Page */
html[dir="rtl"] .confirmation-section {
    direction: rtl;
}

html[dir="rtl"] .confirmation-content {
    direction: rtl;
}

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

html[dir="rtl"] .confirmation-content h1 {
    text-align: center;
}

html[dir="rtl"] .confirmation-thankyou {
    text-align: center;
}

html[dir="rtl"] .confirmation-order-info {
    direction: rtl;
}

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

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

html[dir="rtl"] .confirmation-details {
    direction: rtl;
}

html[dir="rtl"] .confirmation-details>div {
    border-left: none;
    border-right: 3px solid var(--accent-color);
}

html[dir="rtl"] .confirmation-delivery-info h3,
html[dir="rtl"] .confirmation-next-steps h3 {
    flex-direction: row-reverse;
}

html[dir="rtl"] .delivery-info-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .delivery-info-item:hover {
    transform: translateX(-4px);
}

html[dir="rtl"] .delivery-info-content {
    align-items: flex-end;
    text-align: right;
}

html[dir="rtl"] .next-step-item {
    flex-direction: row-reverse;
    text-align: right;
    border-left: none;
    border-right: 3px solid rgba(0, 0, 0, 0.3);
}

html[dir="rtl"] .next-step-item:hover {
    transform: translateX(-4px);
    border-right-color: var(--primary-color);
}

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

html[dir="rtl"] .confirmation-contact {
    text-align: center;
}

html[dir="rtl"] .confirmation-contact a {
    direction: ltr;
    unicode-bidi: embed;
}

html[dir="rtl"] .confirmation-actions {
    direction: rtl;
}

/* Additional Mobile Responsive Breakpoints */
@media (max-width: 360px) {
    .confirmation-section {
        padding: var(--spacing-xl) 0;
    }

    .confirmation-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .confirmation-content h1 {
        font-size: 1.75rem;
    }

    .confirmation-thankyou {
        font-size: 0.95rem;
    }

    .confirmation-order-info {
        padding: var(--spacing-md);
    }

    .confirmation-row strong {
        font-size: 1.1rem;
    }

    .confirmation-details>div {
        padding: var(--spacing-md);
    }

    .delivery-info-item,
    .next-step-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        gap: var(--spacing-xs);
    }

    .delivery-icon {
        font-size: 1.3rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .confirmation-actions .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    html[dir="rtl"] .confirmation-row {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }

    html[dir="rtl"] .confirmation-row strong {
        text-align: center;
    }

    html[dir="rtl"] .delivery-info-item:hover,
    html[dir="rtl"] .next-step-item:hover {
        transform: none;
    }
}

/* Tablet Specific (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .confirmation-section {
        padding: var(--spacing-4xl) 0 var(--spacing-3xl);
    }

    .confirmation-content {
        max-width: 700px;
    }

    .confirmation-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .confirmation-content h1 {
        font-size: 2.5rem;
    }

    .confirmation-order-info {
        max-width: 600px;
        padding: var(--spacing-xl);
    }

    .confirmation-details {
        gap: var(--spacing-lg);
    }

    /* Confirmation Tracking Section Tablet */
    .confirmation-tracking-section {
        padding: var(--spacing-xl);
        margin: var(--spacing-2xl) 0;
    }

    .confirmation-tracking-section h3 {
        font-size: 1.4rem;
    }

    .tracking-code-value {
        font-size: 1.2rem;
    }
}

/* Confirmation Tracking Section */
.confirmation-tracking-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    border-radius: 12px;
    padding: var(--spacing-2xl);
    margin: var(--spacing-3xl) 0;
    border: 2px solid var(--primary-color);
}

.confirmation-tracking-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.tracking-info-box {
    text-align: center;
}

.tracking-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.tracking-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.tracking-code-value {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    background: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    letter-spacing: 2px;
}

.btn-copy {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.tracking-help {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.btn-track {
    display: inline-block;
    margin-top: var(--spacing-md);
}

.tracking-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.tracking-help-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: var(--spacing-md);
    font-style: italic;
}

/* Tracking Page Styles */
.tracking-section {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    margin-top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), white);
    position: relative;
    overflow-x: hidden;
}

.tracking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 128, 74, 0.04) 100%);
    pointer-events: none;
}

.tracking-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.tracking-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.tracking-header .page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.tracking-subtitle {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

.tracking-input-section {
    max-width: 600px;
    margin: var(--spacing-xl) auto;
    padding: 0 var(--container-padding-x);
}

.tracking-input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.tracking-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: var(--touch-target-min);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tracking-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.tracking-help-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    line-height: 1.5;
}

.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.tracking-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-2xl) var(--container-padding-x);
    min-height: 200px;
}

.tracking-loading p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-top: var(--spacing-md);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.tracking-results {
    max-width: 900px;
    margin: var(--spacing-xl) auto 0;
    padding: 0 var(--container-padding-x);
}

.tracking-details,
.tracking-details-card {
    background: white;
    border-radius: 8px;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.tracking-header-card {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.tracking-code-display {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.tracking-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-code-value {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.tracking-status-card {
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
    border-left: 3px solid var(--border-color);
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.status-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.status-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.tracking-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9375rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}

.tracking-actions {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.tracking-timeline {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.tracking-timeline h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item.timeline-active {
    border-left: 3px solid var(--primary-color);
    padding-left: var(--spacing-sm);
    margin-left: calc(-1 * var(--spacing-sm));
}

.timeline-date {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 400;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-content strong {
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin: 0;
}

.tracking-error {
    text-align: center;
    padding: var(--spacing-xl) var(--container-padding-x);
    max-width: 600px;
    margin: var(--spacing-lg) auto;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tracking-error h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 600;
}

.tracking-error p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.error-help-text {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-light);
}

.error-contact {
    display: block;
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* RTL Support for Tracking */
html[dir="rtl"] .tracking-section {
    direction: rtl;
}

html[dir="rtl"] .tracking-input-wrapper {
    flex-direction: row-reverse;
}

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

html[dir="rtl"] .tracking-code-display {
    flex-direction: row-reverse;
}

html[dir="rtl"] .tracking-status-card {
    flex-direction: row-reverse;
}

html[dir="rtl"] .timeline-item {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    text-align: right;
}

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

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

html[dir="rtl"] .confirmation-tracking-section {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .tracking-code-display {
    justify-content: center;
}

html[dir="rtl"] .label-text {
    order: 1;
}

html[dir="rtl"] .label-required,
html[dir="rtl"] .label-optional {
    order: 2;
    margin-left: 0;
    margin-right: var(--spacing-xs);
}

/* Responsive Tracking - Large Screens (1440px+) */
@media (min-width: 1440px) {
    .tracking-content {
        max-width: 1000px;
    }

    .tracking-input-section {
        max-width: 700px;
    }

    .tracking-header .page-title {
        font-size: 2.25rem;
    }
}

/* Responsive Tracking - Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1025px) {
    .tracking-content {
        max-width: 900px;
    }
}

/* Responsive Tracking - Tablet Landscape (969px - 1024px) */
@media (max-width: 1024px) and (min-width: 969px) {
    .tracking-section {
        padding: var(--spacing-md) 0 var(--spacing-lg);
    }

    .tracking-header .page-title {
        font-size: 1.875rem;
    }

    .tracking-input-section {
        max-width: 550px;
    }
}

/* Responsive Tracking - Tablet Portrait (769px - 968px) */
@media (max-width: 968px) and (min-width: 769px) {
    .tracking-section {
        padding: var(--spacing-md) 0 var(--spacing-lg);
    }

    .tracking-header {
        margin-bottom: var(--spacing-lg);
    }

    .tracking-header .page-title {
        font-size: 1.75rem;
    }

    .tracking-input-section {
        max-width: 500px;
        margin: var(--spacing-lg) auto;
    }

    .tracking-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .timeline-item {
        grid-template-columns: 140px 1fr;
        gap: var(--spacing-sm);
    }
}

/* Responsive Tracking - Tablet (481px - 768px) */
@media (max-width: 768px) {
    .tracking-section {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
        margin-top: 60px;
    }

    .tracking-input-section {
        padding: 0 var(--container-padding-x-mobile);
        margin: var(--spacing-lg) auto;
    }

    .tracking-input-wrapper {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .tracking-input {
        width: 100%;
        font-size: 0.9375rem;
    }

    .tracking-subtitle {
        font-size: 0.875rem;
        margin-bottom: 0;
    }

    .tracking-help-text {
        font-size: 0.8125rem;
        padding: 0;
    }

    .tracking-header {
        margin-bottom: var(--spacing-md);
    }

    .tracking-header .page-title {
        font-size: 1.75rem;
    }

    .tracking-code-display {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .tracking-code-value {
        font-size: 1.25rem;
    }

    .tracking-status-card {
        padding: var(--spacing-sm);
    }

    .status-text {
        font-size: 1.125rem;
    }

    .tracking-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .info-item {
        padding: var(--spacing-xs);
    }

    .tracking-details,
    .tracking-details-card {
        padding: var(--spacing-md);
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        padding: var(--spacing-xs) 0;
    }

    .timeline-date {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .tracking-actions {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-sm);
    }

    .tracking-timeline {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-sm);
    }

    .tracking-timeline h3 {
        margin-bottom: var(--spacing-sm);
        font-size: 0.9375rem;
    }

    /* Confirmation Tracking Section Responsive */
    .confirmation-tracking-section {
        padding: var(--spacing-xl);
        margin: var(--spacing-2xl) 0;
    }

    .confirmation-tracking-section h3 {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-md);
    }

    .tracking-code-display {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }

    .tracking-code-value {
        font-size: 1.1rem;
        padding: var(--spacing-sm) var(--spacing-md);
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .btn-copy {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 1rem;
    }

    .tracking-help {
        font-size: 0.9rem;
    }

    .btn-track {
        width: 100%;
        margin-top: var(--spacing-md);
    }
}

/* Responsive Tracking - Mobile (321px - 480px) */
@media (max-width: 480px) {
    .tracking-section {
        padding: var(--spacing-md) 0 var(--spacing-md);
        margin-top: 0;
    }

    .tracking-section::before {
        height: 80px;
    }

    .tracking-content {
        padding: 0 var(--container-padding-x-mobile);
    }

    .tracking-header {
        margin-bottom: var(--spacing-md);
    }

    .tracking-header .page-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xs);
    }

    .tracking-subtitle {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    .tracking-input-section {
        margin: var(--spacing-md) auto;
        padding: 0;
    }

    .tracking-input-wrapper {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .tracking-input {
        font-size: 0.875rem;
        padding: var(--spacing-sm) var(--spacing-md);
        width: 100%;
    }

    .tracking-input-wrapper .btn {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .tracking-help-text {
        font-size: 0.75rem;
        padding: 0 var(--spacing-xs);
    }

    .tracking-loading {
        padding: var(--spacing-xl) var(--container-padding-x-mobile);
        min-height: 150px;
    }

    .tracking-loading p {
        font-size: 0.875rem;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }

    .tracking-results {
        padding: 0;
    }

    .tracking-details,
    .tracking-details-card {
        padding: var(--spacing-md);
        border-radius: 6px;
    }

    .tracking-header-card {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-sm);
    }

    .tracking-code-value {
        font-size: 1.125rem;
        word-break: break-all;
    }

    .tracking-status-card {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .status-text {
        font-size: 1rem;
    }

    .status-date {
        font-size: 0.8125rem;
    }

    .tracking-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-md);
    }

    .info-item {
        padding: var(--spacing-sm);
    }

    .info-label {
        font-size: 0.6875rem;
    }

    .info-value {
        font-size: 0.875rem;
        word-break: break-word;
    }

    .tracking-actions {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-sm);
    }

    .tracking-actions .btn {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .tracking-timeline {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-sm);
    }

    .tracking-timeline h3 {
        margin-bottom: var(--spacing-sm);
        font-size: 0.9375rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm) 0;
    }

    .timeline-item.timeline-active {
        padding-left: var(--spacing-sm);
        margin-left: calc(-1 * var(--spacing-sm));
    }

    .timeline-date {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .timeline-content strong {
        font-size: 0.8125rem;
    }

    .timeline-content p {
        font-size: 0.75rem;
    }

    .tracking-error {
        padding: var(--spacing-lg) var(--container-padding-x-mobile);
        margin: var(--spacing-md) auto;
    }

    .tracking-error h3 {
        font-size: 1.125rem;
    }

    .tracking-error p {
        font-size: 0.875rem;
    }
}

/* Responsive Tracking - Very Small Mobile (≤320px) */
@media (max-width: 320px) {
    .tracking-section {
        padding: var(--spacing-sm) 0 var(--spacing-sm);
        margin-top: 0;
    }

    .tracking-section::before {
        height: 60px;
    }

    .tracking-header .page-title {
        font-size: 1.375rem;
    }

    .tracking-subtitle {
        font-size: 0.75rem;
    }

    .tracking-input {
        font-size: 0.8125rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .tracking-help-text {
        font-size: 0.6875rem;
    }

    .tracking-details,
    .tracking-details-card {
        padding: var(--spacing-sm);
    }

    .tracking-code-value {
        font-size: 1rem;
    }

    .tracking-status-card {
        padding: var(--spacing-xs);
    }

    .status-text {
        font-size: 0.9375rem;
    }

    .info-item {
        padding: var(--spacing-xs);
    }

    .info-label {
        font-size: 0.625rem;
    }

    .info-value {
        font-size: 0.8125rem;
    }

    .timeline-date {
        font-size: 0.6875rem;
    }

    .timeline-content strong {
        font-size: 0.75rem;
    }

    .timeline-content p {
        font-size: 0.6875rem;
    }
}

/* Responsive Tracking - Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .tracking-input {
        min-height: 48px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .tracking-input-wrapper .btn {
        min-height: 48px;
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .info-item {
        min-height: 48px;
    }

    .timeline-item {
        min-height: 48px;
    }
}

/* Responsive Tracking - Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .tracking-section {
        padding: var(--spacing-md) 0;
    }

    .tracking-header {
        margin-bottom: var(--spacing-sm);
    }

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

    .tracking-input-section {
        margin: var(--spacing-sm) auto;
    }

    .tracking-loading {
        min-height: 120px;
        padding: var(--spacing-lg) var(--container-padding-x);
    }
}

/* Confirmation Tracking Section Mobile */
@media (max-width: 768px) {
    .confirmation-tracking-section {
        padding: var(--spacing-lg);
        margin: var(--spacing-xl) 0;
        border-width: 1px;
    }

    .confirmation-tracking-section h3 {
        font-size: 1.2rem;
    }

    .tracking-code-value {
        font-size: 1rem;
        padding: var(--spacing-xs) var(--spacing-sm);
        letter-spacing: 1px;
    }

    .tracking-label {
        font-size: 1rem;
    }

    .btn-copy {
        padding: var(--spacing-xs);
        font-size: 0.9rem;
        min-width: var(--touch-target-min);
        min-height: var(--touch-target-min);
    }

    .tracking-help {
        font-size: 0.85rem;
    }
}

/* RTL Support for Tracking - Enhanced */
html[dir="rtl"] .tracking-section {
    direction: rtl;
}

html[dir="rtl"] .tracking-input-wrapper {
    flex-direction: row-reverse;
}

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

html[dir="rtl"] .tracking-code-display {
    flex-direction: row-reverse;
}

html[dir="rtl"] .tracking-status-card {
    flex-direction: row-reverse;
}

html[dir="rtl"] .timeline-item {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    text-align: right;
}

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

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

html[dir="rtl"] .confirmation-tracking-section {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .tracking-code-display {
    justify-content: center;
}

html[dir="rtl"] .label-text {
    order: 1;
}

html[dir="rtl"] .label-required,
html[dir="rtl"] .label-optional {
    order: 2;
    margin-left: 0;
    margin-right: var(--spacing-xs);
}

@media (max-width: 768px) {
    html[dir="rtl"] .tracking-input-wrapper {
        flex-direction: column;
    }

    html[dir="rtl"] .tracking-status-card {
        flex-direction: column;
    }

    html[dir="rtl"] .tracking-code-display {
        align-items: center;
    }
}

/* RTL Support for Checkout Progress and Help Elements */
html[dir="rtl"] .checkout-progress {
    direction: rtl;
}

html[dir="rtl"] .progress-step {
    direction: rtl;
}

html[dir="rtl"] .step-label {
    text-align: center;
}

html[dir="rtl"] .progress-line {
    direction: rtl;
}

html[dir="rtl"] .progress-line::after {
    right: 0;
    left: auto;
    transform-origin: right center;
}

html[dir="rtl"] .progress-step.active~.progress-line::after {
    transform-origin: right center;
}

html[dir="rtl"] .checkout-help-banner {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .checkout-help-banner p {
    direction: rtl;
    line-height: 1.7;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

html[dir="rtl"] .section-help-text {
    text-align: right;
    direction: rtl;
    line-height: 1.8;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

html[dir="rtl"] .field-help {
    text-align: right;
    direction: rtl;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    max-width: 100%;
}

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

html[dir="rtl"] .security-badge span:last-child {
    text-align: right;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

html[dir="rtl"] .payment-instructions {
    direction: rtl;
    text-align: right;
    margin-right: 0;
}

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

html[dir="rtl"] .instruction-steps {
    padding-right: var(--spacing-lg);
    padding-left: 0;
    margin-right: 0;
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .instruction-steps li {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .instruction-result {
    text-align: right;
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

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

html[dir="rtl"] .instruction-note {
    text-align: center;
    direction: rtl;
    line-height: 1.7;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    html[dir="rtl"] .step-label {
        display: none;
    }
}

/* Prices inherit default sizes - no Arabic overrides */

/* Hero inherits default sizes */

/* All elements inherit LTR sizes - only fonts change for Arabic */

/* Cultural Enhancement: Moroccan Pattern Accent */
html[dir="rtl"] .hero::before,
html[dir="rtl"] .mosaic-pattern::before {
    opacity: 0.08;
    /* Slightly more visible for Arabic audiences */
}

/* Keep default sizes for page titles and confirmation */

/* Arabic inherits all responsive sizes from LTR */

/* ============================================
   BREADCRUMBS NAVIGATION - Premium & Refined
   ============================================ */

.breadcrumbs {
    padding: 0.875rem 0;
    margin-top: 94px;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.5), rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.breadcrumbs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15) 50%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.breadcrumbs:hover::after {
    opacity: 1;
}

.breadcrumbs-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    overflow: hidden;
    position: relative;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.breadcrumbs a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.06));
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.breadcrumbs a:hover::before {
    opacity: 1;
}

.breadcrumbs a span {
    position: relative;
    z-index: 1;
}

.breadcrumbs-separator {
    color: var(--text-light);
    margin: 0 0.125rem;
    opacity: 0.3;
    font-size: 0.625rem;
    flex-shrink: 0;
    font-weight: 700;
}

.breadcrumbs-current {
    color: var(--text-dark);
    font-weight: 600;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.06));
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    letter-spacing: 0.2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    position: relative;
}

.breadcrumbs-current::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 3px 0 0 3px;
}

/* RTL Support for Breadcrumbs */
html[dir="rtl"] .breadcrumbs-container {
    direction: rtl;
}

html[dir="rtl"] .breadcrumbs-separator {
    transform: scaleX(-1);
}

html[dir="rtl"] .breadcrumbs-current {
    border-left: none;
    border-right: 3px solid var(--primary-color);
}

html[dir="rtl"] .breadcrumbs-current::before {
    left: auto;
    right: 0;
    border-radius: 0 3px 3px 0;
}

/* Responsive Breadcrumbs - Perfect Alignment */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .breadcrumbs-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .breadcrumbs-current {
        max-width: 500px;
    }
}

/* Desktop/Tablet (969px - 1199px) */
@media (max-width: 1199px) and (min-width: 969px) {
    .breadcrumbs {
        margin-top: 90px;
    }

    .breadcrumbs-container {
        font-size: 0.8rem;
    }

    .breadcrumbs-current {
        max-width: 380px;
    }
}

/* Tablet (768px - 968px) - Navbar padding changes here */
@media (max-width: 968px) and (min-width: 769px) {
    .breadcrumbs {
        padding: 0.8rem 0;
        margin-top: 78px;
    }

    .breadcrumbs-container {
        font-size: 0.78rem;
        gap: 0.4rem;
    }

    .breadcrumbs a {
        padding: 0.35rem 0.7rem;
    }

    .breadcrumbs-current {
        max-width: 300px;
        padding: 0.35rem 0.8rem;
    }
}

/* Tablet Portrait (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .breadcrumbs {
        padding: 0.7rem 0;
        margin-top: 68px;
    }

    .breadcrumbs-container {
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .breadcrumbs a {
        padding: 0.3rem 0.6rem;
    }

    .breadcrumbs-current {
        max-width: 240px;
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }

    .breadcrumbs-separator {
        font-size: 0.625rem;
    }
}

/* Mobile (321px - 480px) */
@media (max-width: 480px) and (min-width: 321px) {
    .breadcrumbs {
        padding: 0.6rem 0;
        margin-top: 66px;
    }

    .breadcrumbs-container {
        font-size: 0.7rem;
        gap: 0.3rem;
    }

    .breadcrumbs a {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .breadcrumbs-current {
        max-width: 160px;
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .breadcrumbs-separator {
        font-size: 0.6rem;
        margin: 0 0.1rem;
    }
}

/* Very Small Mobile (≤320px) */
@media (max-width: 320px) {
    .breadcrumbs {
        padding: 0.5rem 0;
        margin-top: 64px;
    }

    .breadcrumbs-container {
        font-size: 0.65rem;
        gap: 0.25rem;
    }

    .breadcrumbs a {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }

    .breadcrumbs-current {
        max-width: 120px;
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        border-left-width: 2px;
    }

    .breadcrumbs-current::before {
        width: 2px;
    }

    .breadcrumbs-separator {
        font-size: 0.55rem;
        margin: 0;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .breadcrumbs a {
        min-height: 36px;
        display: flex;
        align-items: center;
    }

    .breadcrumbs-current {
        min-height: 36px;
        display: flex;
        align-items: center;
    }
}

/* RTL Breadcrumbs Responsive Adjustments */
@media (max-width: 768px) {
    html[dir="rtl"] .breadcrumbs-current {
        max-width: 220px;
    }

    html[dir="rtl"] .breadcrumbs a {
        font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    }
}

@media (max-width: 480px) {
    html[dir="rtl"] .breadcrumbs-current {
        max-width: 140px;
    }
}

@media (max-width: 320px) {
    html[dir="rtl"] .breadcrumbs-current {
        max-width: 100px;
        border-right-width: 2px;
    }

    html[dir="rtl"] .breadcrumbs-current::before {
        width: 2px;
    }
}

/* ============================================
   LEGAL PAGES STYLING
   ============================================ */

.legal-page {
    padding: 8rem 0 4rem;
    background: linear-gradient(to bottom, var(--bg-light), white);
    min-height: 100vh;
    margin-top: 70px;
}

.legal-page .page-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.legal-updated {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.legal-language-note {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.legal-language-note p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-language-note a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.legal-language-note a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

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

/* Image Zoom Modal */
.product-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
    overflow: hidden;
}

.product-zoom-modal.active {
    display: flex;
    opacity: 1;
}

.product-zoom-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-zoom-modal img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-x pan-y;
}

.product-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.product-zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.product-zoom-close:active {
    transform: scale(0.95);
}

/* Mobile touch zoom instructions */
.product-zoom-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10001;
}

.product-zoom-modal.active .product-zoom-hint {
    opacity: 1;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    20%,
    80% {
        opacity: 1;
    }
}

/* Prevent body scroll when modal is open */
body.zoom-modal-open {
    overflow: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .product-zoom-modal-content {
        max-width: 100%;
        max-height: 100%;
        padding: 20px;
    }

    .product-zoom-modal img {
        max-height: 90vh;
    }

    .product-zoom-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .product-zoom-hint {
        bottom: 10px;
        font-size: 12px;
        padding: 8px 16px;
    }
}

.contact-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.legal-acknowledgment {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    margin-top: 2.5rem;
    text-align: center;
}

.legal-acknowledgment p {
    color: var(--text-dark);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.legal-footer {
    max-width: 900px;
    margin: 3rem auto 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 7rem 0 3rem;
    }

    .legal-page .page-title {
        font-size: 2.25rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    .legal-footer {
        flex-direction: column;
        align-items: center;
    }

    .legal-footer .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Cash on Delivery responsive styles */
    .payment-icon-cod,
    .payment-icon-paypal {
        width: 40px;
        height: 40px;
    }

    .payment-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    html[dir="rtl"] .payment-badge {
        right: auto;
        left: 0.5rem;
    }

    .cod-info-card {
        padding: var(--spacing-md);
    }

    .cod-info-header .cod-icon {
        width: 56px;
        height: 56px;
    }

    .cod-info-header h3 {
        font-size: 1.1rem;
    }

    .cod-info-content p {
        font-size: 0.85rem;
    }

    .cod-benefits li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {

    .payment-icon-cod,
    .payment-icon-paypal {
        width: 36px;
        height: 36px;
    }

    .payment-label {
        padding-right: 55px;
        /* Adjust for very small screens */
    }

    html[dir="rtl"] .payment-label {
        padding-right: 0;
        padding-left: 55px;
    }

    .payment-label strong {
        font-size: 0.85rem;
    }

    .payment-label small {
        font-size: 0.7rem;
    }

    .payment-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
        top: 0.3rem;
        right: 0.3rem;
        max-width: calc(100% - 0.6rem);
        letter-spacing: 0.3px;
    }

    html[dir="rtl"] .payment-badge {
        right: auto;
        left: 0.3rem;
    }

    .cod-info-header .cod-icon {
        width: 48px;
        height: 48px;
    }

    .cod-info-header h3 {
        font-size: 1rem;
    }
}

/* Customer Reviews Section */
.reviews-section {
    padding: 3rem 0;
    /* Reduced from 6rem */
    background: linear-gradient(to bottom, #FAFAFA, #FFFFFF);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.reviews-summary-card {
    background: transparent;
    border-radius: 0;
    padding: 0 0 2rem 0;
    /* Reduced padding */
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    /* Reduced margin */
    text-align: center;
}

.review-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.big-rating {
    font-size: 3.5rem;
    /* Reduced from 5rem */
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -2px;
}

.review-stars-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.stars-display {
    color: #C6A87C;
    /* Gold/Bronze for premium feel */
    font-size: 1.5rem;
    letter-spacing: 4px;
    direction: ltr;
    /* Default LTR */
    display: inline-block;
}

.review-count-label {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.btn-review-action {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-review-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Reviews Grid */
/* Reviews Carousel (Horizontal Scroll) */
.reviews-grid {
    display: flex;
    /* Changed from grid to flex */
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0.5rem 2rem 0.5rem;
    /* Bottom padding for scrollbar/shadow capability */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
    margin: 0 -1rem;
    /* Negative margin to allow full-width scroll on mobile */
    padding-left: 1rem;
    /* Restore padding */
    padding-right: 1rem;
}

.reviews-grid::-webkit-scrollbar {
    height: 4px;
}

.reviews-grid::-webkit-scrollbar-track {
    background: transparent;
}

.reviews-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.review-card {
    /* Ribbon Redesign: Remove Card Box */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    padding-block: 1.5rem;
    /* Restore vertical breathing room */
    padding-inline-end: 1.5rem;
    /* Space for separator */
    padding-inline-start: 1rem;
    /* Space from left edge */
    border-inline-end: 1px solid rgba(0, 0, 0, 0.05);
    /* Logical separator */
    border-radius: 0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Fixed width for carousel items */
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
    justify-content: space-between;
}

/*.review-card:last-child { border-right: none; }*/

/* Ribbon Summary Card Override */
.summary-card-ribbon {
    justify-content: center;
    align-items: center;
    border-inline-end: 1px solid rgba(0, 0, 0, 0.05);
    /* Logical property for RTL support */
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    /* Tighter */
    width: 100%;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    /* Precise gap */
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2a2a2a, #000);
    /* Premium black gradient */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reviewer-meta h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.verified-badge {
    color: #006233;
    /* Patriot Green for trust */
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-card-stars {
    color: #C6A87C;
    /* Elegant Gold */
    font-size: 0.9rem;
    letter-spacing: 2px;
    direction: ltr;
    /* Default to LTR */
}

/* Explicit RTL flip for stars */
/* Explicit RTL flip for stars */
html[dir="rtl"] .review-card-stars,
html[dir="rtl"] .stars-display {
    direction: rtl;
    /* removed bidi-override to prevent character scrambling issues, layout flip should suffice */
}

.review-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    /* Line Clamping for uniform height */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-text.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.review-date {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.5px;
    /* margin/align removed - handled by footer */
}

.photo-toggle-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.photo-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.photo-toggle-icon {
    font-size: 0.9rem;
}

.review-card-footer {
    margin-top: auto;
    /* Pushes footer to bottom */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle separation */
}

/* Footer layout */
.footer-left {
    min-width: 10px;
    /* Ensures space */
}

.footer-right {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.review-photo-container {
    margin: 0 -1.5rem 0;
    /* Zero vertical margin when collapsed */
    height: 0;
    opacity: 0;
    position: relative;
    overflow: hidden;
    width: calc(100% + 3rem);
    transition: all 0.4s ease;
}

.review-photo-container.expanded {
    height: 180px;
    opacity: 1;
    margin: 1rem -1.5rem 0;
    /* Apply margin ONLY when expanded */
}

.review-photo-container.expanded {
    height: 180px;
    opacity: 1;
    margin-top: 1rem;
}

.photo-toggle-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    align-self: flex-start;
    /* Align left */
    transition: all 0.2s;
}

.photo-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.photo-toggle-icon {
    font-size: 0.9rem;
}

.review-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.review-card:hover .review-photo {
    transform: scale(1.05);
}

/* Empty State */
.reviews-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 2px dashed rgba(0, 0, 0, 0.05);
}

.reviews-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 2rem 0;
        /* even smaller on mobile */
    }

    .reviews-summary-card {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .review-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Button styles removed */

    /* Keep carousel layout on mobile */
    .reviews-grid {
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 1rem;
        /* Ensure flex is maintained */
        display: flex;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: unset;
        /* Override grid reset */
    }

    .review-card {
        flex: 0 0 280px;
        /* slightly narrower card on mobile */
        min-width: 280px;
        max-width: 280px;
        padding: 1.25rem;
    }
}

/* =========================================
   FORCE ONE-LINE SHIPPING BANNER (USER REQUEST)
   ========================================= */
.product-shipping-info,
.cart-shipping-info,
.checkout-shipping-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
    gap: 6px !important;
}

/* Ensure child elements don't wrap either */
.product-shipping-info span,
.cart-shipping-info span,
.checkout-shipping-info span {
    white-space: nowrap !important;
    display: inline-block !important;
    /* Better for text-overflow */
}

/* Mobile Optimizations (Smallest Screens) */
@media (max-width: 480px) {

    .product-shipping-info,
    .cart-shipping-info,
    .checkout-shipping-info {
        font-size: 0.72rem !important;
        /* Scale down to fit 1 line */
        padding: 8px 2px !important;
        gap: 3px !important;
        /* Tighter gap */
    }

    /* Adjust icons on mobile */
    .product-shipping-info .shipping-icon,
    .cart-shipping-info .shipping-icon,
    .checkout-shipping-info .shipping-icon {
        font-size: 1rem !important;
        margin-right: 2px !important;
        margin-left: 0 !important;
    }

    html[dir="rtl"] .product-shipping-info .shipping-icon,
    html[dir="rtl"] .cart-shipping-info .shipping-icon,
    html[dir="rtl"] .checkout-shipping-info .shipping-icon {
        margin-left: 2px !important;
        margin-right: 0 !important;
    }
}

/* Extra small devices (iPhone SE, etc) */
@media (max-width: 360px) {

    .product-shipping-info,
    .cart-shipping-info,
    .checkout-shipping-info {
        font-size: 0.65rem !important;
        /* Aggressive scale down */
        letter-spacing: -0.3px !important;
    }
}

/* ============================================
   Neuromarketing / Conversion Elements
   ============================================ */

/* High-Conversion CTA Button */
.btn-cta {
    background-color: var(--nm-cta-bg) !important;
    background-image: none !important;
    color: var(--nm-cta-text) !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 143, 57, 0.4);
    /* Glow effect */
    transform: translateY(0);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

/* Force specific ID/Class overrides */
.btn-buy-now,
.btn-checkout,
.btn-place-order {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: white !important;
}

.btn-cta:hover {
    background-color: var(--nm-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 143, 57, 0.6);
}

.btn-cta:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(223, 255, 0, 0.3);
}

/* Pricing Highlights */
.price-highlight {
    color: var(--nm-price-highlight) !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.price-old {
    color: var(--nm-price-old);
    text-decoration: line-through;
    font-size: 0.9em;
    margin-right: 8px;
    font-weight: 400;
}

/* Urgency / Scarcity Badges */
.badge-urgent {
    background-color: var(--nm-price-highlight);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Button Strategy Overrides (Neuromarketing)
   ============================================ */

/* Secondary / Navigation (Back Buttons) - Neutral */
.btn-outline {
    background-color: transparent !important;
    border: 1px solid #d1d5db !important;
    /* Neutral Grey 300 */
    color: #6b7280 !important;
    /* Neutral Grey 500 */
    box-shadow: none !important;
}

.btn-outline:hover {
    background-color: #f3f4f6 !important;
    /* Grey 100 */
    border-color: #9ca3af !important;
    /* Grey 400 */
    color: #374151 !important;
    /* Grey 700 */
    transform: translateY(-1px);
}

/* Secondary Conversion (Add to Cart) - Trust Outline */
/* Coach Highlight Section */
.coach-highlight {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    animation: fadeIn 0.8s ease-out;
}

.coach-highlight img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 600px;
    /* Optimal max width */
}

.coach-highlight a:hover img {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.coach-highlight h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.coach-highlight h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.coach-highlight .btn {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    min-width: 250px;
}

@media (max-width: 768px) {
    .coach-highlight h3 {
        font-size: 2rem;
    }
}

/* Force fix for checkout steps contrast */
.checkout-progress .progress-step.active .step-number {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
}

/* Sticky Checkout Progress */
.checkout-progress-sticky {
    position: fixed;
    top: 60px;
    /* Navbar height when scrolled */
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    /* Higher opacity for contrast */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0 32px 0;
    /* Bottom padding accounts for absolute label */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align balls to top so efficient line centering works */
    gap: 0;
    /* Managed by lines and padding now */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.checkout-progress-sticky.visible {
    transform: translateY(0);
}

/* Minimalist changes for sticky mode */
.checkout-progress-sticky .step-label {
    display: none;
}

.checkout-progress-sticky .progress-step {
    max-width: auto;
    flex: initial;
    gap: 0;
    padding: 0 15px;
    /* Consistent padding for all steps */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkout-progress-sticky .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-width: 2px;
    z-index: 2;
    /* Above line */
    background: white;
    /* Cover line behind */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    line-height: 1;
    box-sizing: border-box;
}

.checkout-progress-sticky .progress-line {
    display: block;
    /* Show line */
    width: 40px;
    /* Fixed width */
    height: 2px;
    background: #e0e0e0;
    margin: 16px 0 0 0;
    /* Center vertically relative to 32px ball (16px top) */
    align-self: flex-start;
}

/* Enhanced Sticky Progress UX */
/* Enhanced Sticky Progress UX - Vertical Layout */
/* Enhanced Sticky Progress UX - Vertical Layout */
.checkout-progress-sticky .progress-step.active {
    flex-direction: column;
    justify-content: center;
    width: auto;
    max-width: none;
    padding: 0 15px;
    height: auto;
    position: relative;
    /* Anchor for absolute label */
}

.checkout-progress-sticky .progress-step.active .step-label {
    display: block;
    position: absolute;
    top: 100%;
    /* Position below the step number */
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-top: 8px;
    /* Bigger gap */
    width: max-content;
    /* Ensure text doesn't wrap awkwardly */
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
    animation: fadeIn 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

/* Hide "Step X:" part visually if needed, but styling small is effectively good enough */

html[dir="rtl"] .checkout-progress-sticky .progress-step.active .step-label {
    margin-left: 0;
    margin-right: 0;
}

/* Responsive adjustments for sticky banner */
@media (max-width: 480px) {
    .checkout-progress-sticky {
        gap: 0;
        padding: 10px 0 30px 0;
        /* Bottom padding for label on mobile */
    }

    .checkout-progress-sticky .progress-step {
        padding: 0 10px;
    }

    .checkout-progress-sticky .progress-line {
        width: 20px;
        /* Shorter lines on mobile */
        margin-top: 14px;
        /* Adjust for 28px ball */
    }

    .checkout-progress-sticky .progress-step.active {
        padding: 0 8px;
    }

    .checkout-progress-sticky .progress-step.active .step-label {
        font-size: 0.7rem;
        margin-left: 0;
        margin-top: 6px;
        /* Increased from 3px */
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .checkout-progress-sticky .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        border-width: 2px;
        line-height: 1;
        /* Reset to sure */
    }

    .checkout-progress-sticky .step-number {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.85rem !important;
        border-width: 2px !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
    }

    html[dir="rtl"] .checkout-progress-sticky .progress-step.active .step-label {
        margin-left: 0;
        margin-right: 0;
    }
}
/* RTL Hero Overlay Fix */
html[dir="rtl"] .hero::after {
    display: none !important;
    content: none !important;
}

html[dir="rtl"] .hero::before {
    filter: none !important;
    opacity: 1 !important;
}

/* Fix Add to Cart Button Hover Text Color */
.product-detail-actions .btn-secondary:hover,
.btn-secondary:hover {
    color: var(--primary-dark) !important;
}
