:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 10%;

    --card: 0 0% 100%;
    --card-foreground: 0 0% 10%;

    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 10%;

    --primary: 346 90% 50%;
    --primary-foreground: 0 0% 100%;

    --secondary: 346 20% 96%;
    --secondary-foreground: 0 0% 10%;

    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 40%;

    --accent: 0 0% 96%;
    --accent-foreground: 0 0% 10%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --border: 0 0% 90%;
    --input: 0 0% 90%;
    --ring: 346 90% 50%;

    --radius: 0.5rem;

    --primary-color: #E11D48;
    --primary-light: rgba(225, 29, 72, 0.1);
    --text-color: #333333;
    --text-light: #757575;
    --bg-color: #ffffff;
    --bg-light: #fdf8f9;
    --bg-dark: #f5eeef;
    --border-color: #e8dde0;
    --white: #ffffff;
}

/* Base styles */
* {
    border-color: hsl(var(--border));
}

html, body {
    height: auto !important;
}

body {
    background-color: var(--white);
    color: hsl(var(--foreground));
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-feature-settings: "rlig" 1, "calt" 1;
    scroll-behavior: smooth;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2 !important;
    font-family: 'Playfair Display', 'DM Sans', serif;
}

::-webkit-scrollbar {
    width: 6px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

button {
    outline: none !important;
}

/* Badge style */
.badge-sale {
    background-color: rgb(239, 68, 68);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.625rem;
    position: absolute;
    top: 16px;
    left: 16px;
    border-radius: 0.25rem;
}

/* Category item hover */
.category-item {
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fade-in {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-gentle {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.8; }
}

.animate-fade-in    { animation: fade-in 0.3s ease-out; }
.animate-pulse-gentle { animation: pulse-gentle 2s ease-in-out infinite; }

/* Buttons */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-transform: capitalize;
    line-height: 1;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 500;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    outline: none;
    border-radius: 0.375rem;
    transition: all 300ms ease-in-out;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: hsl(var(--primary) / 0.8);
    border-color: hsl(var(--primary) / 0.8);
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: hsl(var(--primary) / 0.8);
    border-color: hsl(var(--primary) / 0.8);
    color: var(--white);
}

/* Inputs */
.input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    background-color: transparent;
    transition: border-color 0.2s ease;
}

.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--input));
    outline: none;
    background-color: transparent;
}

.form-input:focus {
    border-color: hsl(var(--primary));
}

select {
    padding: 8px 35px 8px 15px !important;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000000' d='M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: calc(100% - 15px) 50%;
}

/* Cards */
.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    overflow: hidden;
}

/* Swiper */
.swiper-slide {
    height: auto;
}

.swiper {
    padding: 0 10px;
    margin: 0 -10px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--white);
    transition: all 300ms ease-in-out 0s;
}

.swiper-button-next { right: 0; left: auto; }
.swiper-button-prev { left: 0; right: auto; }

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: hsl(var(--primary) / 0.85);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}

/* Header */
.site-header .logo-col,
.site-footer .footer-logo {
    max-width: 120px;
    width: 100%;
}

.site-header .menu-dropdown {
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease-in-out 0s;
    transform-origin: top;
    transform: scaleY(0);
}

.site-header .main-nav>.has-item:hover>.menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scaleY(100%);
}

.site-header .main-nav>.has-item>a:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 2px solid #374151;
    border-left: 2px solid #374151;
    transform: translateY(-50%) rotate(225deg);
    transition: all ease-in-out 0.5s;
    z-index: 1;
}

.site-header .main-nav>.has-item:hover>a:after {
    border-color: var(--primary-color);
    transform: rotate(45deg);
}

/* Cart Panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 24rem;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.cart-panel.open { transform: translateX(0); }

.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

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

/* Mobile Menu */
.mobile-dropdown-content {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.mobile-dropdown-content.show { display: block; }

#mobile-menu {
    width: 100%;
    max-width: 320px;
    right: 0;
}

#mobile-menu.show { transform: translateX(0); }

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.overlay.open { opacity: 1; visibility: visible; }

/* Search */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 13px 100px 13px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-light);
    transition: all 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.search-bar i {
    position: absolute;
    left: 16px;
    color: var(--text-light);
}

