* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff4757;
    --primary-dark: #e8384f;
    --secondary: #2f3542;
    --accent: #ff6b81;
    --light: #f1f2f6;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --text-color: #2f3542;
    --text-muted: #666;
    --card-bg: #ffffff;
    --bg-color: #f1f2f6;
    --deals-bg: #fff5f5;
    --footer-bg: #1a1a2e;
    --border-color: #e1e1e1;
    --success: #27ae60;
    --success-light: #2ecc71;
    --gold: #ffd700;
    --star-color: #ffc107;
    --brand-orange: #f7971e;
    --primary-ghost: rgba(255, 71, 87, 0.1);
    --categories-bar-bg: rgba(255, 255, 255, 0.15);
    --categories-bar-border: rgba(255, 255, 255, 0.25);
}

body.dark {
    --primary: #ff6b81;
    --primary-dark: #ff4757;
    --secondary: #dfe4ea;
    --accent: #ff4757;
    --light: #1a1a2e;
    --white: #2f3542;
    --shadow: 0 2px 15px rgba(0,0,0,0.4);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.5);
    --text-color: #dfe4ea;
    --text-muted: #a4b0be;
    --card-bg: #2f3542;
    --bg-color: #1a1a2e;
    --deals-bg: #2f1a1e;
    --footer-bg: #0f0f1e;
    --border-color: #3d3d5c;
    --success: #2ecc71;
    --success-light: rgba(46, 204, 113, 0.15);
    --star-color: #f39c12;
    --primary-ghost: rgba(255, 71, 87, 0.15);
    --categories-bar-bg: rgba(47, 53, 66, 0.6);
    --categories-bar-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

/* Header */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, transform 0.3s;
}

.header-hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
    background: transparent;
}

.hero-banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo i {
    -webkit-text-fill-color: var(--primary);
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), #ff6b81);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 71, 87, 0.6);
        transform: scale(1.05);
    }
}

.search-bar {
    display: none;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--light);
    border-left: none;
    border-radius: 0 25px 25px 0;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-color);
}

.search-bar input:focus {
    border-color: var(--primary);
}

.search-bar button {
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 25px 0 0 25px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.admin-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.theme-toggle {
    background: var(--primary-ghost);
    border: none;
    color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(20deg);
}




.mobile-search-btn {
    display: none;
    background: var(--light);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    color: var(--text-color);
}

.mobile-search-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.mobile-search {
    display: none;
    padding: 10px 20px 15px;
    background: var(--card-bg);
}

.mobile-search.active {
    display: block;
}

.mobile-search-inner {
    display: flex;
    gap: 8px;
}

.mobile-search-inner input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--light);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

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

.mobile-search-inner button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

#mobileSearchSubmit {
    background: var(--primary);
    color: var(--white);
}

#mobileSearchSubmit:hover {
    background: var(--primary-dark);
}

#mobileSearchClose {
    background: var(--light);
    color: var(--text-color);
}

#mobileSearchClose:hover {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--card-bg);
    z-index: 1600;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--primary);
}

.mobile-menu-links {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: rgba(255, 71, 87, 0.08);
    color: var(--primary);
    border-right-color: var(--primary);
}

.mobile-menu-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--light);
    text-align: center;
}

.mobile-menu-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.mobile-menu-footer .social-links {
    justify-content: center;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    padding: 0;
    margin-top: 42px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero:hover .hero-overlay {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-coupons-top {
    position: relative;
    z-index: 5;
    overflow: hidden;
    padding: 10px 0;
    margin-top: -60px;
}

.countdown-bar {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(220, 20, 20, 0.7), rgba(255, 165, 0, 0.7));
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 28px;
    color: #fff;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    white-space: nowrap;
}

.countdown-label {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.95;
}

.countdown-digits {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
}

.cd-num {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cd-tag {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

.cd-sep {
    font-size: 20px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 2px;
    padding-bottom: 14px;
}

.hero-coupons-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: heroCouponScrollRight 25s linear infinite;
}

.hero-coupons-top:hover .hero-coupons-track {
    animation-play-state: paused;
}

@keyframes heroCouponScrollRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.hero-coupon-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.25), rgba(255, 200, 0, 0.25));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.hero-coupon-pill:hover {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.45), rgba(255, 200, 0, 0.45));
    border-color: rgba(255, 200, 0, 0.6);
    transform: scale(1.05);
}

