/* ========================================================
   بن العميد | Al Ameed Coffee - Real Website Stylesheet
   Modern, Responsive, Luxury Coffee E-Commerce Experience
   ======================================================== */

:root {
    --primary-red: #c01426;
    --primary-dark: #960f1d;
    --primary-burgundy: #7d0d18;
    --gold-accent: #c59b27;
    --text-primary: #1c1c1e;
    --text-secondary: #5a5a5f;
    --text-muted: #8e8e93;
    --border-light: #e5e5ea;
    --border-card: #ebebeb;
    --bg-page: #f8f8fa;
    --bg-card: #ffffff;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --font-ar: 'Cairo', 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 30px rgba(192, 20, 38, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body.website-body {
    font-family: var(--font-ar);
    background-color: var(--bg-page);
    color: var(--text-primary);
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
}

.site-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================================
   SCREEN 1: SPLASH SCREEN (شاشة التحميل - 5 ثوانٍ)
   مطابقة للصورة 1.png
   ======================================================== */
.splash-screen-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: -30px;
}

.splash-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    animation: logoGlow 2.5s infinite ease-in-out;
}

@keyframes logoGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 8px rgba(192, 20, 38, 0.15)); }
    50% { transform: scale(1.04); filter: drop-shadow(0 6px 16px rgba(192, 20, 38, 0.3)); }
}

.splash-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.splash-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid #f2f2f7;
    border-top-color: var(--primary-red);
    border-right-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.splash-timer-badge {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #f4f4f7;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid #e5e5ea;
}

.splash-timer-badge strong {
    color: var(--primary-red);
    font-size: 16px;
}

.skip-splash-btn {
    background: none;
    border: 1px solid #d1d1d6;
    color: #636366;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.skip-splash-btn:hover {
    background: #f2f2f7;
    color: #111;
}

/* ========================================================
   TOP ANNOUNCEMENT BAR
   ======================================================== */
.top-announcement-bar {
    background: #19191b;
    color: #d1d1d6;
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-text {
    display: flex;
    gap: 10px;
    align-items: center;
}

.announcement-divider {
    color: #555;
}

.announcement-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.announcement-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.announcement-links a:hover {
    color: #fff;
}

.lang-pill {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

/* ========================================================
   MAIN WEBSITE HEADER
   ======================================================== */
.site-main-header {
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}

.main-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.header-search-area {
    flex: 1;
    max-width: 580px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-pill);
    border: 1.5px solid #e5e5ea;
    background: #f7f7f9;
    padding: 0 48px 0 18px;
    font-family: var(--font-ar);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-input-wrapper input:focus {
    background: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(192, 20, 38, 0.1);
}

.search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #636366;
    cursor: pointer;
    display: flex;
}

.header-actions-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1c1c1e;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    transition: background 0.2s;
    font-family: var(--font-ar);
}

.header-action-btn:hover {
    background: #f2f2f7;
}

.cart-btn-highlight {
    background: #fafafc;
    border: 1px solid #e5e5ea;
    padding: 6px 14px 6px 16px;
    gap: 10px;
}