.search-bar button {
    position: absolute;
    right: 0.5rem;
    padding: 6px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Hero */
.home-banner-sec .home-arrow { position: unset; margin: 0; }

/* Fashion Hero */
.fashion-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Collection box */
.collection-box {
    min-height: 280px;
}

.collection-box .content-box {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    width: 100%;
    padding: 20px 16px 16px;
    color: white;
}

/* Testimonials */
.quote-icon {
    opacity: 0.1;
    font-size: 5rem;
    position: absolute;
    top: 0;
    right: 15px;
    z-index: 0;
}

/* Color variant swatch */
.color-variant-swatch .radio-buttons input:checked+label {
    -webkit-box-shadow: 0 0 0 1px #333, inset 0 0 0 2px #fff;
    box-shadow: 0 0 0 1px #333, inset 0 0 0 2px #fff;
    border: none;
}

/* Time counter */
.deal-timeline .counter:not(:last-of-type) .count:before,
.deal-timeline .counter:not(:last-of-type) .count:after {
    content: '';
    position: absolute;
    height: 3px;
    width: 3px;
    background-color: var(--primary-color);
    right: 2px;
    border-radius: 50%;
}

.deal-timeline .counter:not(:last-of-type) .count:before { top: 3px; }
.deal-timeline .counter:not(:last-of-type) .count:after  { bottom: 3px; }

/* Product card hover */
.product-card:not(:hover) .pro-btn-wrapper {
    transform: translateX(200%);
}

.pro-btn-wrapper>a svg path { fill: var(--white); }

/* Tab buttons */
.tab-button {
    transition: border-color 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.thumbnail-slider .swiper-slide-thumb-active .thumb-image {
    border-color: var(--primary-color);
}

/* Tab btn (homepage tabs) */
.tab-btn.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Product list page */
.checkbox input { height: 15px; width: 15px; cursor: pointer; }
.checkbox label { cursor: pointer; }

.view-toggle.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* List view */
@media (min-width: 640px) {
    .list-view .product-card {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding: 15px;
    }
    .list-view .product-image {
        max-width: 250px;
        width: 100%;
        object-fit: cover;
    }
    .list-view .product-card .product-image { border-radius: 8px; }
    .list-view .product-card .pro-btn-wrapper { transform: translate(0); }
    .list-view .product-card .product-content { flex: 1; gap: 20px; }
    .list-view .product-card .product-content>div { padding: 0; border: 0; }
    .list-view .product-card .product-content .btn-primary { width: auto; }
}

@media screen and (max-width: 767px) {
    body { font-size: 14px; }
}

/* Order track */
.order-track-page .account-info {
    box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08), 0 0 0 1px rgba(182, 186, 203, 0.1);
}
.order-track-page .profile-img { border: 5px solid #f5f5f5; }
.order-track-page #progressbar .active { color: var(--primary-color); }
.order-track-page #progressbar .active .progressbar-icon { background-color: var(--primary-color); }
.order-track-page #progressbar .active .progressbar-icon i { color: var(--white); }
.order-track-page #progressbar li { opacity: 0.8; }
.order-track-page #progressbar li.active { opacity: 1; }
.order-track-page #progressbar li:after {
    content: "";
    width: 100%; height: 2px;
    background: #d3d3d3;
    position: absolute; left: 0; top: 20px; z-index: 0;
}
.order-track-page #progressbar li.active:before,
.order-track-page #progressbar li.active:after { background: var(--primary-color); }
.order-track-page .progress-bar { background-color: var(--primary-color); }
.order-track-page .progressbar-wrapper {
    box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08), 0 0 0 1px rgba(182, 186, 203, 0.1);
}

/* Select2 */
.select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    background-color: #fff !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 20px !important;
    padding-left: 0 !important;
    color: #374151 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
}
.select2-dropdown {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06) !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem !important;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color) !important;
}

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

.wishlist-btn.active { color: #ff0000; }
.faq-col:last-of-type { margin-bottom: 0 !important; }

/* PDP Timer */
.pdp-timer .time-svg {
    width: 60px;
    background: var(--primary-color);
    border-radius: 0.375rem;
    border: 1px solid var(--primary-color);
}
.pdp-timer .time-counter { gap: 15px; }
.pdp-timer .time-counter #timer div {
    background-color: #d9d9d980;
    width: 60px;
    padding: 8px;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    color: var(--black);
}
#timer {
    display: flex;
    gap: 15px;
    font-size: 16px;
    text-transform: capitalize;
    font-weight: 500;
}
#timer span { color: var(--primary-color); }
.time-counter svg { height: 30px; width: 30px; }
.time-counter #timer span { margin-top: 5px; line-height: 1; }
.product_orignal_price {
    color: rgb(156 163 175);
    text-decoration-line: line-through;
}

@media screen and (max-width: 639px) {
    .pdp-timer .time-svg { width: 43px; }
    .pdp-timer .time-counter #timer div { width: 43px; padding: 5px; }
    .time-counter #timer span { font-size: 13px; }
    .pdp-timer .time-counter, #timer { gap: 10px; }
}

/* Fashion-specific home page styles */
.fashion-hero-section {
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.fashion-hero-section .home-banner-img {
    position: relative;
    min-height: 520px;
}

@media (min-width: 768px) {
    .fashion-hero-section .home-banner-img { min-height: 600px; }
}

/* Category card hover */
.category-swiper .card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px var(--primary-light);
}

/* Announcement bar */
.announcement-bar a {
    text-decoration: underline;
    font-weight: 600;
    color: white;
    margin-left: 8px;
}

/* Collection card overlay */
.collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.collection-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    pointer-events: none;
}

.collection-card .relative { z-index: 1; }

/* RTL CSS */
[dir="rtl"] .fas.fa-arrow-right,
[dir="rtl"] .site-header #form_logout svg { transform: scaleX(-1); }
[dir="rtl"] .home-banner-sec .home-arrow { transform: scaleX(1); }
[dir="rtl"] .swiper-button-next { right: 10px; left: auto; transform: scaleX(-1); }
[dir="rtl"] .swiper-button-prev { left: 10px; right: auto; transform: scaleX(-1); }
[dir="rtl"] #mobile-menu,
[dir="rtl"] .cart-panel { left: 0; right: auto; transform: translateX(-100%); }
[dir="rtl"] #mobile-menu.show,
[dir="rtl"] .cart-panel.open { transform: translate(0); }
[dir="rtl"] select { padding: 8px 15px 8px 35px !important; background-position: 15px 50%; }
[dir="rtl"] .quote-icon { right: auto; left: 15px; }
[dir="rtl"] #mobile-filter { right: 0; left: auto; }
@media screen and (max-width: 1023px) {
    [dir="rtl"] #mobile-filter.-translate-x-full { transform: translateX(100%); }
    [dir="rtl"] #mobile-filter { transform: translateX(0); }
}
[dir="rtl"] .pagination-wrapper svg,
[dir="rtl"] .details-btn svg,
[dir="rtl"] .continue-btn svg,
[dir="rtl"] .continue-btn i { transform: scaleX(-1); }
[dir="rtl"] .collection-card img { transform: scale(-1); }
[dir="rtl"] select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-right: 0 !important;
    padding-left: 8px !important;
    text-align: right;
}