.hero-coupon-pill.copied {
    animation: pillPop 0.5s ease;
}

@keyframes pillPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.hero-coupon-pill .copied-flash {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    opacity: 0;
    animation: flashIn 0.5s ease forwards;
}

@keyframes flashIn {
    0% { opacity: 0.6; }
    100% { opacity: 0; }
}

.hcp-amount {
    font-weight: 800;
    font-size: 15px;
    color: var(--accent);
}

.hcp-cond {
    font-size: 12px;
    opacity: 0.8;
}

.hcp-code {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hcp-icon {
    font-size: 12px;
    opacity: 0.7;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-title {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #ffd700, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-coupons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.hero-coupon {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
}

.hero-coupon:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: var(--gold);
    transform: translateY(-3px) scale(1.05);
}

.hero-coupon.copied {
    background: rgba(39, 174, 96, 0.4);
    border-color: var(--success);
}

.hero-coupon-amount {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
}

.hero-coupon-cond {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 3px 0;
}

.hero-coupon-code {
    display: block;
    background: var(--gold);
    color: #000;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    direction: ltr;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Categories Bar (in header) */
.categories-bar {
    background: var(--categories-bar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--categories-bar-border);
    border-top: 1px solid var(--categories-bar-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    position: sticky;
    top: 40px;
    z-index: 90;
    transition: background 0.3s, top 0.3s ease;
}

.header-hidden ~ .categories-bar,
.categories-bar.bar-top {
    top: 0;
}

.categories-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
    font-size: 0.85rem;
}

.category-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: var(--transition);
}

.category-btn i {
    font-size: 0.9rem;
}

.category-btn span {
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--primary);
    background: var(--primary-ghost);
    color: var(--primary);
}

.category-btn:hover i,
.category-btn.active i {
    color: var(--primary);
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.section-title i {
    color: var(--primary);
    margin-left: 10px;
}

/* Gradient Transition */
.gradient-transition {
    height: 60px;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.3), transparent);
    pointer-events: none;
    margin-bottom: -15px;
}

/* Promo Sign */
.promo-sign {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.promo-sign-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 35px;
    background: linear-gradient(135deg, var(--primary), #ff6b81, var(--brand-orange));
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(255, 71, 87, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: visible;
}

.promo-sign-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.promo-sign-inner:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 35px rgba(255, 71, 87, 0.45);
}

.promo-text {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    letter-spacing: 0;
    position: relative;
    z-index: 1;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.promo-sparkle {
    position: absolute;
    color: #ffd700;
    font-size: 0.65rem;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
    animation: sparkleFloat 2s ease-in-out infinite;
    line-height: 1;
}

.promo-sparkle.s1 { top: -10px; right: 20px; animation-delay: 0s; }
.promo-sparkle.s2 { top: -10px; left: 20px; animation-delay: 0.5s; }
.promo-sparkle.s3 { bottom: -10px; right: 30px; animation-delay: 1s; }
.promo-sparkle.s4 { bottom: -10px; left: 30px; animation-delay: 1.5s; }

@keyframes sparkleFloat {
    0%, 100% { opacity: 0.3; transform: scale(0.7) translateY(0); }
    50% { opacity: 1; transform: scale(1.3) translateY(-5px); }
}

/* Products Search */
.products-search {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0 8px 0 18px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    position: relative;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.12), 0 4px 20px rgba(255, 71, 87, 0.08);
    transform: scale(1.02);
}

.search-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
    flex-shrink: 0;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--primary);
}

.search-input-wrapper input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.85rem;
}

.search-clear:hover {
    background: var(--primary-ghost);
    color: var(--primary);
}

