/**
 * Customer Frontend Modern UI - 1way.world
 * Modern e-commerce styling with orange theme
 * Matches admin/vendor dashboard aesthetic
 */

/* ============================================
   CSS VARIABLES - THEME CONFIGURATION
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #f27a1a;
    --primary-hover: #e06b0f;
    --primary-light: #fff5eb;
    --primary-gradient: linear-gradient(135deg, #f27a1a 0%, #ff9a44 100%);
    --primary-gradient-hover: linear-gradient(135deg, #e06b0f 0%, #f27a1a 100%);

    /* Secondary Colors */
    --secondary-color: #2d2d2d;
    --secondary-light: #4a4a4a;

    /* Status Colors */
    --success-color: #28a745;
    --success-light: #d4edda;
    --warning-color: #ffc107;
    --warning-light: #fff3cd;
    --danger-color: #dc3545;
    --danger-light: #f8d7da;
    --info-color: #17a2b8;
    --info-light: #d1ecf1;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-muted: #9e9e9e;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-orange: 0 4px 15px rgba(242, 122, 26, 0.3);
    --shadow-orange-lg: 0 8px 25px rgba(242, 122, 26, 0.4);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic: 'Cairo', 'Tajawal', sans-serif;

    /* Spacing */
    --container-padding: 15px;
    --section-spacing: 40px;
    --card-padding: 16px;
}

/* RTL Support */
html[dir="rtl"] {
    --font-primary: var(--font-arabic);
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--gray-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   HEADER & NAVIGATION - MODERN STICKY HEADER
   ============================================ */
.navbar,
header.navbar,
.header-section,
.top-header,
nav.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

/* Sticky Header */
.sticky-header,
header.sticky,
.navbar.fixed-top,
.header-fixed {
    position: sticky !important;
    top: 0;
    z-index: 1030;
    background: var(--white) !important;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Top Bar */
.top-bar,
.topbar,
.header-top {
    background: var(--secondary-color) !important;
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar a,
.topbar a,
.header-top a {
    color: var(--white) !important;
    transition: var(--transition-fast);
}

.top-bar a:hover,
.topbar a:hover,
.header-top a:hover {
    color: var(--primary-color) !important;
}

/* Logo Enhancement */
.navbar-brand img,
.logo img,
.header-logo img {
    max-height: 45px;
    width: auto;
    transition: var(--transition-normal);
}

.navbar-brand:hover img,
.logo:hover img {
    transform: scale(1.02);
}

/* Search Bar Enhancement */
.search-bar,
.search-form,
.header-search,
.search-box,
input[type="search"],
.search-input {
    border: 2px solid var(--gray-300) !important;
    border-radius: var(--radius-full) !important;
    padding: 10px 20px !important;
    transition: var(--transition-normal) !important;
    background: var(--white) !important;
}

.search-bar:focus,
.search-form input:focus,
.search-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(242, 122, 26, 0.15) !important;
    outline: none !important;
}

.search-btn,
.search-button,
button[type="submit"].search {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: var(--white) !important;
    border-radius: var(--radius-full) !important;
    padding: 10px 25px !important;
    transition: var(--transition-normal) !important;
}

.search-btn:hover,
.search-button:hover {
    background: var(--primary-gradient-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-orange);
}

/* ============================================
   TRENDYOL-STYLE SEARCH BAR - Enhanced
   ============================================ */
.ty-search-container {
    flex: 1 !important;
    max-width: 650px !important;
    min-width: 300px;
    margin: 0 30px !important;
}

.ty-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    padding: 6px 8px;
    gap: 12px;
    transition: var(--transition-normal);
}

.ty-search-wrapper:focus-within {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(242, 122, 26, 0.1);
}

.ty-search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.ty-search-icon {
    font-size: 18px;
    color: var(--gray-500);
}

.ty-search-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 14px;
    color: var(--text-primary);
    min-width: 0;
}

.ty-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.ty-search-input::placeholder {
    color: var(--gray-500);
}

.ty-camera-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    margin: 0 4px;
}

.ty-camera-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.ty-search-btn {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: var(--white) !important;
    border-radius: var(--radius-full) !important;
    padding: 10px 24px !important;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
    margin-left: 4px;
}

html[dir="rtl"] .ty-search-btn {
    margin-left: 0;
    margin-right: 4px;
}

