/* ===================================
   Modern E-Commerce Store Design
   Mobile-First Responsive Design
   =================================== */

/* ===================================
   CSS Variables - Design System
   =================================== */
:root {
    /* Primary Colors */
    --primary-color: #085091;
    --primary-dark: #063d70;
    --primary-light: #3a7bc9;

    /* Secondary Colors */
    --secondary-color: #34a853;
    --secondary-dark: #2d8e47;
    --secondary-light: #5bb974;

    /* Accent Colors */
    --accent-color: #fbbc04;
    --accent-dark: #f9ab00;
    --danger-color: #ea4335;

    /* Neutral Colors */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e8eaed;
    --border-color: #dadce0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #085091 0%, #063d70 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, rgba(8, 80, 145, 0.9) 0%, rgba(6, 61, 112, 0.9) 100%);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-tooltip: 1050;
}

/* ===================================
   Reset & Base Styles
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-base);
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ===================================
   Header Styles
   =================================== */
header {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

/* ===================================
   Announcement Bar - Salla Style
   =================================== */
.announcement-bar {
    background: #ffffff;
    color: #000;
    overflow: hidden;
    position: relative;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-content {
    width: 100%;
    overflow: hidden;
}

.announcement-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
}

.announcement-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 3rem;
    font-weight: 600;
}

.announcement-text i {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Pause animation on hover */
.announcement-bar:hover .announcement-scroll {
    animation-play-state: paused;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }

    .announcement-text {
        padding: 0 2rem;
    }

    .announcement-scroll {
        animation: scroll-left 15s linear infinite;
    }
}

.header-main {
    padding: var(--spacing-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

/* Logo */
.logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.nav-menu {
    display: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-base);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(8, 80, 145, 0.05);
}

.nav-menu a:hover::before {
    width: 100%;
    right: 0;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

/* ===================================
   Navigation Dropdown Styles
   =================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-dropdown-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(8, 80, 145, 0.05);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-base);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    border: 1px solid var(--border-color);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-dropdown-menu a:hover {
    background-color: rgba(8, 80, 145, 0.08);
    color: var(--primary-color);
    padding-right: calc(var(--spacing-md) + 5px);
}

.nav-dropdown-menu a::before {
    display: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    transition: all var(--transition-base);
}

.cart-icon:hover {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #ea4335;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #dadce0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    color: var(--text-primary);
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.mobile-nav-link i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

/* Mobile Accordion Styles */
.mobile-accordion {
    border-radius: 8px;
    overflow: hidden;
}

.mobile-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s;
    border-radius: 8px;
}

.mobile-accordion-header:hover {
    background: rgba(8, 80, 145, 0.1);
    color: var(--primary-color);
}

.mobile-accordion-header span {
    display: flex;
    align-items: center;
}

.mobile-accordion-header span i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.mobile-accordion-header .accordion-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.mobile-accordion.active .accordion-arrow {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-primary);
}

.mobile-accordion.active .mobile-accordion-content {
    max-height: 500px;
}

.mobile-accordion-content a {
    display: block;
    padding: 0.75rem 1rem 0.75rem 2rem;
    color: var(--text-primary);
    font-weight: 400;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.mobile-accordion-content a:last-child {
    border-bottom: none;
}

.mobile-accordion-content a:hover {
    background: rgba(8, 80, 145, 0.05);
    color: var(--primary-color);
    padding-right: 2.5rem;
}

.mobile-menu nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    color: var(--text-primary);
}

.mobile-menu nav a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* ===================================
   Button Styles
   =================================== */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    background: rgba(8, 80, 145, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* ===================================
   Section Styles
   =================================== */
.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--font-size-3xl);
    }
}

/* Section Header with Title and View All on same line */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header .section-title {
    text-align: right;
    margin: 0;
    padding-bottom: 0;
    font-size: 1.1rem;
}

.section-header .section-title::after {
    display: none;
}

.view-all-link {
    color: #1c61e7;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.view-all-link:hover {
    color: #085091;
}

@media (max-width: 768px) {
    .section-header .section-title {
        font-size: 1rem;
    }

    .view-all-link {
        font-size: 0.85rem;
    }
}

/* ===================================
   Products Grid
   =================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }
}

/* ===================================
   Product Card
   =================================== */