@keyframes searchPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.3); }
    70% { box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.search-input-wrapper.searching {
    animation: searchPulse 0.8s ease-out;
    border-color: var(--success);
}

/* Products */
.products {
    padding: 10px 0 60px;
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 17px;
    background: linear-gradient(135deg, #ff4757, #ff6b81, #ffc048, #ff4757);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::before {
    opacity: 0.35;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.25), 0 4px 15px rgba(255, 192, 72, 0.2);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--card-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow);
    color: var(--text-color);
}

.product-wishlist:hover,
.product-wishlist.active {
    background: var(--primary);
    color: var(--white);
}

.product-wishlist i {
    font-size: 1.1rem;
}

.product-info {
    padding: 12px 15px 15px;
}

.product-category {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.product-rating i {
    color: var(--star-color);
}

.product-rating .far {
    color: var(--text-muted);
}

.product-rating .fa-star-half-alt {
    color: var(--star-color);
}

.product-rating span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
}

.current-price-dzd {
    font-size: 1rem;
    font-weight: bold;
    color: var(--success);
    background: var(--success-light);
    padding: 2px 8px;
    border-radius: 5px;
}

.modal-price-dzd {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--success);
    background: var(--success-light);
    padding: 3px 10px;
    border-radius: 5px;
    margin: 0 8px;
}