.cart-btn-highlight:hover {
    border-color: var(--primary-red);
    background: #fff5f5;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-counter-badge {
    position: absolute;
    top: -5px;
    left: -8px;
    background: var(--primary-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(192, 20, 38, 0.4);
}

.cart-btn-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.cart-total-header {
    font-size: 13px;
    color: var(--primary-red);
}

/* Navigation Bar */
.site-main-nav {
    background: #ffffff;
    border-top: 1px solid #f0f0f2;
}

.nav-container {
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    white-space: nowrap;
}

.nav-menu li a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #48484a;
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    transition: all 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* ========================================================
   VIEWS CONTROLLER (SPA View Switching)
   ======================================================== */
.site-view {
    display: none;
    width: 100%;
}

.site-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ========================================================
   STOREFRONT: HERO BANNER
   ======================================================== */
.store-hero-banner {
    background: linear-gradient(135deg, #a71120 0%, #7d0d18 100%);
    color: #ffffff;
    padding: 40px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-text-side {
    max-width: 620px;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 14px;
}

.hero-desc {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary-red {
    background: #ffffff;
    color: var(--primary-red);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-red:hover {
    transform: translateY(-2px);
    background: #fdfdfd;
}

.btn-secondary-outline {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-image-side {
    flex-shrink: 0;
}

.hero-pack-img {
    height: 250px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.3));
    animation: floatPack 4s ease-in-out infinite;
}

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

/* ========================================================
   PRODUCTS CATALOG & FILTERS
   ======================================================== */
.catalog-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebebeb;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-pill {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid #e5e5ea;
    background: #fff;
    color: #48484a;
    font-family: var(--font-ar);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-pill:hover {
    border-color: #c7c7cc;
}

.cat-pill.active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 2px 8px rgba(192, 20, 38, 0.25);
}

.catalog-status {
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Category Blocks & Products Grid */
.category-block {
    margin-bottom: 36px;
}

.category-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cat-block-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--primary-red);
}

.cat-badge {
    background: #f2f2f7;
    color: #636366;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.cat-badge.highlight {
    background: #e8f5e9;
    color: #2e7d32;
}

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

/* Product Card */
.catalog-product-card {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.catalog-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(192, 20, 38, 0.3);
}

.catalog-product-card.featured-card {
    border: 2px solid var(--primary-red);
    background: #fffdfd;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--primary-red);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-thumb-wrap {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s;
}

.catalog-product-card:hover .card-img {
    transform: scale(1.06);
}

.card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 6px;
}

.card-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f4f4f7;
}

.card-price {
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

.btn-quick-add {
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-family: var(--font-ar);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

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

.btn-quick-add:active {
    transform: scale(0.95);
}

/* ========================================================
   REAL SHOPPING CART DRAWER (سلة المنتجات الكاملة التفاعلية)
   ======================================================== */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: flex-start; /* in RTL, flex-start is right side */
    animation: fadeIn 0.25s ease;
}

.cart-drawer-overlay.hidden {
    display: none;
}

.cart-drawer-content {
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-title-group h3 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.drawer-close-btn:hover {
    background: #f2f2f7;
    color: #111;
}

.free-shipping-progress {
    background: #fff8f8;
    border-bottom: 1px solid #fae1e3;
    padding: 10px 20px;
}

.shipping-msg {
    font-size: 12px;
    color: #444;
    margin-bottom: 6px;
}

.shipping-bar-track {
    width: 100%;
    height: 6px;
    background: #f0f0f2;
    border-radius: 999px;
    overflow: hidden;
}

.shipping-bar-fill {
    height: 100%;
    background: var(--primary-red);
    transition: width 0.4s ease;
}

.drawer-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Cart Item Card in Drawer */
.cart-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 12px;
}

.item-thumb-box {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.item-thumb-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.item-info-box {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-unit-price {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.item-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-qty-selector {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d1d1d6;
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    gap: 8px;
}

.item-qty-selector button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-qty-selector span {
    font-size: 13px;
    font-weight: 800;
    min-width: 16px;
    text-align: center;
}

.item-total-price {
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

.item-delete-btn {
    background: none;
    border: none;
    color: #8e8e93;
    cursor: pointer;
    padding: 4px;
}

.item-delete-btn:hover {
    color: #ff3b30;
}

/* Empty Cart View */
.empty-cart-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-cart-view h4 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
}

.empty-cart-view p {
    font-size: 13.5px;
    color: #636366;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Drawer Footer */
.drawer-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid #ebebeb;
    background: #ffffff;
}

.promo-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.promo-box input {
    flex: 1;
    height: 38px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    padding: 0 12px;
    font-family: var(--font-ar);
    font-size: 12.5px;
    outline: none;
}

.btn-promo-apply {
    background: #1c1c1e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-family: var(--font-ar);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.promo-msg {
    font-size: 12px;
    color: #2e7d32;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.cart-summary-breakdown {
    background: #f9f9fb;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #48484a;
}

.sum-row strong {
    color: #111;
}

.sum-divider {
    height: 1px;
    background: #e5e5ea;
    margin: 4px 0;
}

.sum-row.grand-total {
    font-size: 15px;
    font-weight: 800;
    color: #111;
}

.sum-row.grand-total strong {
    font-size: 17px;
    color: var(--primary-red);
}

.btn-checkout-cta {
    width: 100%;
    height: 50px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(192, 20, 38, 0.35);
    transition: background 0.2s, transform 0.15s;
}

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

.btn-checkout-cta:active {
    transform: scale(0.98);
}

/* ========================================================
   SCREEN 3: PRODUCT DETAIL MODAL (صورة 5)
   ======================================================== */
.product-detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 16px;
}

.product-detail-modal.hidden {
    display: none;
}

.detail-modal-dialog {
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.detail-hero-section {
    background: linear-gradient(180deg, #b81424 0%, #940f1d 100%);
    border-radius: 0 0 38px 38px;
    padding: 14px 16px 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-hero-topbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.icon-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.detail-topbar-actions {
    display: flex;
    gap: 10px;
}

.heart-icon.liked {
    fill: #ff3b30;
    stroke: #ff3b30;
}

.detail-product-hero-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
}

.detail-hero-img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
}

.detail-body-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 80px;
    text-align: right;
}

.points-badge-pill {
    display: inline-block;
    background: #f2f2f7;
    color: #3a3a3c;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.detail-product-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-red);
}

.detail-product-price {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.detail-description {
    font-size: 13px;
    color: #48484a;
    line-height: 1.55;
    margin-bottom: 16px;
}

.detail-notes-section {
    margin-bottom: 20px;
}

.notes-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

.notes-textarea {
    width: 100%;
    height: 52px;
    padding: 10px 14px;
    border: 1px solid #d1d1d6;
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-size: 13px;
    resize: none;
    outline: none;
    direction: rtl;
    background: #fff;
}

.notes-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    color: #636366;
    line-height: 1.4;
    margin-top: 6px;
}

.info-icon {
    color: #007aff;
}

.recommendations-section {
    margin-top: 10px;
}

.rec-heading {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
}

.rec-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.rec-card {
    min-width: 95px;
    background: #fbfbfd;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.rec-thumb {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.rec-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rec-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rec-price {
    font-size: 11.5px;
    font-weight: 700;
}

.rec-cart-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.detail-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #ebebeb;
    padding: 10px 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 30;
}

.qty-counter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f2f2f7;
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    width: 105px;
    height: 44px;
    flex-shrink: 0;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-delete {
    color: #8e8e93;
}

.qty-val {
    font-size: 16px;
    font-weight: 800;
}

.detail-add-btn {
    flex: 1;
    height: 44px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    font-family: var(--font-ar);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(192, 20, 38, 0.3);
}

/* ========================================================
   SCREEN 4: CHECKOUT SUMMARY (صورة 7)
   خيار الكاش محذوف نهائياً - البطاقة نشطة - Apple Pay معطلة
   ======================================================== */
#view-checkout {
    padding: 30px 16px;
}

.checkout-wrapper-box {
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid #e5e5ea;
}

.checkout-topbar {
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f2;
}

.checkout-header-title {
    font-size: 18px;
    font-weight: 800;
}

.checkout-scroll-area {
    padding: 16px;
}

.checkout-breakdown-card {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.breakdown-lbl {
    font-size: 15px;
    font-weight: 600;
}

.breakdown-val {
    font-size: 15.5px;
    font-weight: 700;
}

.breakdown-divider {
    height: 1px;
    background: #e5e5ea;
    margin: 12px 0 14px;
}

.total-row .total-lbl {
    font-size: 17.5px;
    font-weight: 800;
}

.total-row .total-val {
    font-size: 19px;
    font-weight: 900;
}

.payment-selection-header {
    margin-bottom: 10px;
}

.payment-selection-header h3 {
    font-size: 16.5px;
    font-weight: 800;
}

.payment-methods-card {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    padding: 6px 16px;
}

.payment-method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    cursor: pointer;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.method-text {
    font-size: 15.5px;
    font-weight: 700;
}

.apple-pay-badge {
    border: 1px solid #111;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.radio-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #c7c7cc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-circle.checked {
    border-color: var(--primary-red);
}

.radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.radio-circle.checked .radio-inner {
    background: var(--primary-red);
}

.payment-method-divider {
    height: 1px;
    border-bottom: 1px dashed #d1d1d6;
}

.apple-pay-alert {
    margin-top: 14px;
    background: #fff4e5;
    border: 1px solid #ffcc80;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.apple-pay-alert.hidden {
    display: none;
}

.alert-content strong {
    display: block;
    font-size: 13px;
    color: #b76e00;
    margin-bottom: 2px;
}

.alert-content p {
    font-size: 11.5px;
    color: #663c00;
}

.checkout-bottom-bar {
    padding: 14px 18px 20px;
    border-top: 1px solid #ebebeb;
    background: #fff;
}

.checkout-confirm-btn {
    width: 100%;
    height: 50px;
    background: #8e121e;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-size: 16.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(142, 18, 30, 0.35);
}

/* ========================================================
   SCREEN 5: ORDER PROCESSING (صورة 8)
   ======================================================== */
#view-processing {
    min-height: 80vh;
    display: none;
    align-items: center;
    justify-content: center;
}

#view-processing.active {
    display: flex;
}

.order-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    padding: 40px 20px;
}

