/*==========================================================
  AL BARAKA TRADERS - PREMIUM PRODUCT CARD
==========================================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #d8004e;
    --primary-dark: #b4004e;
    --footer-bg-start: #082d23;
    --footer-bg-end: #041d16;
    --accent-gold: #F8C948;
    --border-light: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --radius-panel: 24px;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-elevated: 0 20px 40px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Main Card Shell */
.card {
    width: 1000px;
    background: #ffffff;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Base Panel Glassmorphism Accent */
.panel {
    background: #ffffff;
    border-radius: var(--radius-panel);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Header */
.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 36px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-gold); /* Golden bottom line from Design 1 */
}

.header-background {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
}

.header-wave {
    width: 100%;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 2;
}

/* Fixed Box Size with Maxed-out Visible Logo */
.logo {
    width: 74px;
    height: 74px;
    padding: 2px; /* Reduced white padding so logo fills box completely */
    background: #ffffff;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
}

.brand h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* Golden Tagline Color */
.brand p {
    font-size: 15px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 2px;
}

.product-code {
    z-index: 2;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Grid System */
.main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    padding: 24px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    justify-content: space-between;
}

/* White Image Box with High-Contrast Elevation */
.image-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-elevated);
}

.image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-image {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
}

/* Price Panel with Visual Priority */
.price-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    background: linear-gradient(180deg, #ffffff 0%, #fdfbfb 100%);
    box-shadow: var(--shadow-elevated);
}

.price-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.price {
    margin-top: 6px;
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(216, 0, 78, 0.15);
}

.divider {
    margin: 20px 0;
    height: 1px;
    border-top: 2px dashed #cbd5e1;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meta-icon-container {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(216, 0, 78, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.meta-icon-svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-text span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-text strong {
    font-size: 19px;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

/* Info Panel */
.info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.category-badge-outlined {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(216, 0, 78, 0.02);
}

.category-icon {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
}

.info-panel h2 {
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    margin-top: 14px;
    color: var(--text-main);
}

/* QR Panel: Clean WhatsApp CTA without subtext */
.qr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qr-bordered-wrapper {
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 18px;
    background: #ffffff;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(216, 0, 78, 0.08);
}

.qr-image {
    width: 135px;
    height: 135px;
    display: block;
}

.scan-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.scan-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: #25d366;
}

/* Features Bar */
.features-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 24px 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
}

.feature-icon-svg {
    width: 26px;
    height: 26px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.1;
}

.feature-text span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    margin: 0 24px 24px;
    border-radius: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--footer-bg-start), var(--footer-bg-end));
    color: #ffffff;
    text-align: center;
    box-shadow: 0 10px 25px rgba(8, 45, 35, 0.25);
}

.footer p {
    font-size: 15px;
    font-weight: 500;
}

.footer-subtext {
    margin-top: 4px;
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 600;
}

/* ==========================================================
   MOBILE RESPONSIVE
========================================================== */

@media (max-width: 768px){

    body{
        padding:10px;
    }

    .card{
        width:100%;
        max-width:100%;
        border-radius:20px;
    }

    .header{
        flex-direction:column;
        gap:15px;
        text-align:center;
        padding:20px;
    }

    .brand{
        flex-direction:column;
        gap:10px;
    }

    .brand h1{
        font-size:26px;
    }

    .brand p{
        font-size:13px;
    }

    .product-code{
        font-size:15px;
    }

    .main-grid{
        grid-template-columns:1fr;
    }

    .info-panel h2{
        font-size:28px;
        text-align:center;
    }

    .price{
        font-size:42px;
    }

    .features-panel{
        grid-template-columns:repeat(2,1fr);
    }

    .qr-image{
        width:110px;
        height:110px;
    }

    .footer{
        margin:16px;
    }

}