.original-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount {
    background: var(--primary-ghost);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-btn {
    width: 100%;
    padding: 12px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.product-btn-buy {
    background: linear-gradient(135deg, var(--brand-orange), var(--primary));
    color: #fff;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.product-btn-buy:hover {
    background: linear-gradient(135deg, var(--primary), var(--brand-orange));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

/* Ad Banner */
.ad-banner {
    padding: 10px 0;
    background: var(--bg-color);
    transition: background 0.3s;
    overflow: visible;
}

.ad-banner > * {
    overflow: visible !important;
}

.ad-spot {
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.ad-spot iframe,
.ad-spot script,
.ad-spot div {
    max-width: 100%;
}

.ad-banner-inner {
    background: var(--card-bg);
    border: 2px dashed var(--light);
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.ad-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--light);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-content {
    flex: 1;
}

.ad-content h2 {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ad-content p {
    color: var(--text-muted);
    opacity: 0.7;
    font-size: 0.95rem;
}

.ad-placeholder {
    width: 200px;
    height: 120px;
    background: var(--bg-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.3;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 15px 0 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 6px;
    color: var(--white);
    font-size: 0.7rem;
}

.footer-col h3 i {
    color: var(--primary);
    font-size: 0.65rem;
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.6rem;
    margin: 0;
}

.footer-col a {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 3px;
    transition: var(--transition);
    font-size: 0.6rem;
}

.footer-col a:hover {
    color: var(--primary);
    padding-right: 3px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 0.6rem;
}

.social-links a:hover {
    background: var(--primary);
    padding-right: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.55rem;
    margin: 0;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transition: background 0.3s;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 10;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.modal-image img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    max-height: 400px;
}

.modal-info h2 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.modal-rating {
    margin-bottom: 15px;
}

.modal-rating i {
    color: var(--star-color);
}

.modal-rating span {
    color: var(--text-muted);
    margin-left: 10px;
}

.modal-price {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 20px;
}

.modal-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn-deal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
}

.btn-deal:hover {
    background: var(--primary-dark);
}

.affiliate-disclosure {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Coupon Modal */
.coupon-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.coupon-modal.active {
    display: flex;
}

.coupon-modal-content {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    padding: 35px 28px;
    text-align: center;
    position: relative;
    animation: couponPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.coupon-modal-content:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(255, 71, 87, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes couponPop {
    0% {
        transform: scale(0.7) translateY(30px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.coupon-modal-close {
    position: absolute;
    top: 12px;
    left: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.4rem;
    cursor: pointer;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.coupon-modal-close:hover {
    background: rgba(255, 71, 87, 0.4);
    transform: rotate(90deg);
}

.coupon-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.8), rgba(255, 192, 72, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.35);
    animation: iconPulse 2s ease-in-out infinite;
}

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

.coupon-modal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #fff;
}

.coupon-modal-content > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.coupon-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 192, 72, 0.6);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    gap: 12px;
    transition: var(--transition);
}

.coupon-code-box:hover {
    border-color: rgba(255, 71, 87, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

.coupon-code-box span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffc048;
    letter-spacing: 3px;
    direction: ltr;
}

.coupon-copy-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.8), rgba(255, 107, 129, 0.8));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.coupon-copy-btn:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 1), rgba(255, 107, 129, 1));
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.coupon-copy-btn.copied {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.8), rgba(38, 166, 91, 0.8));
}

.coupon-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.coupon-go-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 192, 72, 0.9), rgba(255, 107, 47, 0.9));
    color: #fff;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.coupon-go-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 192, 72, 0.4);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-content {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    .container {
        padding: 0 12px;
    }

    .search-bar {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-search-btn {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        padding: 4px 12px;
    }

    .logo-img {
        height: 26px;
    }

    .theme-toggle,
    .mobile-search-btn {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .mobile-menu-btn {
        font-size: 1.3rem;
    }

    /* Hero */
    .hero {
        height: 380px;
        margin-top: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .countdown-bar {
        gap: 8px;
        padding: 8px 16px;
    }

    .countdown-label {
        font-size: 11px;
    }

    .cd-unit {
        min-width: 32px;
    }

    .cd-num {
        font-size: 17px;
    }

    .cd-tag {
        font-size: 9px;
    }

    .cd-sep {
        font-size: 16px;
    }

    /* Categories Bar */
    .categories-bar {
        top: 40px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories-bar::-webkit-scrollbar {
        display: none;
    }

    .categories-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 8px;
        gap: 6px;
    }

    .category-btn {
        flex-shrink: 0;
        padding: 5px 12px;
        font-size: 0.75rem;
        border-radius: 20px;
    }

    .category-btn i {
        font-size: 0.8rem;
    }

    /* Products Grid */
    .products {
        padding: 8px 0 40px;
    }

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

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 8px 10px 10px;
    }

    .product-category {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .product-title {
        font-size: 0.85rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .product-rating {
        margin-bottom: 6px;
        gap: 3px;
    }

    .product-rating i {
        font-size: 0.7rem;
    }

    .product-rating span {
        font-size: 0.7rem;
    }

    .product-price {
        gap: 5px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .current-price {
        font-size: 1rem;
    }

    .current-price-dzd {
        font-size: 0.7rem;
        padding: 1px 4px;
    }

    .original-price {
        font-size: 0.75rem;
    }

    .discount {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    .product-btn {
        padding: 8px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    /* Promo Sign */
    .promo-sign-inner {
        padding: 8px 24px;
    }

    .promo-text {
        font-size: 1.1rem;
    }

    /* Search */
    .products-search {
        margin-bottom: 20px;
    }

    .search-input-wrapper {
        max-width: 100%;
    }

    /* Ad Banner */
    .ad-banner {
        padding: 20px 0;
    }

    .ad-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }

    .ad-placeholder {
        width: 120px;
        height: 80px;
        font-size: 2rem;
    }

    /* Coupon Modal */
    .coupon-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .coupon-modal-content {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        padding: 28px 20px 20px;
        max-height: 85vh;
        overflow-y: auto;
        animation: couponSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes couponSlideUp {
        0% { transform: translateY(100%); opacity: 0; }
        100% { transform: translateY(0); opacity: 1; }
    }

    .coupon-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        margin-bottom: 14px;
    }

    .coupon-modal-content h3 {
        font-size: 1.1rem;
    }

    .coupon-code-box {
        padding: 10px 14px;
        margin-bottom: 14px;
    }

    .coupon-code-box span {
        font-size: 1.1rem;
    }

    .coupon-go-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Product Modal */
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        animation: couponSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .modal-close {
        top: 10px;
        left: 16px;
        font-size: 1.5rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 16px;
    }

    .modal-image img {
        max-height: 250px;
    }

    .modal-info h2 {
        font-size: 1.1rem;
    }

    .modal-price {
        font-size: 1.4rem;
    }

    /* Coupon Section */
    .coupons-section {
        padding: 16px 0;
    }

    .coupons-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .coupon-pill {
        padding: 8px 12px;
        gap: 8px;
    }

    .coupon-pill-amount {
        font-size: 0.95rem;
    }

    .coupon-pill-code {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    /* Back to Top */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        left: 20px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .gradient-transition {
        height: 30px;
    }

    /* Hero Coupons */
    .hero-coupons-top {
        margin-top: -40px;
        padding: 6px 0;
    }

    .hero-coupon-pill {
        padding: 6px 12px;
        font-size: 11px;
        gap: 4px;
    }

    .hcp-amount {
        font-size: 13px;
    }

    .hcp-cond {
        font-size: 10px;
    }

    .hcp-code {
        font-size: 10px;
        padding: 1px 6px;
    }

    /* Footer */
    .footer {
        padding: 12px 0 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero {
        height: 320px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .btn-primary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .products-grid {
        gap: 8px;
    }

    .product-image {
        height: 130px;
    }

    .product-info {
        padding: 6px 8px 8px;
    }

    .product-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .current-price {
        font-size: 0.9rem;
    }

    .current-price-dzd {
        font-size: 0.65rem;
    }

    .product-btn {
        padding: 7px;
        font-size: 0.75rem;
    }

    .countdown-bar {
        gap: 5px;
        padding: 6px 12px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .cd-num {
        font-size: 14px;
    }

    .cd-tag {
        font-size: 8px;
    }

    .cd-sep {
        font-size: 13px;
    }

    .mobile-menu-panel {
        width: 80vw;
        right: -80vw;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 16px 12px;
        gap: 14px;
    }

    .modal-image img {
        max-height: 200px;
        border-radius: 12px;
    }

    .modal-info h2 {
        font-size: 1rem;
    }

    .modal-price {
        font-size: 1.2rem;
    }

    .modal-description {
        font-size: 0.85rem;
    }

    .coupon-modal-content {
        padding: 24px 16px 16px;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .promo-sign-inner {
        padding: 6px 18px;
    }

    .promo-text {
        font-size: 1rem;
    }

    .hero-coupons-top {
        margin-top: -30px;
    }
}

/* Touch-friendly: larger tap targets on mobile */
@media (hover: none) and (pointer: coarse) {
    .category-btn {
        min-height: 40px;
    }

    .product-btn {
        min-height: 44px;
    }

    .theme-toggle,
    .mobile-search-btn,
    .mobile-menu-btn,
    .admin-link {
        min-width: 40px;
        min-height: 40px;
    }

    .back-to-top {
        min-width: 48px;
        min-height: 48px;
    }

    .hero-coupon-pill {
        min-height: 38px;
    }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 260px;
        margin-top: 36px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .countdown-bar {
        bottom: 30px;
        padding: 6px 14px;
    }
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Coupons Section */
.coupons-section {
    padding: 30px 0;
    background: linear-gradient(135deg, var(--card-bg), var(--bg-color));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.coupons-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupons-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--card-bg);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.coupons-arrow:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.coupons-scroll {
    flex: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.coupons-scroll::-webkit-scrollbar {
    display: none;
}

.coupon-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 2px dashed var(--primary);
    border-radius: 50px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.coupon-pill:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
    border-color: transparent;
}

.coupon-pill:hover .coupon-pill-amount,
.coupon-pill:hover .coupon-pill-cond,
.coupon-pill:hover .coupon-pill-code {
    color: #fff;
}

.coupon-pill:hover .coupon-pill-copy {
    color: rgba(255,255,255,0.8);
}

.coupon-pill.copied {
    background: linear-gradient(135deg, var(--success), var(--success-light));
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.coupon-pill.copied .coupon-pill-amount,
.coupon-pill.copied .coupon-pill-cond,
.coupon-pill.copied .coupon-pill-code,
.coupon-pill.copied .coupon-pill-copy {
    color: #fff;
}

.coupon-pill-amount {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
}

.coupon-pill-cond {
    font-size: 0.7rem;
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
    padding-left: 10px;
}

.coupon-pill-code {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-color);
    direction: ltr;
    background: var(--bg-color);
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.coupon-pill-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 2px;
}