.order-loader-rings {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid #ececef;
}

.ring-outer { width: 135px; height: 135px; }
.ring-middle { width: 105px; height: 105px; }
.ring-inner {
    width: 78px;
    height: 78px;
    border-top: 3.5px solid #4a4a4f;
    border-left: 3.5px solid #4a4a4f;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-bag-center {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bag-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.order-loading-title {
    font-size: 21px;
    font-weight: 800;
}

.order-loading-sub {
    font-size: 14px;
    color: #636366;
}

.order-loading-progress-bar {
    width: 170px;
    height: 4px;
    background: #f2f2f7;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-red);
    transition: width 2.8s linear;
}

/* ========================================================
   SCREEN 6: PAYMENT GATEWAY (صورة 9)
   ======================================================== */
#view-gateway {
    padding: 30px 16px;
}

.gateway-wrapper-box {
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e5ea;
}

.gateway-header {
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f2;
}

.gateway-title {
    font-size: 16.5px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.gateway-scrollable {
    padding: 16px 20px 24px;
}

.gateway-brand-banner {
    display: flex;
    justify-content: center;
    padding: 8px 0 14px;
}

.gateway-brand-logo {
    width: 160px;
    height: auto;
}

.lang-switch-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.lang-link {
    font-size: 12.5px;
    color: #1c1c1e;
    text-decoration: none;
    font-weight: 600;
}

.dashed-payment-methods-box {
    border: 1px dashed #d1d1d6;
    border-radius: 14px;
    padding: 14px 12px;
    position: relative;
    margin-bottom: 20px;
}

.dashed-box-title {
    position: absolute;
    top: -11px;
    right: 18px;
    background: #ffffff;
    padding: 0 8px;
    font-size: 12.5px;
    font-weight: 700;
}

.dashed-badges-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.pay-badge-card {
    flex: 1;
    height: 52px;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
}

.pay-badge-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pay-badge-card.active {
    border-color: #30d158;
    box-shadow: 0 0 0 1.5px #30d158;
}

.pay-badge-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-details-form-box {
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    padding: 14px 14px 18px;
    margin-bottom: 18px;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #8e8e93;
    margin-bottom: 10px;
}

.card-number-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-field-icon {
    position: absolute;
    left: 12px;
}

.card-input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    padding: 0 14px 0 44px;
    font-size: 15px;
    direction: ltr;
    text-align: left;
    outline: none;
}