.ty-search-btn:hover {
    background: var(--primary-gradient-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-orange);
}

/* Search dropdown */
.ty-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.ty-search-dropdown.active {
    display: block;
}

/* Navigation Links */
.nav-link,
.navbar-nav .nav-link,
.menu-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 10px 16px !important;
    transition: var(--transition-fast);
    position: relative;
}

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

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

/* Vendor Zone Dropdown - Fix visibility and alignment */
.navbar-nav .nav-item .dropdown,
.navbar-nav > li > .dropdown {
    display: flex !important;
    align-items: center !important;
}

.navbar-nav .nav-item .dropdown .btn.dropdown-toggle,
.navbar-nav .dropdown .btn.dropdown-toggle.text-white,
.navbar-nav .nav-item .dropdown > .btn {
    color: var(--text-primary) !important;
    background: transparent !important;
    border: none !important;
    font-weight: 500;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    height: 100%;
    margin: 0 !important;
    line-height: 1.5;
}

.navbar-nav .nav-item .dropdown .btn.dropdown-toggle:hover,
.navbar-nav .dropdown .btn.dropdown-toggle.text-white:hover {
    color: var(--primary-color) !important;
}

/* Fix vendor zone nav-item alignment */
.navbar-nav .nav-item {
    display: flex !important;
    align-items: center !important;
}

/* Nav link underline effect - only for direct nav-links, not dropdown buttons */
.navbar-nav > .nav-item > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav > .nav-item > .nav-link:hover::after,
.navbar-nav > .nav-item > .nav-link.active::after {
    width: calc(100% - 32px);
}

/* Fix dropdown menus z-index and visibility */
.dropdown-menu {
    z-index: 1050 !important;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
}

.dropdown-menu .dropdown-item {
    padding: 10px 20px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.dropdown-menu .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Language & Currency Dropdowns */
.topbar .dropdown,
.topbar-text.dropdown,
.__language-bar.dropdown {
    position: relative;
}

.topbar .dropdown-menu,
.topbar-text .dropdown-menu,
.__language-bar .dropdown-menu {
    min-width: 150px;
    background: var(--white);
    z-index: 1060 !important;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    margin-top: 0 !important;
    top: 100% !important;
    display: none;
}

/* Invisible bridge to prevent hover gap */
.topbar .dropdown::after,
.topbar-text.dropdown::after,
.__language-bar.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

/* Fix language dropdown item text color - make it dark and visible */
.topbar .dropdown-menu li,
.topbar-text .dropdown-menu li,
.__language-bar .dropdown-menu li,
.topbar .dropdown-menu .dropdown-item,
.topbar-text .dropdown-menu .dropdown-item,
.__language-bar .dropdown-menu .dropdown-item,
.__language-bar .dropdown-menu li a,
.topbar .dropdown-menu li a {
    color: var(--text-primary) !important;
    background: transparent;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.topbar .dropdown-menu li:hover,
.topbar-text .dropdown-menu li:hover,
.__language-bar .dropdown-menu li:hover,
.topbar .dropdown-menu .dropdown-item:hover,
.__language-bar .dropdown-menu li a:hover {
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
}

/* Language dropdown link text */
.__language-bar .dropdown-menu li a span,
.topbar .dropdown-menu li a span {
    color: var(--text-primary) !important;
}

.__language-bar .dropdown-menu li:hover a span,
.topbar .dropdown-menu li:hover a span {
    color: var(--primary-color) !important;
}

.topbar .dropdown-toggle,
.topbar-text .dropdown-toggle,
.__language-bar .dropdown-toggle {
    cursor: pointer;
}

/* Ensure dropdown stays open on hover - with bridge support */
.topbar .dropdown:hover > .dropdown-menu,
.topbar-text.dropdown:hover > .dropdown-menu,
.__language-bar.dropdown:hover > .dropdown-menu {
    display: block !important;
}

/* Also support click-based dropdown toggle */
.topbar .dropdown-menu.show,
.topbar-text .dropdown-menu.show,
.__language-bar .dropdown-menu.show {
    display: block !important;
}

/* ============================================
   HEADER AUTH BUTTONS - Sign In / Sign Up
   ============================================ */
.header-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.header-signin-btn {
    background: var(--primary-gradient);
    color: var(--white) !important;
    box-shadow: var(--shadow-sm);
}

.header-signin-btn:hover {
    background: var(--primary-gradient-hover);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

.header-signup-btn {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.header-signup-btn:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* RTL Support for auth buttons */
html[dir="rtl"] .header-auth-btn {
    margin-left: 0;
    margin-right: 8px;
}

/* Cart & Wishlist Icons */
.cart-icon,
.wishlist-icon,
.header-icon,
.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.cart-icon:hover,
.wishlist-icon:hover,
.header-icon:hover,
.icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Badge on icons */
.cart-icon .badge,
.wishlist-icon .badge,
.header-icon .badge,
.cart-count,
.wishlist-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: var(--primary-gradient) !important;
    color: var(--white) !important;
    font-size: 11px !important;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============================================
   BUTTONS - MODERN STYLING
   ============================================ */
.btn,
button,
input[type="submit"],
input[type="button"] {
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
}

/* Primary Button */
.btn-primary,
.btn--primary,
.btn-orange,
.add-to-cart-btn,
.buy-now-btn {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: var(--white) !important;
    padding: 12px 28px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn--primary:hover,
.btn-orange:hover,
.add-to-cart-btn:hover,
.buy-now-btn:hover {
    background: var(--primary-gradient-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange) !important;
    color: var(--white) !important;
}

.btn-primary:active,
.btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm) !important;
}

/* Secondary/Outline Button */
.btn-secondary,
.btn-outline,
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    padding: 10px 26px;
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

/* Ghost Button */
.btn-ghost,
.btn-link {
    background: transparent !important;
    border: none !important;
    color: var(--primary-color) !important;
    padding: 10px 20px;
}

.btn-ghost:hover,
.btn-link:hover {
    background: var(--primary-light) !important;
    text-decoration: none !important;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px !important;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 36px !important;
    font-size: 16px;
}

/* Icon Button */
.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

/* Floating Action Button */
.fab,
.floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-orange-lg);
    z-index: 1000;
    transition: var(--transition-normal);
}

html[dir="rtl"] .fab,
html[dir="rtl"] .floating-btn {
    right: auto;
    left: 20px;
}

.fab:hover,
.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-orange-lg);
}