.product-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Product Image Container */
.product-card>a:first-child {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-secondary);
    aspect-ratio: 1 / 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .features-grid>div {
        padding: 1rem !important;
    }

    .features-grid h3 {
        font-size: 1rem !important;
    }

    .features-grid p {
        font-size: 0.75rem !important;
    }
}

/* ===================================
   Hero Banner - Single Image
   =================================== */
.hero-banner-single {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-banner-single a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform var(--transition-base);
}

.hero-banner-single:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .hero-banner-single {
        height: 250px;
        border-radius: var(--radius-md);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-banner-single {
        height: 350px;
    }
}

/* Categories Section Title - Aligned Right */
.categories-title {
    text-align: right;
    margin-bottom: 0rem;
    padding-bottom: 0.5rem;
    font-size: 17px;
}

.categories-title::after {
    right: 0;
    transform: none;
    width: 50px;
}

@media (min-width: 768px) {
    .categories-title {
        font-size: 17px;
    }
}

/* Category Slider - Simple & Clean Design */
.category-slider {
    padding: 1rem 0;
    overflow: hidden;
}

.category-slide {
    height: 100%;
    transition: transform 0.3s ease;
}

.category-slide:hover {
    transform: translateY(-5px);
}

.category-slide a {
    display: block;
    text-decoration: none;
}

.category-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.category-slide:hover .category-card {
    box-shadow: var(--shadow-lg);
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 12 / 10;
    overflow: hidden;
    background: #3a4a5d;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-slide:hover .category-image {
    transform: scale(1.05);
}

.category-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 14px;
    text-align: center;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-name {
        font-size: 13px;
        padding: 0.75rem;
    }
}

/* ===================================
   Brand Circle Cards - Simple Design
   =================================== */
.brand-slider {
    padding: 1rem 0;
}

.brand-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    gap: 0.5rem;
}

.brand-circle-card:hover {
    transform: translateY(-3px);
}

.brand-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 10px;
}

.brand-circle:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-circle:hover .brand-logo {
    transform: scale(1.1);
}