.card-expiry-cvv-row {
    display: flex;
    gap: 8px;
}

.input-col {
    flex: 1;
}

.card-sub-input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    direction: ltr;
    text-align: center;
    outline: none;
}

.cvv-col {
    position: relative;
    display: flex;
    align-items: center;
}

.cvv-help-btn {
    position: absolute;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #636366;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gateway-total-amount-box {
    text-align: center;
    padding: 12px 0 16px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    direction: ltr;
}

.gateway-currency {
    font-size: 18px;
    font-weight: 700;
}

.gateway-total-number {
    font-size: 26px;
    font-weight: 900;
}

.gateway-pay-now-btn {
    width: 100%;
    height: 50px;
    background: #b81928;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-ar);
    font-size: 16.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(184, 25, 40, 0.35);
}

/* ========================================================
   SUCCESS MODAL
   ======================================================== */
.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 20000;
    backdrop-filter: blur(4px);
}

.success-modal.hidden {
    display: none;
}

.success-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 26px 22px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-cup-icon {
    font-size: 40px;
}

.success-check-mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #34c759;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.success-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.success-subtitle {
    font-size: 13.5px;
    color: #636366;
    margin-bottom: 16px;
}

.success-details {
    width: 100%;
    background: #f9f9fb;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
}

.success-close-btn {
    width: 100%;
    height: 44px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
}

