/* ═══════════════════════════════════════════════════════════════
   3oodStore — Dynamic Template-Driven Product Card Styles
   Dramatically alters product display based on active layout template:
   1. Bento Grid: Asymmetric differing card sizes (Span 8 vs Span 4)
   2. App Store: iOS Squircle app icons, horizontal rows, Apple pills
   3. Luxury: Double gold engraved borders, royal seals, gold gradient
   4. Cyber: Clipped chamfered HUD corners, neon glowing energy bars
   5. Minimal: Ultra-clean, borderless hairline, compact 1-click rows
   6. Cards / Marketplace: Digital voucher gift card with discount sticker
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. BENTO GRID (شبكة بينتو متفاوتة الأحجام) ── */
.layout-product-style-bento .products-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.layout-product-style-bento .bento-prod-card {
    background: var(--system-bg-card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.layout-product-style-bento .bento-prod-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

/* Differing sizes in Bento: First item is a BIG Featured Hero Tile (Span 8) */
.layout-product-style-bento .bento-prod-card.bento-featured {
    grid-column: span 8;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), var(--system-bg-card) 75%);
    border-color: rgba(56, 189, 248, 0.3);
}

.layout-product-style-bento .bento-prod-card.bento-featured .bento-featured-content {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
}

.layout-product-style-bento .bento-prod-card.bento-featured .product-img-box {
    height: 140px;
    border-radius: 16px;
}

/* Second item is a Tall Card (Span 4) */
.layout-product-style-bento .bento-prod-card.bento-tall {
    grid-column: span 4;
}

/* Other items are standard Bento cells (Span 4 or Span 6) */
.layout-product-style-bento .bento-prod-card.bento-regular {
    grid-column: span 4;
}

.bento-featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #38BDF8, #0284C7);
    color: #0B0F19;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 900px) {
    .layout-product-style-bento .bento-prod-card.bento-featured,
    .layout-product-style-bento .bento-prod-card.bento-tall,
    .layout-product-style-bento .bento-prod-card.bento-regular {
        grid-column: span 12;
    }
    .layout-product-style-bento .bento-prod-card.bento-featured .bento-featured-content {
        grid-template-columns: 1fr;
    }
}


/* ── 2. APP STORE NATIVE (بطاقات متجر آبل والأيقونات المنحنية) ── */
.layout-product-style-appstore .products-appstore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.layout-product-style-appstore .appstore-prod-card {
    background: var(--system-bg-card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--glass-blur));
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.layout-product-style-appstore .appstore-prod-card:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 132, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.layout-product-style-appstore .appstore-app-squircle {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 18px; /* iOS Squircle */
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.layout-product-style-appstore .appstore-app-squircle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-product-style-appstore .appstore-prod-info {
    flex: 1;
    min-width: 0;
}

.layout-product-style-appstore .appstore-prod-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--label-primary);
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layout-product-style-appstore .appstore-prod-cat {
    font-size: 0.73rem;
    color: var(--label-secondary);
    margin-bottom: 6px;
}

.layout-product-style-appstore .appstore-prod-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--accent-blue);
}

.layout-product-style-appstore .appstore-pill-btn {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid rgba(10, 132, 255, 0.35);
    color: var(--accent-blue);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.layout-product-style-appstore .appstore-pill-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: scale(1.05);
}


/* ── 3. ROYAL LUXURY (إطار مذهب فاخر وتاج ملكي) ── */
.layout-product-style-luxury .products-luxury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.layout-product-style-luxury .luxury-prod-card {
    background: linear-gradient(135deg, rgba(14, 24, 20, 0.95), rgba(6, 10, 8, 0.98));
    border: 1px solid rgba(229, 184, 105, 0.4);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(229, 184, 105, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.layout-product-style-luxury .luxury-prod-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 184, 105, 0.75);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(229, 184, 105, 0.2);
}

.layout-product-style-luxury .luxury-card-seal {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(229, 184, 105, 0.15);
    border: 1px solid rgba(229, 184, 105, 0.35);
    color: #E5B869;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.layout-product-style-luxury .luxury-buy-btn {
    background: linear-gradient(135deg, #F3D089, #C99738);
    color: #060A08;
    font-weight: 900;
    font-size: 0.92rem;
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(229, 184, 105, 0.3);
    transition: all 0.2s;
}

.layout-product-style-luxury .luxury-buy-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229, 184, 105, 0.45);
}


/* ── 4. CYBER ARENA (زوايا مشطوفة تقنية وإضاءات نيون مشعة) ── */
.layout-product-style-cyber .products-cyber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.layout-product-style-cyber .cyber-prod-card {
    background: rgba(15, 17, 35, 0.92);
    border: 1px solid #00F0FF;
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.layout-product-style-cyber .cyber-prod-card:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
    border-color: #FF007A;
    transform: translateY(-3px);
}

.layout-product-style-cyber .cyber-status-tag {
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 800;
    color: #00FF9D;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.layout-product-style-cyber .cyber-buy-btn {
    background: linear-gradient(135deg, #00F0FF, #0070DF);
    color: #080914;
    font-family: monospace, 'Cairo', sans-serif;
    font-size: 0.92rem;
    font-weight: 900;
    padding: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transition: all 0.2s;
}

.layout-product-style-cyber .cyber-buy-btn:hover {
    box-shadow: 0 0 25px rgba(255, 0, 122, 0.6);
    color: #ffffff;
    background: linear-gradient(135deg, #FF007A, #00F0FF);
}


/* ── 5. MINIMALIST (قالب مينيمل السريع والمركز) ── */
.layout-product-style-minimal .products-minimal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    margin-bottom: 48px;
}

.layout-product-style-minimal .minimal-prod-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.layout-product-style-minimal .minimal-prod-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.layout-product-style-minimal .minimal-buy-btn {
    background: #8B5CF6;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.layout-product-style-minimal .minimal-buy-btn:hover {
    filter: brightness(1.1);
}


/* ── 6. CARDS MARKETPLACE (بطاقات الكوبونات وقسائم الهدايا) ── */
.layout-product-style-cards .products-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.layout-product-style-cards .voucher-prod-card {
    background: var(--system-bg-card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
    position: relative;
}

.layout-product-style-cards .voucher-prod-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.layout-product-style-cards .voucher-top-ribbon {
    height: 6px;
    background: linear-gradient(90deg, #F59E0B, #EF4444);
}

.layout-product-style-cards .voucher-body {
    padding: 18px;
}

.layout-product-style-cards .voucher-perforated-line {
    border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.layout-product-style-cards .voucher-buy-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #0B0F19;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 11px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.layout-product-style-cards .voucher-buy-btn:hover {
    filter: brightness(1.1);
}
