:root {
    --pro-ink: #111111;
    --pro-muted: #6c6c6c;
    --pro-accent: #f5c400;
    --pro-accent-dark: #d4a900;
    --pro-bg: #f6f5ef;
    --pro-card: #ffffff;
    --pro-border: rgba(0, 0, 0, 0.12);
}

body.index-pro {
    background: var(--pro-bg);
    color: var(--pro-ink);
    font-family: 'Cairo','Tajawal','Changa',sans-serif;
}

body.index-pro .top,
body.index-pro .header,
body.index-pro .nav {
    display: none;
}

.home-pro {
    position: relative;
}

.pro-header {
    background: #101010;
    color: #ffffff;
    border-bottom: 1px solid rgba(245, 196, 0, 0.2);
    padding: 16px 0 14px;
}

.pro-header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.pro-logo img {
    height: 52px;
    width: auto;
}

.pro-logo .logo-text-fallback {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.pro-search {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(245, 196, 0, 0.25);
    background: #1a1a1a;
    padding: 4px 6px;
}

.pro-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: #ffffff;
    padding: 6px 12px;
    outline: none;
}

.pro-search button {
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    background: var(--pro-accent);
    color: #111111;
    font-weight: 700;
}

.pro-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-cart-btn {
    background: transparent;
    border: 1px solid rgba(245, 196, 0, 0.5);
    color: #ffffff;
}

.pro-chip-nav {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #1c1c1c;
    color: #f5f5f5;
    border: 1px solid rgba(245, 196, 0, 0.2);
    font-weight: 600;
    text-decoration: none;
}

.pro-chip:hover {
    background: var(--pro-accent);
    color: #111111;
}

.hero-pro {
    padding: 40px 0 30px;
    background: radial-gradient(circle at top right, rgba(245, 196, 0, 0.25), transparent 45%), #111111;
    color: #fefefe;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(245, 196, 0, 0.2);
    color: #f5c400;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 800;
    margin: 12px 0 12px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.pro-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--pro-accent);
    color: #111111;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pro-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(245, 196, 0, 0.25);
    color: #111111;
}

.pro-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(245, 196, 0, 0.6);
    color: #f5f5f5;
    background: transparent;
    font-weight: 700;
    text-decoration: none;
}

.pro-btn-outline:hover {
    background: rgba(245, 196, 0, 0.15);
    color: #ffffff;
}

.pro-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--pro-ink);
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 1.2rem;
    color: var(--pro-accent);
}

.hero-media {
    display: grid;
    gap: 14px;
}

.hero-carousel {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #0d0d0d;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
    direction: ltr;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    max-height: 360px;
}

.hero-carousel-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
    direction: ltr;
    height: 100%;
}

.hero-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.hero-carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    pointer-events: none;
    z-index: 1;
}

.hero-carousel .hero-shot {
    border-radius: 0;
    border: none;
    padding-top: 0;
    height: 100%;
    width: 100%;
}

.hero-carousel .hero-shot picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-carousel .hero-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 24px;
    z-index: 2;
    pointer-events: none;
}

.hero-slide-content.pos-left {
    justify-content: flex-start;
    text-align: left;
}

.hero-slide-content.pos-center {
    justify-content: center;
    text-align: center;
}

.hero-slide-content.pos-right {
    justify-content: flex-end;
    text-align: right;
}

.hero-slide-card {
    pointer-events: auto;
    max-width: min(85%, 360px);
    background: rgba(17, 17, 17, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 18px;
    color: #ffffff;
    backdrop-filter: blur(6px);
}

html[dir="rtl"] .hero-slide-card {
    direction: rtl;
}

.hero-slide-card h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 800;
}

.hero-slide-card p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(245, 196, 0, 0.45);
    background: rgba(17, 17, 17, 0.7);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    z-index: 2;
}

.hero-carousel-btn:hover {
    background: rgba(245, 196, 0, 0.9);
    color: #111111;
}

.hero-carousel-prev {
    left: 14px;
}

.hero-carousel-next {
    right: 14px;
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    transition: 0.2s ease;
}