/* ========================================================
   REAL FOOTER
   ======================================================== */
.site-main-footer {
    background: #19191b;
    color: #a1a1a6;
    padding: 44px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 12px;
}

.brand-col p {
    font-size: 13px;
    line-height: 1.6;
    max-width: 380px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    color: #8e8e93;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #ffffff;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    text-align: center;
    font-size: 12px;
}

/* Toast */
.app-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(28, 28, 30, 0.94);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl;
}

.app-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================================
   COMPREHENSIVE RESPONSIVE STYLES (متوافق 100% مع الحاسوب والهاتف)
   ======================================================== */

/* Large Desktop Screens (> 1200px) */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

/* Medium Desktop & Tablets Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Tablets Portrait & Small Laptops (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .hero-container {
        gap: 20px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-pack-img {
        height: 200px;
    }
}

/* Mobile Devices & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    .top-announcement-bar {
        padding: 6px 0;
        font-size: 11.5px;
    }
    .announcement-links {
        display: none;
    }
    .announcement-text {
        text-align: center;
        width: 100%;
    }
    .announcement-divider {
        display: none;
    }

    /* Mobile Header */
    .header-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
    }
    .header-logo-area {
        order: 1;
    }
    .main-logo-img {
        height: 48px;
    }
    .header-actions-area {
        order: 2;
        gap: 8px;
    }
    .header-action-btn .action-label {
        display: none;
    }
    .cart-btn-info {
        display: none;
    }
    .cart-btn-highlight {
        padding: 8px 12px;
    }
    .header-search-area {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 2px;
    }

    /* Horizontal scrollable category navigation for mobile touch */
    .site-main-nav {
        overflow: hidden;
        border-top: 1px solid #f0f0f3;
    }
    .nav-container {
        padding: 0 10px;
    }
    .nav-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 4px;
        gap: 8px;
    }
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    .nav-menu li a {
        padding: 6px 14px;
        font-size: 13px;
        background: #f7f7fa;
        border-radius: var(--radius-pill);
        display: inline-block;
    }
    .nav-menu li.active a {
        background: var(--primary-red);
        color: #fff;
    }

    /* Hero Banner Mobile */
    .store-hero-banner {
        padding: 24px 0;
        margin-bottom: 24px;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 16px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-desc {
        font-size: 14px;
        margin-bottom: 18px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-pack-img {
        height: 160px;
    }

    /* Products Grid Mobile - 2 per row */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .catalog-product-card {
        padding: 12px;
        border-radius: 14px;
    }
    .card-thumb-wrap {
        height: 100px;
        margin-bottom: 8px;
    }
    .card-title {
        font-size: 13.5px;
        line-height: 1.35;
        min-height: 36px;
    }
    .card-desc {
        display: none; /* keep mobile clean and compact */
    }
    .card-price {
        font-size: 14px;
    }
    .btn-quick-add {
        padding: 5px 10px;
        font-size: 11.5px;
    }
    .btn-quick-add span {
        display: none; /* icon only on mobile quick add */
    }

    /* Cart Drawer Mobile */
    .cart-drawer-content {
        max-width: 100%;
        width: 100%;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-social-row {
        justify-content: center;
    }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .catalog-product-card {
        padding: 8px;
    }
    .card-thumb-wrap {
        height: 85px;
    }
    .card-title {
        font-size: 12.5px;
    }
    .card-price {
        font-size: 13px;
    }
}