/* ============================================
   PRODUCT CARDS - MODERN DESIGN
   ============================================ */
.product-card,
.product-single-hover,
.product-item,
.product-box,
.product {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid var(--gray-200);
}

.product-card:hover,
.product-single-hover:hover,
.product-item:hover,
.product-box:hover,
.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Product Image */
.product-card .product-img,
.product-card img,
.product-image,
.product-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

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

/* Product Quick Actions (Wishlist, Quick View) */
.product-actions,
.product-quick-actions,
.quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-normal);
    z-index: 5;
}

html[dir="rtl"] .product-actions,
html[dir="rtl"] .product-quick-actions,
html[dir="rtl"] .quick-actions {
    right: auto;
    left: 10px;
    transform: translateX(-10px);
}

.product-card:hover .product-actions,
.product-card:hover .product-quick-actions,
.product-card:hover .quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-actions .btn,
.quick-action-btn,
.wishlist-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.product-actions .btn:hover,
.quick-action-btn:hover,
.wishlist-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.wishlist-btn.active,
.wishlist-btn.liked {
    background: var(--danger-color);
    color: var(--white);
}

/* Product Badge/Label */
.product-badge,
.product-label,
.sale-badge,
.new-badge,
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

html[dir="rtl"] .product-badge,
html[dir="rtl"] .product-label,
html[dir="rtl"] .sale-badge,
html[dir="rtl"] .new-badge,
html[dir="rtl"] .discount-badge {
    left: auto;
    right: 12px;
}

.sale-badge,
.discount-badge {
    background: var(--danger-color);
    color: var(--white);
}

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

/* Product Content */
.product-content,
.product-info,
.product-details {
    padding: var(--card-padding);
}

.product-title,
.product-name,
.product-content h3,
.product-content h4,
.product-content h5,
.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.product-card:hover .product-title,
.product-card:hover .product-name {
    color: var(--primary-color);
}

/* Product Price */
.product-price,
.price,
.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price,
.old-price,
.price del,
.text-decoration-line-through {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 8px;
}

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

/* Product Rating */
.product-rating,
.rating,
.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.product-rating i,
.rating i,
.star-rating i,
.star-rating .fa-star {
    color: #ffc107;
    font-size: 12px;
}

