/* ==========================================================================
   Design Template: has03 (نمط البطاقات العريضة - Wide Landscape Cards)
   - Layout: Horizontal Wide Cards (Image on right, Details & Actions on left)
   - Colors: Deep Obsidian (#0D0E12) & Warm Amber Gold (#F59E0B)
   - Focus: Visual readability, prominent descriptions, fast order buttons
   ========================================================================== */

:root {
    --has03-bg: #0D0E12;
    --has03-card: #151821;
    --has03-card-border: rgba(245, 158, 11, 0.22);
    --has03-gold: #F59E0B;
    --has03-gold-hover: #D97706;
    --has03-gold-light: #FCD34D;
    --has03-text: #F8FAFC;
    --has03-muted: #94A3B8;
}

body.theme-has03 {
    background-color: var(--has03-bg);
    color: var(--has03-text);
}

/* 1. Global Navigation Bar */
.theme-has03 .apple-globalnav {
    background: rgba(13, 14, 18, 0.9);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.theme-has03 .apple-globalnav-brand {
    color: #FFFFFF;
}
.theme-has03 .apple-brand-logo {
    border: 1.5px solid var(--has03-gold);
}
.theme-has03 .apple-globalnav-links a {
    color: #94A3B8;
}
.theme-has03 .apple-globalnav-links a:hover {
    color: var(--has03-gold);
}
.theme-has03 .apple-nav-badge {
    background: var(--has03-gold);
    color: #000000;
    font-weight: 800;
}

/* 2. Announcement Ribbon */
.theme-has03 .apple-ribbon {
    background: #1C1608;
    color: var(--has03-gold-light);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}
.theme-has03 .apple-status-dot.is-open {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}
.theme-has03 .apple-ribbon-link {
    color: var(--has03-gold);
    font-weight: 700;
}

/* 3. Hero Showcase */
.theme-has03 .apple-hero {
    background: radial-gradient(circle at 50% 15%, #2D1E05 0%, #0D0E12 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.theme-has03 .apple-hero-eyebrow {
    color: var(--has03-gold);
    font-weight: 700;
}
.theme-has03 .apple-hero-title {
    color: #FFFFFF;
}
.theme-has03 .apple-hero-subtitle {
    color: var(--has03-muted);
}
.theme-has03 .apple-btn-primary {
    background: var(--has03-gold);
    color: #000000;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}
.theme-has03 .apple-btn-primary:hover {
    background: var(--has03-gold-hover);
    color: #FFFFFF;
}
.theme-has03 .apple-btn-link {
    color: var(--has03-gold-light);
}
.theme-has03 .biz-pill {
    background: rgba(245, 158, 11, 0.1);
    color: var(--has03-gold-light);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* 4. Search Bar */
.theme-has03 .apple-search-box {
    background: #151821;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}
.theme-has03 .apple-search-box:focus-within {
    border-color: var(--has03-gold);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}
.theme-has03 .apple-search-input {
    color: #FFFFFF;
}

/* 5. Sticky Subnav */
.theme-has03 .apple-subnav {
    background: rgba(13, 14, 18, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-has03 .apple-subnav-pill {
    background: #1A1E29;
    color: #D4D4D8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-has03 .apple-subnav-pill:hover {
    color: #FFFFFF;
    border-color: var(--has03-gold);
}
.theme-has03 .apple-subnav-pill.is-active,
.theme-has03 .apple-subnav-pill:active {
    background: var(--has03-gold);
    color: #000000;
    font-weight: 800;
    border-color: var(--has03-gold);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

/* 6. Section Header */
.theme-has03 .apple-section-header {
    margin: 32px 0 16px;
}
.theme-has03 .apple-section-title {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.theme-has03 .apple-section-title::before {
    content: "";
    width: 5px;
    height: 22px;
    background: var(--has03-gold);
    border-radius: 4px;
    display: inline-block;
}

/* 7. WIDE CARDS GRID LAYOUT (نمط البطاقات العريضة) */
.theme-has03 .apple-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 20px;
}

/* Wide Horizontal Card */
.theme-has03 .apple-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: var(--has03-card);
    border: 1px solid var(--has03-card-border);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.theme-has03 .apple-card:hover {
    transform: translateY(-3px);
    border-color: var(--has03-gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.2);
}

/* Image on the side */
.theme-has03 .apple-card-media {
    width: 175px !important;
    min-width: 175px !important;
    height: 100% !important;
    min-height: 160px;
    background: #0D0E12;
    flex-shrink: 0;
}
.theme-has03 .apple-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.theme-has03 .apple-card-fallback {
    background: linear-gradient(135deg, #2D1E05 0%, #151821 100%);
    color: var(--has03-gold);
    font-size: 32px;
}

/* Details on the other side */
.theme-has03 .apple-card-body {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--has03-card);
}
.theme-has03 .apple-card-category-tag {
    color: var(--has03-gold);
    font-size: 11px;
    font-weight: 700;
}
.theme-has03 .apple-card-title {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}
.theme-has03 .apple-card-desc {
    color: var(--has03-muted);
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.theme-has03 .apple-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.theme-has03 .apple-card-price {
    color: var(--has03-gold);
    font-size: 16px;
    font-weight: 800;
}
.theme-has03 .apple-card-add-btn {
    background: var(--has03-gold);
    color: #000000;
    font-weight: 800;
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}
.theme-has03 .apple-card-add-btn:hover {
    background: var(--has03-gold-hover);
    color: #FFFFFF;
}

/* 8. Dynamic Island & Drawers */
.theme-has03 .apple-dynamic-pill {
    background: #151821;
    border: 1px solid var(--has03-gold);
    color: #FFFFFF;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.2);
}
.theme-has03 .apple-dynamic-badge {
    background: var(--has03-gold);
    color: #000000;
    font-weight: 800;
}
.theme-has03 .apple-dynamic-arrow {
    color: var(--has03-gold);
}
.theme-has03 .apple-sheet {
    background: #151821;
    color: #FFFFFF;
    border-top: 2px solid var(--has03-gold);
}
.theme-has03 .apple-sheet h2 {
    color: #FFFFFF;
}
.theme-has03 .apple-sheet-desc {
    color: var(--has03-muted);
}
.theme-has03 .apple-segmented-pill {
    background: #1C202C;
    border-color: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
}
.theme-has03 .apple-segmented-pill.is-selected {
    border-color: var(--has03-gold);
    background: rgba(245, 158, 11, 0.15);
    color: var(--has03-gold-light);
}
.theme-has03 .apple-addon-item {
    background: #1C202C;
    border-color: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
}
.theme-has03 .apple-addon-item em {
    color: var(--has03-gold) !important;
}
.theme-has03 .apple-btn-full {
    background: var(--has03-gold);
    color: #000000;
    font-weight: 800;
}
.theme-has03 .apple-btn-full:hover {
    background: var(--has03-gold-hover);
    color: #FFFFFF;
}
.theme-has03 .apple-form-input,
.theme-has03 .apple-form-textarea {
    background: #1C202C;
    border-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}
.theme-has03 .apple-form-input:focus,
.theme-has03 .apple-form-textarea:focus {
    border-color: var(--has03-gold);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}
.theme-has03 .apple-fulfillment-opt {
    background: #1C202C;
    border-color: rgba(255, 255, 255, 0.08);
    color: #D4D4D8;
}
.theme-has03 .apple-fulfillment-opt.is-active {
    border-color: var(--has03-gold);
    background: rgba(245, 158, 11, 0.15);
    color: var(--has03-gold-light);
}
.theme-has03 .apple-totals-card {
    background: #1C202C;
}

/* 9. Mobile Adjustments for has03 Wide Cards */
@media (max-width: 640px) {
    .theme-has03 .apple-bento-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .theme-has03 .apple-card {
        border-radius: 16px;
    }
    .theme-has03 .apple-card-media {
        width: 120px !important;
        min-width: 120px !important;
        min-height: 120px;
    }
    .theme-has03 .apple-card-body {
        padding: 10px 12px;
    }
    .theme-has03 .apple-card-title {
        font-size: 15px;
        margin-bottom: 4px;
    }
    .theme-has03 .apple-card-desc {
        font-size: 11.5px;
        line-height: 1.35;
        margin-bottom: 8px;
    }
    .theme-has03 .apple-card-price {
        font-size: 14px;
    }
    .theme-has03 .apple-card-add-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