.hero-carousel-dot.active {
    width: 24px;
    background: var(--pro-accent);
}

.hero-product {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    color: #111111;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.hero-product img {
    width: 100%;
    display: block;
}

.hero-product-body {
    padding: 14px;
}

.hero-product-label {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(245, 196, 0, 0.2);
    color: #111111;
    font-weight: 700;
    font-size: 0.85rem;
}

.hero-product-price {
    font-weight: 800;
    font-size: 1.2rem;
    margin: 8px 0;
}

.hero-product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hero-shot {
    border-radius: 16px;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trust-pro {
    padding: 30px 0;
    background: #f6f5ef;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.trust-card {
    background: #ffffff;
    border: 1px solid var(--pro-border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.trust-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
}

.trust-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.trust-card p {
    color: var(--pro-muted);
    font-size: 0.95rem;
}

.pro-section {
    padding: 40px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--pro-muted);
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.product-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--pro-border);
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    width: 100%;
    max-width: 260px;
    justify-self: center;
    flex: 0 1 260px;
}

@supports (display: grid) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
        justify-content: center;
    }

    .product-card {
        flex: initial;
        justify-self: center;
    }
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.12);
}

.product-media {
    padding-top: 68%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.product-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card:hover .product-media::after {
    opacity: 1;
}

.product-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--pro-ink);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
}

.product-price span {
    font-size: 0.95rem;
}

.product-price del {
    color: #9b9b9b;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    align-items: stretch;
}

.product-actions .pro-btn,
.product-actions .pro-btn-dark {
    flex: 1;
    justify-content: center;
}

.product-card .pro-btn,
.product-card .pro-btn-dark {
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.product-card .pro-btn {
    background: linear-gradient(135deg, var(--pro-accent), #f7d64b);
    border: none;
}

.product-card .pro-btn:hover {
    box-shadow: 0 10px 18px rgba(245, 196, 0, 0.3);
}

.product-card .pro-btn-dark {
    background: #0f0f0f;
    border-color: #0f0f0f;
}

.pro-callout {
    padding: 35px 0;
}

.callout-card {
    background: #111111;
    color: #ffffff;
    border-radius: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
    align-items: center;
}

.callout-card img {
    width: 100%;
    border-radius: 16px;
}

.callout-body h3 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 800;
}

.callout-body p {
    color: rgba(255, 255, 255, 0.8);
}

.cart-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    z-index: 999;
}

.cart-count {
    background: var(--pro-accent);
    color: #111111;
    font-weight: 800;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.85rem;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 998;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 380px);
    height: 100%;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-head {
    padding: 18px;
    border-bottom: 1px solid var(--pro-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-head h3 {
    margin: 0;
    font-weight: 800;
}

.cart-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
}

.cart-body {
    padding: 14px 18px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-empty {
    text-align: center;
    color: var(--pro-muted);
    padding: 30px 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.cart-item img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--pro-border);
}

.cart-thumb-empty {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 1px dashed var(--pro-border);
    background: #f0f0f0;
}

.cart-item h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.cart-item .cart-meta {
    font-size: 0.9rem;
    color: var(--pro-muted);
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.cart-qty button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--pro-border);
    background: #f7f7f7;
}

.cart-qty input {
    width: 46px;
    text-align: center;
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    padding: 4px;
}

.cart-remove {
    background: none;
    border: none;
    color: #c1121f;
    font-weight: 700;
    margin-top: 6px;
}

.cart-footer {
    border-top: 1px solid var(--pro-border);
    padding: 16px 18px;
}

.cart-total {
    font-weight: 800;
    margin-bottom: 12px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.cart-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-pro {
        padding: 30px 0 20px;
    }

    .hero-carousel-btn {
        width: 38px;
        height: 38px;
    }

    .hero-carousel {
        aspect-ratio: 3 / 2;
        min-height: 220px;
        max-height: 300px;
    }

    .hero-slide-card {
        max-width: 100%;
        padding: 14px 16px;
    }

    .hero-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