.brand-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Brand Circles */
@media (min-width: 768px) {
    .brand-circle {
        width: 100px;
        height: 100px;
        padding: 12px;
    }

    .brand-name {
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .brand-circle {
        width: 110px;
        height: 110px;
        padding: 15px;
    }

    .brand-name {
        font-size: 0.9rem;
    }
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--gradient-secondary);
    color: var(--bg-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

/* Product Info */
.product-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.product-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: var(--spacing-sm);
}

.product-title a {
    color: var(--text-primary);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.product-price::after {
    content: ' جنيه';
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

/* Add to Cart Button */
.add-to-cart {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    margin-top: auto;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* ===================================
   Footer
   =================================== */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--bg-primary);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-section ul li a:hover {
    color: var(--bg-primary);
    padding-right: var(--spacing-sm);
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.mb-5 {
    margin-bottom: var(--spacing-2xl);
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mt-5 {
    margin-top: var(--spacing-2xl);
}

/* ===================================
   Responsive Helpers
   =================================== */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ===================================
   Loading States
   =================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* ===================================
   Product Details Page
   =================================== */
.product-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

@media (min-width: 768px) {
    .product-details {
        grid-template-columns: 1fr 1fr;
    }
}

.product-gallery {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.product-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    object-fit: contain;
    max-height: 500px;
}

.product-info-col h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.product-price-large {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.qty-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* ===================================
   Cart Page
   =================================== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
}

.cart-table th {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
}

.cart-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-summary {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.summary-total {
    border-top: 2px solid var(--border-color);
    padding-top: var(--spacing-md);
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

/* ===================================
   Checkout Page
   =================================== */
.checkout-form {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 80, 145, 0.1);
}

.checkout-grid {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

@media (min-width: 768px) {
    .product-details {
        grid-template-columns: 1fr 1fr;
    }
}

.product-gallery {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.product-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    object-fit: contain;
    max-height: 500px;
}

.product-info-col h1 {
    font-size: 17px;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.product-price-large {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.qty-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* Success Button (Green - Buy Now) */
.btn-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #1e7a36 100%);
}

.btn-success:active {
    transform: translateY(0);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1ebe57 100%);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #1ebe57 0%, #17a347 100%);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

/* Responsive - Full Width on Mobile */
@media (max-width: 640px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}


/* ===================================
   Enhanced Product Page Styles
   =================================== */

.product-main-image-wrapper {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.product-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.product-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    opacity: 0.6;
}

.product-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.product-thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.product-title-large {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .product-title-large {
        font-size: var(--font-size-3xl);
    }
}

.product-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.product-meta-item i {
    font-size: 0.9em;
}

.product-available {
    color: var(--secondary-color);
    background: rgba(52, 168, 83, 0.1);
}

.product-available i {
    color: var(--secondary-color);
}



.product-price-large .currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: var(--spacing-xs);
}

.quantity-section {
    margin-bottom: var(--spacing-xl);
}

.quantity-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.product-action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 640px) {
    .product-action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.product-action-buttons .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

@media (max-width: 639px) {
    .product-action-buttons .btn {
        width: 100%;
    }
}

.btn-add-cart:active,
.btn-buy-now:active {
    transform: scale(0.98);
}

.related-products-section {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-3xl);
    border-top: 2px solid var(--border-color);
}


/* ===================================
   Cart Page
   =================================== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
}

.cart-table th {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
}

.cart-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-summary {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.summary-total {
    border-top: 2px solid var(--border-color);
    padding-top: var(--spacing-md);
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

/* ===================================
   Checkout Page
   =================================== */
.checkout-form {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 80, 145, 0.1);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* ===================================
   Product Sliders per Category
   =================================== */
.category-products-section {
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.view-all-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: white;
}

/* Hide navigation on mobile */
@media (max-width: 640px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Product slider specific styling */
.category-products-section .swiper {
    padding: 1rem 2.5rem;
    margin: 0 -2.5rem;
}

@media (max-width: 640px) {
    .category-products-section .swiper {
        padding: 1rem 0;
        margin: 0;
    }
}

/* Ensure product cards in slider have consistent height */
.category-products-section .swiper-slide {
    height: auto;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* ===================================
   Cart Page
   =================================== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
}

.cart-table th {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
}

.cart-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-summary {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.summary-total {
    border-top: 2px solid var(--border-color);
    padding-top: var(--spacing-md);
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

/* ===================================
   Checkout Page
   =================================== */
.checkout-form {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 80, 145, 0.1);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* ===================================
   Product Sliders per Category
   =================================== */
.category-products-section {
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.view-all-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: white;
}

/* Hide navigation on mobile */
@media (max-width: 640px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Product slider specific styling */
.category-products-section .swiper {
    padding: 1rem 2.5rem;
    margin: 0 -2.5rem;
}

@media (max-width: 640px) {
    .category-products-section .swiper {
        padding: 1rem 0;
        margin: 0;
    }
}

/* Ensure product cards in slider have consistent height */
.category-products-section .swiper-slide {
    height: auto;
}

.category-products-section .product-card {
    height: 100%;
}

/* Product price styling inside slider */
.category-products-section .product-price::after {
    content: '';
}

/* ===================================
   Hero Slider Section
   =================================== */
.hero-slider {
    width: 100%;
    padding-bottom: 40px;
    /* Space for pagination */
    overflow: hidden;
}

.hero-slide-item {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-slide-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.hero-slide-item img {
    width: 100%;
    min-height: 250px;
    /* Taller height */
    max-height: 250px;
    /* Maximum height */
    object-fit: cover;
    display: block;
}

/* Responsive adjustments for hero slider */
@media (max-width: 768px) {
    .hero-slide-item img {
        min-height: 170px;
        max-height: 170px;
    }
}

/* Swiper Pagination Customization for Hero */
.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--text-light);
    opacity: 0.5;
    transition: all 0.3s;
}

.hero-slider .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 6px;
    background: var(--primary-color);
    opacity: 1;
}

/* ===================================
   Fixed Contact Icons
   =================================== */
.fixed-contact-icons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-icon-wrapper {
    position: relative;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none !important;
}

.contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    background: #25D366;
}

.whatsapp-icon:hover {
    background: #20ba5a;
}

.call-icon {
    background: var(--primary-color);
}

.call-icon:hover {
    background: var(--primary-dark);
}

/* Sales Numbers Popup */
.sales-numbers-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.sales-numbers-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.popup-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
}

.popup-body {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.sales-number-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 5px;
}

.sales-number-item:last-child {
    margin-bottom: 0;
}

.sales-number-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.sales-number-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Animation for icons entrance */
.fixed-contact-icons {
    animation: slideInUp 0.5s ease-out 1s both;
}

@media (max-width: 767px) {
    .fixed-contact-icons {
        bottom: 20px;
        right: 20px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .sales-numbers-popup {
        width: 250px;
    }
}

/* ===================================
   Installment Payment Section Styles
   =================================== */
.installment-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid #dee2e6;
}

.installment-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #085091;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.installment-title i {
    font-size: 1.3rem;
}

.installment-plans-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bank-installment-group {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 12px;
}

.bank-logo {
    width: 80px;
    height: 50px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}

.bank-header i {
    font-size: 2rem;
    color: #085091;
}

.bank-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.plans-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.installment-plan-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.installment-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 80, 145, 0.15);
    border-color: #085091;
}

.plan-duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #085091;
    color: white;
    padding: 12px;
    border-radius: 8px;
    min-width: 70px;
}

.duration-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.duration-label {
    font-size: 0.75rem;
    margin-top: 4px;
}

.plan-details {
    flex: 1;
}

.monthly-payment {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.payment-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #085091;
}

.payment-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item {
    font-size: 0.85rem;
    color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
    .plans-list {
        grid-template-columns: 1fr;
    }

    .installment-section {
        padding: 16px;
    }

    .installment-title {
        font-size: 1.2rem;
    }

    .bank-logo {
        width: 60px;
        height: 40px;
    }
}

/* ===================================
   Compact Installment Section Styles  
   =================================== */
.installment-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
}

.installment-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #085091;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.installment-compact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.installment-compact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.installment-compact-item:hover {
    border-color: #085091;
    box-shadow: 0 2px 8px rgba(8, 80, 145, 0.1);
}