.rating-count {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 6px;
}

/* Add to Cart Button on Card */
.product-card .add-to-cart,
.product-card .btn-cart,
.add-to-cart-link {
    width: 100%;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

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

.product-card .add-to-cart:hover,
.product-card .btn-cart:hover {
    background: var(--primary-gradient-hover);
    box-shadow: var(--shadow-orange);
}

/* ============================================
   TRUST BAR - BUILD CONFIDENCE
   ============================================ */
.trust-bar,
.trust-badges,
.features-bar {
    background: transparent;
    padding: 20px 0;
    margin-top: 15px;
}

/* White background only on the container to match section widths */
.trust-bar .container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 15px;
    box-shadow: var(--shadow-sm);
}

.trust-item,
.trust-badge,
.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 15px;
    text-align: center;
}

.trust-item i,
.trust-badge i,
.feature-item i {
    font-size: 28px;
    color: var(--primary-color);
}

.trust-item .text,
.trust-badge .text,
.feature-item .text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: start;
}

.trust-item .text strong,
.trust-badge .text strong,
.feature-item .text strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 2px;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card,
.category-item,
.category-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 15px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.category-card:hover,
.category-item:hover,
.category-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card img,
.category-item img,
.category-box img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: var(--transition-normal);
}

.category-card:hover img {
    transform: scale(1.15);
}

.category-card h6,
.category-item h6,
.category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* Horizontal Category Navigation - Home Page */
.horizontal-category-slider .category-item,
.category-slider .owl-item .category-card,
.__category-items,
.category-nav-item {
    padding: 12px 10px;
}

.horizontal-category-slider .category-item img,
.category-slider .owl-item .category-card img,
.__category-items img,
.category-nav-item img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
}

.horizontal-category-slider .category-item h6,
.category-slider .owl-item .category-card h6,
.__category-items h6,
.category-nav-item span {
    font-size: 11px !important;
    font-weight: 500;
}

/* ============================================
   BANNER & HERO SECTIONS
   ============================================ */
.banner,
.hero-banner,
.main-banner,
.slider-banner {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.banner img,
.hero-banner img {
    width: 100%;
    height: auto;
    transition: var(--transition-slow);
}

.banner:hover img,
.hero-banner:hover img {
    transform: scale(1.03);
}

/* Hero Slider */
.hero-slider,
.main-slider {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-control,
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 2px solid var(--gray-300) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    font-size: 14px;
    transition: var(--transition-normal) !important;
    background: var(--white) !important;
}

.form-control:focus,
.form-input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(242, 122, 26, 0.15) !important;
    outline: none !important;
}

/* Form Labels */
label,
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

/* Checkbox & Radio */
.custom-checkbox,
.custom-radio {
    accent-color: var(--primary-color);
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.card,
.box,
.panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card-header,
.panel-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    font-weight: 600;
}

.card-body,
.panel-body {
    padding: 20px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title,
.section-header,
.block-title {
    margin-bottom: 30px;
    text-align: center;
}

.section-title h2,
.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-title p,
.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.section-title .view-all,
.see-more-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.section-title .view-all:hover,
.see-more-link:hover {
    gap: 10px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-400);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    gap: 8px;
}

.page-item .page-link {
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    color: var(--text-primary);
    background: var(--white);
    box-shadow: var(--shadow-xs);
    transition: var(--transition-normal);
}

.page-item .page-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

/* ============================================
   FOOTER
   ============================================ */

/* Hide the footer slider section (About Us, Contact Us, FAQ icons) */
.footer-slider-container,
.__inline-9 > .text-center.pb-4:first-child {
    display: none !important;
}

footer,
.footer,
.site-footer,
.page-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer h5,
.footer h6,
.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer a,
.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
    display: block;
    padding: 6px 0;
}

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

html[dir="rtl"] .footer a:hover,
html[dir="rtl"] .footer-link:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    transition: var(--transition-normal);
}

html[dir="rtl"] .footer-social a {
    margin-right: 0;
    margin-left: 10px;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom,
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    color: var(--gray-500);
    font-size: 14px;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: none;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }
}

.mobile-bottom-nav .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px !important;
    color: var(--text-secondary) !important;
    font-size: 11px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-bottom-nav .nav-link::after {
    display: none !important;
}

