* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--client-font-family, 'Tajawal', 'Segoe UI', sans-serif);
}

html {
    font-size: var(--client-font-size, 16px);
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --page-bg: #f8f9fa;
    --footer-bg: #1a1a1a;
    --footer-heading-color: #ffffff;
}

body {
    background: var(--page-bg);
    overflow-x: hidden;
}

body.maintenance-active {
    overflow: hidden;
}

.maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.maintenance-overlay.hidden {
    display: none;
}

.maintenance-box {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease;
}

.maintenance-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
}

.maintenance-box h1 {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 16px;
    font-weight: 800;
}

.maintenance-box p {
    font-size: 1.1rem;
    color: #636e72;
    line-height: 1.8;
}

.announcement-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.announcement-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.announcement-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.35s ease;
}

.announcement-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f2f6;
    color: #636e72;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.announcement-close:hover {
    background: #c0392b;
    color: #fff;
}

.announcement-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 16px;
    padding-left: 40px;
    text-align: center;
}

.announcement-title.hidden {
    display: none;
}

.announcement-text {
    font-size: 1.05rem;
    color: #636e72;
    line-height: 1.85;
    text-align: center;
}

.announcement-image-wrap {
    text-align: center;
}

.announcement-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    object-fit: contain;
}

/* عرض البريد والأرقام اللاتينية بشكل صحيح داخل واجهة RTL */
input[type="email"],
input[type="tel"] {
    direction: ltr;
    text-align: right;
}

a[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.bidi-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.05;
}