.installment-payment {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 600;
}

.payment-value {
    font-size: 1.15rem;
    color: #085091;
}

.payment-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.installment-bank {
    display: flex;
    align-items: center;
}

.compact-bank-logo {
    height: 28px;
    max-width: 60px;
    object-fit: contain;
}

.bank-name-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
}

.installment-details {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #495057;
    flex: 1;
}

.detail-item {
    white-space: nowrap;
}

.detail-separator {
    color: #cbd5e0;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .installment-compact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .installment-payment {
        width: 100%;
    }

    .installment-details {
        width: 100%;
        gap: 4px;
        font-size: 0.8rem;
    }
}

/* ===================================
   Payment Methods Section (Product Page)
   =================================== */
.payment-methods-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option-card {
    position: relative;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option-content {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding-right: 40px;
}

/* Payment Line 1: Logo + Main Text */
.payment-line-1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-main-text {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

/* Payment Line 2: Details */
.payment-line-2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-right: 10px;
}

.payment-detail {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
}

.payment-detail-separator {
    color: #cbd5e0;
    font-weight: bold;
    font-size: 0.75rem;
}

.payment-duration {
    color: #085091;
    font-weight: 700;
}

/* Bank Logo */
.payment-bank-logo {
    height: 32px;
    max-width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Hover & Selected States */
.payment-option-card:hover .payment-option-content {
    border-color: #085091;
    box-shadow: 0 4px 12px rgba(8, 80, 145, 0.1);
    transform: translateY(-2px);
}

.payment-option-card input[type="radio"]:checked~.payment-option-content {
    border-color: #085091;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    box-shadow: 0 4px 16px rgba(8, 80, 145, 0.2);
}

.payment-option-card input[type="radio"]:checked~.payment-option-content::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #085091;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}

/* Responsive - Mobile */
@media (max-width: 639px) {
    .payment-option-content {
        padding: 10px 14px;
        padding-right: 36px;
        gap: 6px;
    }

    .payment-main-text {
        font-size: 0.9rem;
    }

    .payment-bank-logo {
        height: 24px;
        max-width: 60px;
    }

    .payment-detail {
        font-size: 0.75rem;
    }

    .payment-detail-separator {
        font-size: 0.65rem;
    }

    .payment-option-card input[type="radio"]:checked~.payment-option-content::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
        left: 10px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .payment-option-content {
        gap: 4px;
        padding: 8px 12px;
        padding-right: 32px;
    }

    .payment-main-text {
        font-size: 0.85rem;
    }

    .payment-bank-logo {
        height: 20px;
        max-width: 50px;
    }

    .payment-detail {
        font-size: 0.7rem;
    }

    .payment-detail-separator {
        font-size: 0.6rem;
    }
}

/* ===================================
   Product Details Page - Mobile Optimization
   =================================== */

/* Mobile: 768px and below */
@media (max-width: 768px) {

    /* Product Details Container */
    .product-details {
        gap: var(--spacing-lg);
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    /* Product Gallery Mobile */
    .product-gallery {
        padding: var(--spacing-sm);
    }

    .product-main-image-wrapper {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .product-main-image {
        max-height: 350px;
    }

    /* Product Thumbnails - Horizontal Scroll */
    .product-thumbnails {
        display: flex;
        gap: var(--spacing-xs);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: var(--spacing-xs);
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .product-thumbnails::-webkit-scrollbar {
        height: 4px;
    }

    .product-thumbnails::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: var(--radius-full);
    }

    .product-thumbnails::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: var(--radius-full);
    }

    .product-thumbnail {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* Product Info Mobile */
    .product-info-col {
        padding: 0;
    }

    .product-title-large {
        font-size: var(--font-size-xl);
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
    }

    .product-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .product-price-section {
        margin-bottom: var(--spacing-md);
    }

    .product-price-large {
        font-size: var(--font-size-2xl);
    }

    .product-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }

    /* Payment Methods Section Mobile */
    .payment-methods-section {
        padding: var(--spacing-md);
        margin: var(--spacing-md) 0;
    }

    .installment-title,
    .payment-methods-section h3 {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .payment-option-content {
        flex-wrap: wrap;
        padding: 10px 12px;
        padding-left: 32px;
        gap: 6px;
    }

    .payment-price {
        font-size: 0.95rem;
        width: 100%;
        margin-bottom: 4px;
    }

    .payment-divider {
        display: none;
    }

    .payment-bank-logo {
        height: 22px;
        max-width: 55px;
    }

    .payment-method-name {
        font-size: 0.85rem;
    }

    .payment-info-text {
        font-size: 0.7rem;
        white-space: normal;
    }

    /* Quantity Section Mobile */
    .quantity-section {
        margin-bottom: var(--spacing-md);
    }

    .quantity-label {
        font-size: var(--font-size-base);
    }

    .quantity-selector {
        gap: var(--spacing-md);
    }

    .qty-btn {
        width: 45px;
        height: 45px;
        font-size: var(--font-size-xl);
    }

    .qty-input {
        width: 70px;
        height: 45px;
        font-size: var(--font-size-xl);
    }

    /* Action Buttons Mobile */
    .product-action-buttons {
        gap: var(--spacing-sm);
    }

    .product-action-buttons .btn {
        width: 100%;
        min-width: auto;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
        justify-content: center;
    }

    .btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }

    /* Related Products Mobile */
    .related-products-section {
        margin-top: var(--spacing-xl);
    }

    .related-products-section .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-md);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-xl);
    }

    .product-card {
        border-radius: var(--radius-md);
    }

    .product-info {
        padding: var(--spacing-sm);
    }

    .product-title {
        font-size: var(--font-size-sm);
        -webkit-line-clamp: 2;
    }

    .product-price {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-sm);
    }

    .add-to-cart {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }

    /* Container Mobile Spacing */
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Extra Small Mobile: 480px and below */
@media (max-width: 480px) {

    /* Product Main Image */
    .product-main-image {
        max-height: 280px;
    }

    .product-thumbnail {
        width: 60px;
        height: 60px;
    }

    /* Product Title */
    .product-title-large {
        font-size: var(--font-size-lg);
    }

    /* Product Price */
    .product-price-large {
        font-size: var(--font-size-xl);
    }

    /* Payment Methods */
    .payment-methods-section {
        padding: var(--spacing-sm);
    }

    .payment-option-content {
        padding: 8px 10px;
        padding-left: 28px;
        gap: 4px;
    }

    .payment-price {
        font-size: 0.85rem;
    }

    .payment-bank-logo {
        height: 18px;
        max-width: 45px;
    }

    .payment-method-name {
        font-size: 0.75rem;
    }

    .payment-info-text {
        font-size: 0.65rem;
    }

    .payment-option-card input[type="radio"]:checked~.payment-option-content::before {
        width: 18px;
        height: 18px;
        font-size: 10px;
        left: 8px;
    }

    /* Quantity Buttons */
    .qty-btn {
        width: 40px;
        height: 40px;
    }

    .qty-input {
        width: 60px;
        height: 40px;
    }

    /* Action Buttons */
    .product-action-buttons .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    /* Related Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card a:first-child {
        aspect-ratio: 1 / 1;
    }

    .product-info {
        padding: 8px;
    }

    .product-title {
        font-size: 0.75rem;
    }

    .product-price {
        font-size: var(--font-size-base);
    }

    .add-to-cart {
        padding: 8px;
        font-size: 0.75rem;
    }
}

/* Very Small Devices: 375px and below */
@media (max-width: 375px) {
    .product-main-image {
        max-height: 250px;
    }

    .payment-option-content {
        padding: 6px 8px;
        padding-left: 26px;
    }

    .payment-price {
        font-size: 0.8rem;
    }

    .payment-method-name {
        font-size: 0.7rem;
    }

    .payment-info-text {
        font-size: 0.6rem;
    }
}

/* Tablet Landscape: 1024px and below */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-details {
        gap: var(--spacing-lg);
    }

    .product-main-image {
        max-height: 400px;
    }

    .payment-option-content {
        gap: 10px;
    }
}