.mobile-bottom-nav .nav-link i {
    font-size: 22px;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-link.active,
.mobile-bottom-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.mobile-bottom-nav .nav-link.active i {
    transform: scale(1.1);
}

/* Cart button in mobile nav */
.mobile-bottom-nav .cart-nav {
    position: relative;
}

.mobile-bottom-nav .cart-nav .badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(15px);
    background: var(--primary-color);
    color: var(--white);
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 12px;
}

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

.skeleton-button {
    height: 40px;
    width: 100%;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast,
.notification-toast {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: none;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

html[dir="rtl"] .toast-success,
html[dir="rtl"] .toast-error,
html[dir="rtl"] .toast-warning {
    border-left: none;
    border-right: 4px solid;
}

/* ============================================
   MODAL ENHANCEMENTS
   ============================================ */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 16px 24px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    font-weight: 500;
}

.alert-success {
    background: var(--success-light);
    color: var(--success-color);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-color);
}

.alert-warning {
    background: var(--warning-light);
    color: #856404;
}

.alert-info {
    background: var(--info-light);
    color: var(--info-color);
}

/* ============================================
   QUANTITY SELECTOR
   ============================================ */
.quantity-selector,
.qty-selector,
.quantity-input {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-selector button,
.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--gray-100);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-selector button:hover,
.qty-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.quantity-selector input,
.qty-input {
    width: 50px;
    text-align: center;
    border: none !important;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0 !important;
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown,
.deal-timer {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.countdown-item,
.timer-box {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 60px;
}

.countdown-item .number,
.timer-box .number {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.countdown-item .label,
.timer-box .label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ============================================
   WISHLIST PAGE
   ============================================ */
.wishlist-item,
.wishlist-product {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.wishlist-item:hover {
    box-shadow: var(--shadow-md);
}

.wishlist-item .remove-btn {
    color: var(--danger-color);
    background: var(--danger-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.wishlist-item .remove-btn:hover {
    background: var(--danger-color);
    color: var(--white);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-item,
.cart-product {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.cart-summary,
.order-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.cart-summary h5,
.order-summary h5 {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-summary .total,
.order-summary .total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-gallery,
.product-images {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.product-gallery .main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 15px;
}

.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
}

.product-gallery .thumbnail {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.product-gallery .thumbnail:hover,
.product-gallery .thumbnail.active {
    border-color: var(--primary-color);
}

.product-info-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.product-info-section .product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-info-section .product-price {
    font-size: 28px;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.checkout-section h5 {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.payment-method,
.shipping-method {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.payment-method:hover,
.shipping-method:hover,
.payment-method.selected,
.shipping-method.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state,
.no-results,
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-state img,
.empty-state i {
    font-size: 80px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1199px) {
    :root {
        --section-spacing: 35px;
    }
}

@media (max-width: 991px) {
    :root {
        --section-spacing: 30px;
    }

    .section-title h2,
    .section-header h2 {
        font-size: 24px;
    }

    /* Hide desktop nav, show mobile */
    .desktop-nav {
        display: none !important;
    }
}

@media (max-width: 767px) {
    :root {
        --section-spacing: 25px;
        --card-padding: 12px;
    }

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

    .product-title,
    .product-name {
        font-size: 13px;
    }

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

    .cart-summary,
    .order-summary {
        position: static;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .btn {
        padding: 10px 20px;
    }

    .product-card .add-to-cart {
        opacity: 1;
        transform: none;
    }

    .product-actions {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top,
#scrollToTop,
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-orange);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

html[dir="rtl"] .scroll-to-top,
html[dir="rtl"] #scrollToTop,
html[dir="rtl"] .back-to-top {
    right: auto;
    left: 20px;
}

.scroll-to-top.visible,
#scrollToTop.visible,
.back-to-top.visible,
.scroll-to-top.show,
#scrollToTop.show,
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover,
#scrollToTop:hover,
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-orange-lg);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease;
}

.animate-fadeInDown {
    animation: fadeInDown 0.5s ease;
}

.animate-scaleIn {
    animation: scaleIn 0.3s ease;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
    color: var(--primary-color) !important;
}

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

.bg-primary-gradient {
    background: var(--primary-gradient) !important;
}

.shadow-orange {
    box-shadow: var(--shadow-orange) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Line clamp utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