.logo {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.current-price { color: var(--primary); }

.search-box button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.add-to-cart {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.floating-cart {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.category-card i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.section-header h2::after {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

body.products-cols-2 .products-grid { grid-template-columns: repeat(2, 1fr); }
body.products-cols-3 .products-grid { grid-template-columns: repeat(3, 1fr); }
body.products-cols-4 .products-grid { grid-template-columns: repeat(4, 1fr); }
body.products-cols-5 .products-grid { grid-template-columns: repeat(5, 1fr); }
body.products-cols-6 .products-grid { grid-template-columns: repeat(6, 1fr); }

body.categories-cols-2 .categories-grid { grid-template-columns: repeat(2, 1fr); }
body.categories-cols-3 .categories-grid { grid-template-columns: repeat(3, 1fr); }
body.categories-cols-4 .categories-grid { grid-template-columns: repeat(4, 1fr); }

body.hide-hero .hero { display: none; }
body.hide-categories .home-categories-section { display: none; }

/* ── شكل العرض: كلاسيكي (افتراضي) ── */
.layout-classic .product-card { border-radius: 20px; }
.layout-classic .product-image,
.layout-classic .product-image .product-img { border-radius: 16px; }
.layout-classic .add-to-cart { border-radius: 12px; }
.layout-classic .category-card { border-radius: 16px; }
.layout-classic .search-box { border-radius: 50px; }
.layout-classic .search-box button { border-radius: 50px; }

/* ── عصري مسطح ── */
.layout-modern .navbar {
    background: #fff;
    backdrop-filter: none;
    box-shadow: 0 1px 0 #e9ecef;
}
.layout-modern .product-card {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.layout-modern .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.layout-modern .product-image,
.layout-modern .product-image .product-img { border-radius: 4px; }
.layout-modern .add-to-cart {
    border-radius: 0;
    background: var(--primary);
}
.layout-modern .search-box button {
    border-radius: 4px;
    background: var(--primary);
}
.layout-modern .category-card { border-radius: 4px; }
.layout-modern .category-card i { border-radius: 4px; }
.layout-modern .floating-cart { border-radius: 4px; }

/* ── ناعم ── */
.layout-soft .product-card { border-radius: 28px; }
.layout-soft .product-image,
.layout-soft .product-image .product-img { border-radius: 22px; }
.layout-soft .add-to-cart { border-radius: 50px; padding: 14px 24px; }
.layout-soft .category-card { border-radius: 24px; }
.layout-soft .search-box { border-radius: 50px; }
.layout-soft .search-box button { border-radius: 50px; }
.layout-soft .category-card i { border-radius: 50%; }

/* ── جريء ── */
.layout-bold .product-card {
    border-radius: 8px;
    border: 3px solid var(--primary);
    box-shadow: 6px 6px 0 var(--primary);
}
.layout-bold .product-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--primary);
}
.layout-bold .product-image,
.layout-bold .product-image .product-img { border-radius: 4px; }
.layout-bold .add-to-cart {
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.layout-bold .category-card {
    border: 2px solid var(--primary);
    border-radius: 8px;
}
.layout-bold .nav-links a { font-weight: 800; }

/* ── بسيط ── */
.layout-minimal .product-card {
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #e9ecef;
}
.layout-minimal .product-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.layout-minimal .product-card::before { display: none; }
.layout-minimal .add-to-cart {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
}
.layout-minimal .add-to-cart:hover { background: var(--primary); color: #fff; }
.layout-minimal .search-box button {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
}
.layout-minimal .category-card {
    box-shadow: none;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.layout-minimal .floating-cart {
    background: var(--primary);
    border-radius: 8px;
}

/* ── أنيق أفقي ── */
.layout-elegant .products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
}
.layout-elegant .product-card {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 20px;
    align-items: center;
    border-radius: 12px;
    padding: 16px 20px;
}
.layout-elegant .product-image {
    grid-row: 1 / 3;
    height: 120px;
    width: 160px;
    border-radius: 10px;
}
.layout-elegant .product-image .product-img { border-radius: 10px; }
.layout-elegant .product-info { grid-column: 2; }
.layout-elegant .product-actions {
    grid-column: 3;
    grid-row: 1 / 3;
    flex-direction: column;
    align-self: center;
    margin-top: 0;
}
.layout-elegant .product-actions .add-to-cart {
    width: 75%;
    flex: 0 0 75%;
    white-space: nowrap;
}
.layout-elegant .qty-control {
    width: 25%;
    flex: 0 0 25%;
    justify-content: center;
}
.layout-elegant .product-card:hover { transform: translateX(-4px); }

/* ── عرض كبير ── */
.layout-showcase .product-image { height: 300px; }
.layout-showcase .product-card {
    border-radius: 24px;
    padding: 24px;
}
.layout-showcase .product-image,
.layout-showcase .product-image .product-img { border-radius: 20px; }
.layout-showcase .product-name { font-size: 1.2rem; }
.layout-showcase .current-price { font-size: 1.4rem; }
.layout-showcase .add-to-cart {
    border-radius: 14px;
    padding: 16px;
    font-size: 1rem;
}
.layout-showcase .hero h1 { font-size: 4rem; }
.layout-showcase .category-card { border-radius: 20px; padding: 24px; }

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.8s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
    cursor: pointer;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #2d3436;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); transform: translateY(-2px); }

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

.nav-links a.active::after {
    width: 100%;
}

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

.auth-nav-btn {
    border: 2px solid #e9ecef;
    background: #fff;
    color: #2d3436;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    white-space: nowrap;
}

.auth-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.auth-nav-btn.logged-in {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
}

.auth-modal {
    max-width: 420px;
    width: calc(100% - 32px);
}

.auth-modal h3 {
    margin-bottom: 20px;
    color: #2d3436;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #636e72;
    margin-bottom: 6px;
}

.auth-field input,
.auth-field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: var(--primary);
}

.auth-submit-btn {
    margin-top: 6px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.auth-switch {
    text-align: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f2f6;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.auth-msg {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-msg.hidden { display: none; }

.auth-msg-error {
    background: #fde8e8;
    color: #c0392b;
}

.auth-msg-warning {
    background: #fff3cd;
    color: #856404;
}

.auth-otp-hint {
    text-align: center;
    color: #636e72;
    line-height: 1.7;
    margin: 0 0 16px;
    font-size: 0.92rem;
}

.auth-otp-input {
    text-align: center !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.35em;
    font-weight: 700;
}

.auth-otp-timer {
    color: #636e72;
    font-size: 0.85rem;
    margin-right: 6px;
}

.auth-msg-success {
    background: #d4edda;
    color: #155724;
}

.auth-nav-wrap {
    position: relative;
}

.user-menu-chevron {
    font-size: 0.65rem;
    opacity: 0.85;
    margin-right: 2px;
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    border: 1px solid #eef0f4;
    padding: 8px;
    z-index: 1200;
    animation: fadeInUp 0.2s ease;
}

.user-menu.hidden {
    display: none;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3436;
    cursor: pointer;
    text-align: right;
    transition: background 0.2s, color 0.2s;
}

.user-menu-item:hover {
    background: #f4f6fb;
    color: var(--primary);
}

.user-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.user-menu-logout {
    margin-top: 4px;
    border-top: 1px solid #f1f2f6;
    border-radius: 0 0 10px 10px;
    padding-top: 14px;
    color: #c0392b;
}

.user-menu-logout i {
    color: #c0392b;
}

.user-menu-logout:hover {
    background: #fde8e8;
    color: #c0392b;
}

.account-modal,
.support-modal {
    max-width: 440px;
    width: calc(100% - 32px);
}

.account-modal h3,
.support-modal h3 {
    margin-bottom: 20px;
    color: #2d3436;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #f8f9fc;
    border-radius: 12px;
    border: 1px solid #eef0f4;
}

.account-info-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-info-label i {
    color: var(--primary);
}

.account-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3436;
    word-break: break-word;
}

.support-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: #f8f9fc;
    border-radius: 12px;
    border: 1px solid #eef0f4;
}

.support-contact-row > i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 2px;
}

.support-contact-row strong {
    display: block;
    font-size: 0.82rem;
    color: #636e72;
    margin-bottom: 4px;
}

.support-contact-row a,
.support-contact-row span {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3436;
    text-decoration: none;
}

.support-contact-row a:hover {
    color: var(--primary);
}

.support-phone-row {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-color: rgba(102, 126, 234, 0.2);
}

.support-phone-row a {
    font-size: 1.15rem;
    color: var(--primary);
}

.support-empty {
    text-align: center;
    color: #636e72;
    padding: 20px 10px;
    line-height: 1.7;
}

.cart-empty {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.cart-empty i {
    font-size: 3rem;
    color: #dfe6e9;
    margin-bottom: 16px;
}

.cart-empty p {
    color: #636e72;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.cart-item-icon {
    font-size: 1.5rem;
    color: #b2bec3;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #2d3436;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fc;
    border-radius: 10px;
    padding: 4px;
}

.cart-item-qty button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
    transition: background 0.2s;
}

.cart-item-qty button:hover {
    background: var(--primary);
    color: #fff;
}

.cart-qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
}

.cart-item-total {
    font-weight: 800;
    color: #2d3436;
    white-space: nowrap;
}

.cart-item-remove {
    border: none;
    background: #fde8e8;
    color: #c0392b;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-item-remove:hover {
    background: #c0392b;
    color: #fff;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 16px;
    font-size: 1.2rem;
}

.cart-checkout-summary {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f2f6;
    color: #636e72;
    font-size: 1rem;
}

.cart-summary-row span:last-child,
.cart-summary-row strong:last-child {
    color: #2d3436;
    font-weight: 700;
}

.cart-summary-grand {
    border-bottom: none;
    padding-top: 14px;
    margin-top: 4px;
    font-size: 1.15rem;
    color: #2d3436;
}

.cart-summary-grand strong {
    color: var(--primary);
    font-size: 1.25rem;
}

.cart-checkout-btn {
    margin-top: 8px;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(102, 126, 234, 0.4);
}

.cart-order-success {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.cart-success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.cart-order-success h3 {
    font-size: 1.6rem;
    color: #2d3436;
    margin-bottom: 12px;
}

.cart-order-success p {
    color: #636e72;
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.cart-order-number {
    font-size: 1.15rem;
    color: #2d3436 !important;
    margin-bottom: 8px !important;
}

.cart-order-number strong {
    color: var(--primary);
    font-size: 1.35rem;
}

.cart-area-tabs {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.cart-area-tab {
    border: 2px solid #e9ecef;
    background: #fff;
    color: #636e72;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.cart-area-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cart-area-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
}

.cart-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cart-success-secondary {
    background: #fff !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.client-order-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.client-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f2f6;
    flex-wrap: wrap;
}

.client-order-id {
    font-size: 1.15rem;
    color: #2d3436;
    margin-left: 10px;
}

.client-order-status {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.order-status-new { background: #fff3cd; color: #856404; }
.order-status-processing { background: #d1ecf1; color: #0c5460; }
.order-status-delivered { background: #d4edda; color: #155724; }
.order-status-cancelled { background: #fde8e8; color: #c0392b; }

.client-order-date {
    font-size: 0.85rem;
    color: #636e72;
}

.client-order-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.client-order-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fc;
    border-radius: 10px;
    font-size: 0.95rem;
}

.client-order-item-name {
    font-weight: 700;
    color: #2d3436;
}

.client-order-item-qty {
    color: #636e72;
    white-space: nowrap;
}

.client-order-item-total {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.client-order-summary {
    border-top: 1px solid #f1f2f6;
    padding-top: 14px;
    width: 100%;
}

.client-order-summary-row {
    display: grid;
    gap: 10px 16px;
    padding: 6px 0;
}

.client-order-summary-row--main {
    grid-template-columns: 1fr 1fr 1fr;
}

.client-order-summary-cell {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    color: #636e72;
    font-size: 14px;
}

.client-order-summary-cell.client-order-summary-total {
    font-size: 1.05rem;
    color: #2d3436;
    font-weight: 700;
}

.client-order-summary-cell.client-order-summary-total strong:last-child {
    color: var(--primary);
}

@media (max-width: 640px) {
    .client-order-summary-row--main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .client-order-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.order-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px dashed #dfe6e9;
}

.order-timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #636e72;
}

.order-timeline-step.active {
    color: var(--primary);
    font-weight: 600;
}

.order-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dfe6e9;
    margin-top: 4px;
    flex-shrink: 0;
}

.order-timeline-step.active .order-timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.order-timeline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.client-order-notes {
    background: #fff9e6;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #6c5a00;
}

.cart-notes-field {
    margin: 12px 0;
    text-align: right;
}

.cart-notes-field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #636e72;
}

.cart-notes-field textarea {
    width: 100%;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    resize: vertical;
}

.site-banners-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #eee;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.site-banner-item {
    flex: 0 0 auto;
    width: min(92vw, 400px);
    aspect-ratio: 3 / 1;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #f8f9fa;
}

.site-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .user-menu {
        left: auto;
        right: 0;
        min-width: 200px;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
    }

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

    .cart-item-qty,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
    }

    .cart-item-qty {
        justify-self: start;
    }

    .cart-item-total {
        justify-self: end;
    }

    .cart-item-remove {
        position: absolute;
        left: 12px;
        top: 12px;
    }

    .cart-item {
        position: relative;
        padding-top: 44px;
    }
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.cart-icon:hover { transform: scale(1.2) rotate(-10deg); }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero {
    padding: 60px 40px;
    text-align: center;
    animation: fadeInUp 1s ease;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #636e72;
    margin-bottom: 30px;
}

.search-box {
    display: inline-flex;
    background: white;
    padding: 8px 8px 8px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.search-box input {
    border: none;
    padding: 10px;
    width: 300px;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.products-section { padding: 40px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    color: #2d3436;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

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

.product-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.5s;
}

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

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #dfe6e9, #f1f2f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #636e72;
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

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

.product-image .product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
}

.product-image .discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-info { margin-top: 15px; }

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 5px;
}

.product-category {
    font-size: 0.8rem;
    color: #636e72;
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.85rem;
    color: #636e72;
    line-height: 1.55;
    margin: 6px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.2s;
}

.product-description:hover {
    color: var(--primary);
}

.product-desc-modal-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 16px;
}

.product-detail-modal-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.product-detail-modal-image {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #dfe6e9, #f1f2f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-modal-placeholder {
    font-size: 2.5rem;
    color: #b2bec3;
}

.product-detail-modal-info {
    flex: 1;
    min-width: 0;
}

.product-detail-modal-info h3 {
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
}

.product-detail-modal-info .search-suggestion-category {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.product-detail-order {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-detail-order .qty-control {
    flex: 0 0 auto;
}

.product-detail-order .add-to-cart {
    flex: 1;
    margin-top: 0;
}

.product-detail-stock {
    margin: 0 0 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-detail-stock.out { color: #d63031; }
.product-detail-stock.low { color: #e17055; }

@media (max-width: 768px) {
    .product-detail-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-detail-modal-image {
        width: 100%;
        max-width: 220px;
        height: 180px;
    }

    .product-detail-order {
        flex-direction: column;
    }

    .product-detail-order .add-to-cart {
        width: 100%;
    }
}

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

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

.price-login-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px dashed rgba(102, 126, 234, 0.45);
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.06);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.price-login-hint:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: var(--primary);
}

.product-desc-modal-price .price-login-hint {
    font-size: 1rem;
}

.old-price {
    font-size: 0.9rem;
    color: #b2bec3;
    text-decoration: line-through;
}

.add-to-cart {
    flex: 0 0 75%;
    width: 75%;
    min-width: 0;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.product-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.share-product-btn {
    flex: 0 0 44px;
    width: 44px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    color: #667eea;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.share-product-btn:hover {
    background: #f4f6ff;
    border-color: #667eea;
}

.product-actions .add-to-cart {
    flex: 1;
}

.product-share-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    padding: 18px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-share-menu.hidden { display: none; }

.product-share-menu-title {
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 4px;
}

.product-share-menu button,
.product-share-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.product-share-menu button:hover,
.product-share-chip:hover {
    background: #f8f9fc;
}

.product-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.product-card.product-highlight {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.45);
    transform: scale(1.01);
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-desc-empty {
    color: #636e72;
    font-size: 0.95rem;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    flex: 0 0 25%;
    width: 25%;
    min-width: 0;
}

.qty-btn {
    width: 28px;
    min-width: 24px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    background: #f8f9fa;
    color: #2d3436;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover { background: #e9ecef; }

.qty-input {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 44px;
    border: none;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #2d3436;
    outline: none;
    -moz-appearance: textfield;
}

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

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.add-to-cart.added { background: #00b894 !important; }

.categories-section {
    padding: 40px;
    background: white;
    margin: 20px 0;
}

.home-showcase-section {
    display: block;
}

.home-showcase-section .showcase-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.showcase-view-all {
    background: none;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.showcase-view-all:hover {
    text-decoration: underline;
}

.showcase-carousel {
    position: relative;
}

.showcase-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.showcase-viewport::-webkit-scrollbar {
    display: none;
}

.showcase-products-track {
    display: flex;
    gap: 30px;
    padding: 4px 0;
}

.showcase-products-track .product-card {
    flex: 0 0 calc((100% - (var(--showcase-visible, 3) - 1) * 30px) / var(--showcase-visible, 3));
    max-width: calc((100% - (var(--showcase-visible, 3) - 1) * 30px) / var(--showcase-visible, 3));
    scroll-snap-align: start;
    min-width: 0;
}

.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e0;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.showcase-dot.active {
    width: 28px;
    border-radius: 999px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .showcase-products-track {
        gap: 16px;
    }

    .showcase-products-track .product-card {
        flex: 0 0 calc((100% - (var(--showcase-visible, 2) - 1) * 16px) / var(--showcase-visible, 2));
        max-width: calc((100% - (var(--showcase-visible, 2) - 1) * 16px) / var(--showcase-visible, 2));
    }
}

.browse-section {
    padding: 30px 40px 50px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

.browse-header {
    margin-bottom: 28px;
}

.browse-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #2d3436;
    margin: 12px 0 18px;
    position: relative;
}

.browse-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.browse-desc {
    color: #636e72;
    font-size: 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.breadcrumb-sep {
    color: #b2bec3;
}

.breadcrumb-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.breadcrumb-btn:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    color: #636e72;
    font-weight: 600;
}

.category-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    max-width: 520px;
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.category-search-box.focused {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.category-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    color: #2d3436;
}

.category-search-box button {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 12px 22px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.category-search-box button:hover {
    transform: scale(1.03);
}

#viewProducts .products-grid {
    margin-top: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: linear-gradient(135deg, #f8f9fa, #f1f2f6);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s;
    cursor: pointer;
}

.category-card:hover,
.category-card.active {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.category-card.active {
    border: 2px solid var(--primary);
}

.category-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: block;
}

.category-card h4 {
    color: #2d3436;
    font-weight: 700;
}

.category-card .count {
    font-size: 0.8rem;
    color: #636e72;
}

.footer {
    display: none;
}

/* ── شريط المميزات ── */
.features-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    border-left: 1px solid #2a2a2a;
}

.feature-item:first-child { border-left: none; }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-text strong {
    color: #fff;
    font-size: 1rem;
}

.feature-text span {
    color: #aaa;
    font-size: 0.85rem;
}

/* ── الفوتر الرئيسي ── */
.site-footer {
    background: var(--footer-bg);
    color: #ccc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px 40px;
}

.footer-col h3 {
    color: var(--footer-heading-color);
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.footer-about-text {
    line-height: 1.9;
    font-size: 0.95rem;
    color: #bbb;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-link-btn {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-align: right;
}

.footer-links a:hover,
.footer-link-btn:hover { color: var(--primary); }

/* ── نافذة نص الخدمات ── */
.service-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 920px;
    width: 95%;
    min-height: 320px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 44px 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease;
}

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

.service-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    border: none;
    background: #f1f2f6;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #636e72;
    transition: background 0.2s;
}

.service-modal-close:hover { background: #dfe6e9; }

.service-modal h3 {
    color: #2d3436;
    font-size: 1.75rem;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.service-modal-body {
    color: #636e72;
    line-height: 2;
    font-size: 1.15rem;
}

.service-modal-body p {
    margin-bottom: 16px;
}

.service-modal-body p:last-child { margin-bottom: 0; }

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #bbb;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
    width: 18px;
    flex-shrink: 0;
}

.footer-contact a {
    color: #bbb;
    text-decoration: none;
}

.footer-contact a:hover { color: var(--primary); }

.footer-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    background: #2a2a2a;
    margin-bottom: 12px;
}

.footer-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 0.85rem;
}

.map-placeholder--loading.hidden {
    display: none !important;
}

.map-placeholder i { font-size: 2rem; }

.map-open-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.map-open-link:hover { background: #333; }

.map-open-link i { font-size: 2.5rem; }

.map-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-btn {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.map-btn:hover { opacity: 0.85; }

.map-btn-waze {
    background: #3a3a3a;
    color: #fff;
}

.map-btn-nav {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
}

.footer-brand-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-brand-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.footer-bottom .social {
    display: flex;
    gap: 15px;
}

.footer-bottom .social a {
    color: #888;
    font-size: 1.3rem;
    transition: color 0.3s, transform 0.3s;
}

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

.floating-cart .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.7rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #636e72;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dfe6e9;
}

.hidden { display: none !important; }

.promo-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 120px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .nav-links {
        display: flex;
        order: 3;
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links li { flex-shrink: 0; }
    .nav-links a { white-space: nowrap; font-size: 0.9rem; }
    .nav-actions { order: 2; gap: 12px; }
    .auth-nav-btn { padding: 6px 12px; font-size: 0.8rem; }
    .hero h1 { font-size: 2rem; }
    .browse-section { padding: 20px 16px 40px; }
    .category-search-box {
        max-width: 100%;
        border-radius: 16px;
        flex-wrap: wrap;
        padding: 12px;
    }
    .category-search-box button {
        width: 100%;
        border-radius: 12px;
    }
    .products-grid { grid-template-columns: 1fr; }
    body.products-cols-2 .products-grid,
    body.products-cols-3 .products-grid,
    body.products-cols-4 .products-grid,
    body.products-cols-5 .products-grid,
    body.products-cols-6 .products-grid { grid-template-columns: 1fr; }
    .layout-elegant .product-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .layout-elegant .product-image {
        grid-row: auto;
        width: 100%;
        height: 180px;
    }
    .layout-elegant .add-to-cart {
        grid-column: 1;
        grid-row: auto;
    }
    .promo-section { padding: 0 20px; }
    .features-bar { grid-template-columns: 1fr 1fr; }
    .feature-item { border-left: none; border-bottom: 1px solid #2a2a2a; }
    .footer-grid { grid-template-columns: 1fr 1fr; padding: 30px 20px; }
    .footer-bottom { padding: 20px; flex-direction: column; text-align: center; }
    .product-actions { flex-direction: row; }
    .qty-control { width: 25%; flex: 0 0 25%; }
    .add-to-cart { width: 75%; flex: 0 0 75%; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .nav-search-wrap { order: 4; width: 100%; max-width: none; margin: 0; }
    .nav-search-inner { display: none; width: 100%; }
    .nav-search-wrap.mobile-open .nav-search-inner { display: flex; }
    .nav-search-wrap.mobile-open .search-suggestions {
        left: 0;
        right: 0;
        width: 100%;
    }
    .nav-search-toggle { display: flex; }
    .floating-cart-panel { width: calc(100vw - 32px); right: 0; left: auto; }
    .pwa-install-banner { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* ── بحث ذكي ── */
.nav-search-wrap {
    position: relative;
    flex: 1;
    max-width: 360px;
    margin: 0 16px;
    z-index: 1100;
}

.nav-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f6fb;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 6px 6px 6px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.nav-search-wrap.focused .nav-search-inner {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: #fff;
}

.nav-search-inner input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
}

.nav-search-inner button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-search-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f4f6fb;
    color: var(--primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: 100%;
    min-width: 280px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid #e9ecef;
    max-height: min(420px, 60vh);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1200;
    padding: 10px;
}

.search-suggestions-label {
    font-size: 0.8rem;
    color: #636e72;
    padding: 10px 14px 6px;
    font-weight: 700;
    display: block;
}

.search-suggestion-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    margin-bottom: 6px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
}

.search-suggestion-item:last-child { margin-bottom: 0; }

.search-suggestion-item:hover { background: #f4f6fb; }

.search-suggestion-name {
    display: block;
    font-weight: 700;
    color: #2d3436;
    font-size: 1rem;
    line-height: 1.45;
    word-break: break-word;
}

.search-suggestion-name mark {
    background: #fff3cd;
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

.search-suggestion-meta {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}

.search-suggestion-category {
    color: var(--primary, #667eea);
    font-weight: 700;
}

.search-suggestion-category-sep {
    color: #b2bec3;
    font-weight: 600;
}

.search-recent-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: #636e72;
    font-size: 0.95rem;
}

.search-suggestions-empty {
    padding: 24px 16px;
    text-align: center;
    color: #636e72;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── نتائج البحث — تباعد أوضح ── */
body.search-active #viewProducts .browse-header {
    margin-bottom: 8px;
}

body.search-active #viewProducts .category-search-box {
    margin-bottom: 20px;
}

body.search-active #viewProducts .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 28px;
    margin-top: 8px;
}

body.search-active #viewProducts .product-card {
    padding: 22px;
}

body.search-active #viewProducts .product-image {
    height: 230px;
}

body.search-active #viewProducts .product-name {
    font-size: 1.15rem;
    line-height: 1.45;
    margin-bottom: 8px;
}

body.search-active #viewProducts .product-actions {
    margin-top: 18px;
    gap: 12px;
}

@media (max-width: 768px) {
    .search-suggestions {
        padding: 12px;
        border-radius: 14px;
    }

    .search-suggestion-item {
        padding: 16px 14px;
        min-height: 58px;
        margin-bottom: 8px;
    }

    .search-suggestion-name {
        font-size: 1.05rem;
    }

    body.search-active #viewProducts .products-grid {
        grid-template-columns: 1fr !important;
        gap: 22px;
    }

    body.search-active #viewProducts .product-card {
        padding: 18px;
    }

    body.search-active #viewProducts .product-image {
        height: 210px;
    }

    body.search-active #viewProducts .product-actions {
        flex-wrap: wrap;
    }

    body.search-active #viewProducts .share-product-btn {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
    }

    body.search-active #viewProducts .qty-control {
        flex: 1 1 calc(100% - 60px);
        min-width: 0;
    }

    body.search-active #viewProducts .add-to-cart {
        flex: 1 1 100%;
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    body.search-active #viewProducts .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1101px) {
    body.search-active #viewProducts .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* ── إشعارات العميل ── */
.client-notif-wrap { position: relative; }

.client-notif-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f4f6fb;
    color: #2d3436;
    cursor: pointer;
    font-size: 1rem;
}

.client-notif-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.client-notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(320px, calc(100vw - 40px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    z-index: 1200;
    overflow: hidden;
}

.client-notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
}

.client-notif-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-notif-mark-all {
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
}

.client-notif-close {
    border: none;
    background: transparent;
    color: #636e72;
    cursor: pointer;
    font-size: 1rem;
}

.client-notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.client-notif-item {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid #f1f2f6;
    background: #fff;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
}

.client-notif-item.unread { background: #f8f9ff; }
.client-notif-item:hover { background: #f4f6fb; }

.client-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-notif-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.client-notif-body strong { font-size: 0.9rem; color: #2d3436; }
.client-notif-body span { font-size: 0.85rem; color: #636e72; }
.client-notif-body small { font-size: 0.75rem; color: #b2bec3; }

.client-notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: #636e72;
}

.client-notif-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #dfe6e9;
}

.client-toast-wrap {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-toast {
    background: #2d3436;
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: min(360px, calc(100vw - 40px));
}

.client-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.client-toast i { color: #ffd93d; }

/* ── سلة عائمة محسّنة ── */
.floating-cart-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-cart {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35);
    cursor: pointer;
    border: none;
    animation: float 2s ease-in-out infinite;
}

.floating-cart-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: min(340px, calc(100vw - 40px));
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    overflow: hidden;
}

.floating-cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.floating-cart-panel-close {
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
}

.floating-cart-items {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
}

.floating-cart-empty {
    padding: 32px 16px;
    text-align: center;
    color: #636e72;
}

.floating-cart-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    color: #dfe6e9;
}

.floating-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
}

.floating-cart-item:hover { background: #f8f9fc; }

.floating-cart-item-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: #b2bec3;
}

.floating-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.floating-cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floating-cart-item-info strong {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-cart-item-info span { font-size: 0.75rem; color: #636e72; }

.floating-cart-item-total {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.floating-cart-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid #eee;
    background: #fafbfc;
}

.floating-cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
}

.floating-cart-checkout {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
}

.floating-cart-view-full {
    width: 100%;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.floating-cart .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.7rem;
}

/* ── PWA install banner ── */
.pwa-install-banner {
    position: fixed;
    bottom: 100px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 998;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pwa-install-content i {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.pwa-install-content strong {
    display: block;
    font-size: 0.95rem;
    color: #2d3436;
}

.pwa-install-content span {
    font-size: 0.8rem;
    color: #636e72;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.pwa-install-dismiss {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f2f6;
    border-radius: 8px;
    cursor: pointer;
    color: #636e72;
}

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

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 12px 8px;
    flex-wrap: wrap;
}

.pagination-bar.hidden {
    display: none;
}

.pagination-btn {
    border: 1px solid #dfe6e9;
    background: #fff;
    color: #2d3436;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination-info {
    color: #636e72;
    font-size: 14px;
}

.product-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(45, 52, 54, 0.85);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.product-stock-badge.out {
    background: #d63031;
}

.product-stock-badge.low {
    background: #e17055;
}

.favorite-product-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #b2bec3;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.favorite-product-btn.is-active {
    color: #e84393;
}

.favorite-product-btn:hover {
    transform: scale(1.05);
}

.fav-add-cart-btn {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
}

.product-card.out-of-stock {
    opacity: 0.88;
}

.product-card.out-of-stock .add-to-cart:disabled {
    background: #b2bec3;
    cursor: not-allowed;
}

.cart-discount-field {
    padding: 14px 0;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
}

.cart-discount-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.cart-discount-controls {
    display: flex;
    gap: 8px;
}

.cart-discount-controls input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-family: inherit;
    text-transform: uppercase;
}

.cart-discount-controls button {
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    background: var(--client-primary, #6c5ce7);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

#discountCodeMessage {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #d63031;
}

#discountCodeMessage.is-valid,
.cart-summary-discount {
    color: #00a86b;
}