/* ===================================
   Product Filters Sidebar
   =================================== */
.filters-sidebar {
    width: 280px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.filters-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filters-header h3 i {
    color: var(--primary-color);
}

.clear-filters {
    background: var(--danger-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all var(--transition-base);
}

.clear-filters:hover {
    background: #c5221f;
    transform: scale(1.05);
}

.filter-group {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-option:hover {
    background: var(--bg-secondary);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-option span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    user-select: none;
}

.filter-option input[type="checkbox"]:checked+span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Fix main container layout on mobile */
    .container>div[style*="display: flex"] {
        flex-direction: column !important;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
        margin-bottom: var(--spacing-lg);
        max-height: none;
    }

    .filters-content {
        max-height: 400px;
        overflow-y: auto;
    }

    /* Ensure products container takes full width on mobile */
    .products-container {
        width: 100% !important;
    }
}

/* Scrollbar Styling */
.filters-sidebar::-webkit-scrollbar,
.filters-content::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track,
.filters-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.filters-sidebar::-webkit-scrollbar-thumb,
.filters-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.filters-sidebar::-webkit-scrollbar-thumb:hover,
.filters-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===================================
   Product Page - Inline Action Row
   =================================== */
.product-action-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Quantity Selector Inline Styles */
.quantity-selector-inline {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
    height: 44px;
}

.quantity-selector-inline .qty-btn {
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.quantity-selector-inline .qty-btn:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

.quantity-selector-inline .qty-input {
    width: 40px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    -moz-appearance: textfield;
}

.quantity-selector-inline .qty-input::-webkit-outer-spin-button,
.quantity-selector-inline .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Inline Action Buttons */
.btn-action-inline {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.btn-action-inline i {
    font-size: 0.9rem;
}

.btn-action-inline span {
    display: inline;
}

/* Responsive Adjustments */
@media (max-width: 500px) {
    .product-action-row {
        gap: 0.35rem;
    }

    .quantity-selector-inline {
        height: 40px;
    }

    .quantity-selector-inline .qty-btn {
        width: 32px;
        font-size: 0.75rem;
    }

    .quantity-selector-inline .qty-input {
        width: 30px;
        font-size: 0.9rem;
    }

    .btn-action-inline {
        height: 40px;
        padding: 0 0.5rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .btn-action-inline i {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .btn-action-inline span {
        display: none;
    }

    .btn-action-inline {
        padding: 0 0.75rem;
    }

    .btn-action-inline i {
        font-size: 1rem;
    }
}

/* ===================================
   Product Meta - Inline Layout
   =================================== */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* ===================================
   Compact Payment Options - Simple Design
   =================================== */
.payment-methods-compact {
    margin: 1.5rem 0;
}

.payment-title-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.payment-title-compact i {
    color: var(--primary-color);
}

.required-star {
    color: #e53e3e;
    font-weight: bold;
}

.payment-options-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-radio-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-radio-item:hover {
    border-color: var(--primary-color);
    background: rgba(8, 80, 145, 0.02);
}

.payment-radio-item input[type="radio"] {
    display: none;
}

.payment-radio-circle {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.payment-radio-item input[type="radio"]:checked~.payment-radio-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.payment-radio-item input[type="radio"]:checked~.payment-radio-circle::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.payment-radio-item input[type="radio"]:checked~.payment-radio-content {
    color: var(--primary-color);
}

.payment-radio-item:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(8, 80, 145, 0.04);
}

.payment-radio-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.payment-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.payment-icon.cash {
    color: #059669;
}

.payment-icon.bank {
    color: #085091;
}

.payment-bank-logo-small {
    height: 22px;
    max-width: 45px;
    object-fit: contain;
}

.payment-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
}

.payment-error-msg {
    display: none;
    color: #e53e3e;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Responsive - Mobile Payment */
@media (max-width: 480px) {
    .payment-radio-item {
        padding: 0.5rem 0.65rem;
    }

    .payment-radio-circle {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .payment-icon {
        font-size: 1rem;
        width: 20px;
    }

    .payment-bank-logo-small {
        height: 18px;
        max-width: 38px;
    }

    .payment-text {
        font-size: 0.8rem;
    }

    .payment-tag {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
    }
}

/* ===================================
   Product Price Boxes - مستطيلات الأسعار
   =================================== */
.product-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    direction: rtl;
    width: 100%;
}

/* المربع الأساسي - تصميم عريض وقليل الارتفاع */
.price-box {
    position: relative;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    /* يجعل المربعات تأخذ العرض المتاح */
    min-width: fit-content;
}

/* مربع السعر قبل الخصم - أصغر مساحة */
.price-box.price-before {
    background: #f5f5f5;
    border: 1px solid #dcdcdc;
    color: #888;
    flex: 1;
    /* مساحة عادية */
}

.price-box.price-before .price-box-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.price-box.price-before .price-box-value {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-box.price-before .price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-color: #e53935;
}

.price-box.price-before .price-currency {
    font-size: 0.85rem;
}

/* مربع السعر بعد الخصم - أكبر مساحة */
.price-box.price-after {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
    flex: 1.5;
    /* مساحة أكبر بمرة ونصف */
}

.price-box.price-after .price-box-label {
    font-size: 1rem;
    color: #2e7d32;
    font-weight: 700;
    margin: 0;
}

.price-box.price-after .price-box-value {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-box.price-after .price-amount {
    font-size: 1.5rem;
    color: #1b5e20;
    font-weight: 800;
}

.price-box.price-after .price-currency {
    font-size: 0.95rem;
    color: #2e7d32;
    font-weight: 600;
}

/* بادج التوفير - تعديل المتوضع */
.savings-badge {
    position: absolute;
    top: -10px;
    left: 10px;
    /* تغيير المكان لليسار لعدم تغطية النص */
    right: auto;
    transform: none;
    background: #ff5722;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(255, 87, 34, 0.3);
    z-index: 2;
}

/* السعر بدون تخفيض */
.price-box.price-single {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    padding: 15px 30px;
    flex: 0 1 auto;
    /* لا يتمدد كثيراً */
    min-width: 200px;
}

.price-box.price-single .price-amount {
    font-size: 1.8rem;
    color: #1565c0;
    font-weight: 800;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-price-row {
        flex-direction: row;
        /* المربعين بجانب بعض */
        gap: 8px;
        /* مسافة صغيرة جداً */
        align-items: stretch;
        flex-wrap: nowrap;
        /* منع النزول لسطر جديد */
    }

    .price-box {
        padding: 8px 5px;
        /* حواف ضيقة جداً */
        flex-direction: column;
        /* تغيير: النص فوق السعر لضمان المساحة */
        justify-content: center;
        min-width: 0;
        /* السماح بالانكماش */
        gap: 3px;
    }

    /* تعديل: إذا كانت الشاشة تسمح، اجعلهم في نفس السطر، وإلا النص فوق السعر */
    /* لكن طلبك هو "النص والسعر على نفس السطر" لذلك سأجبر ذلك وأقلل الخطوط */
    .price-box {
        flex-direction: row;
        /* إجبار النص والسعر على نفس السطر */
        flex-wrap: wrap;
        /* السماح بالالتفاف إذا ضاق جداً */
        align-items: center;
        gap: 5px;
    }

    .price-box-label {
        font-size: 0.7rem !important;
        /* خط صغير للنص */
        margin-bottom: 0 !important;
        white-space: nowrap;
        /* منع التفاف النص */
    }

    .price-box-value {
        gap: 2px;
    }

    .price-box.price-before .price-amount {
        font-size: 0.9rem;
        /* تصغير السعر */
    }

    .price-box.price-after .price-amount {
        font-size: 1rem;
        /* تصغير السعر */
    }

    .price-box.price-before .price-currency,
    .price-box.price-after .price-currency {
        font-size: 0.7rem;
    }

    /* بادج التوفير صغير جداً وفوق */
    .savings-badge {
        top: -8px;
        left: 5px;
        padding: 2px 6px;
        font-size: 0.6rem;
    }
}

/* للموبايلات الصغيرة جداً (أقل من 380px) قد نضطر لجعل النص فوق السعر */
@media (max-width: 360px) {
    .price-box {
        flex-direction: column;
        /* النص فوق السعر للشاشات الضيقة جداً */
        gap: 0;
    }

    .price-box-label {
        font-size: 0.65rem !important;
    }
}

/* Hero Grid Layout */
.hero-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 500px;
    /* Adjust based on needs */
}

/* Make left column slightly wider if needed, but 1:1 is standard for this request's description */
/* If user wants 'composed of two images', maybe 2 columns is right. */

.hero-left {
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hero-left:hover img {
    transform: scale(1.02);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.hero-right-item {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-right-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hero-right-item:hover img {
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-grid-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
    }

    .hero-left {
        height: 300px;
        /* Fixed height for mobile main text */
    }

    .hero-right {
        flex-direction: row;
        /* Side by side on mobile? Or stacked? */
        /* User said 'Right the two images'. On mobile usually we stack everything vertically or make right images side-by-side below. */
        /* Let's Try side by side for the two small ones on mobile to save vertical space. */
        height: 150px;
    }

    .hero-right-item {
        height: 100%;
    }
}


/* Hero Right Slider on Mobile */
.hero-right-slider {
    width: 100%;
}

@media (max-width: 767px) {
    .hero-right-slider {
        padding-bottom: 30px;
    }

    .hero-right-slider .swiper-slide {
        height: auto;
    }

    .hero-right-slider .hero-right-item img {
        width: 100%;
        height: auto;
        border-radius: var(--radius-lg);
    }
}

@media (min-width: 768px) {
    .hero-right-slider .swiper-wrapper {
        flex-direction: column !important;
        transform: none !important;
        gap: 20px;
        box-sizing: border-box;
    }

    .hero-right-slider .swiper-slide {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    .hero-right-slider .swiper-pagination {
        display: none;
    }
}

/* ===================================
   Mobile Filter Toggle Button
   =================================== */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
    order: -1;
}

.mobile-filter-toggle:hover {
    background: var(--primary-dark);
}

.mobile-filter-toggle.active {
    background: var(--primary-dark);
}

.mobile-filter-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
    margin-right: auto;
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .filters-sidebar {
        display: none;
        width: 100%;
        position: static;
        margin-bottom: var(--spacing-lg);
        max-height: none;
    }

    .filters-sidebar.mobile-open {
        display: block;
    }
}

/* ===================================
   Extra Content Section
   =================================== */
.extra-content-section {
    margin-top: 3rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.extra-content-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.extra-content-toggle:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #04325c 100%);
}

.extra-content-toggle span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.extra-content-toggle i {
    font-size: 1.2rem;
}

.extra-content-arrow {
    font-size: 0.875rem;
    transition: transform var(--transition-base);
}

.extra-content-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: all 0.4s ease;
    line-height: 1.8;
    color: var(--text-secondary);
}

.extra-content-body.open {
    max-height: 2000px;
    padding: 1.5rem;
}

/* ===================================
   FAQ Section
   =================================== */
.category-faq-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.faq-section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-section-title i {
    color: var(--primary-color);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item.open {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-base);
    gap: 1rem;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-item.open .faq-question {
    background: var(--primary-color);
    color: white;
}

.faq-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: var(--font-size-sm);
    }

    .faq-answer {
        font-size: var(--font-size-sm);
    }

    .faq-section-title {
        font-size: var(--font-size-xl);
    }

    .extra-content-toggle {
        padding: 1rem 1.25rem;
        font-size: var(--font-size-base);
    }
}