/* =====================================================
   DUKASMART — PREMIUM PRODUCT DETAIL PAGE
===================================================== */

/* =============================
   CONTAINER
============================= */
.marketplace-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 22px 60px;
}

/* =============================
   CARD BASE
============================= */
.card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.98),
            rgba(248,250,252,0.95)
        );

    border: 1px solid rgba(226,232,240,0.9);

    border-radius: 28px;

    box-shadow:
        0 10px 30px rgba(15,23,42,0.05);

    overflow: hidden;

    position: relative;

    margin-bottom: 28px;
}

/* subtle glow */
.card::before {
    content: '';

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(34,197,94,0.05),
            transparent 35%
        );

    pointer-events: none;
}

/* =============================
   LABELS
============================= */
.card-label {
    display: inline-flex;
    align-items: center;

    margin: 24px 24px 0;

    padding: 8px 16px;

    border-radius: 999px;

    background: rgba(34,197,94,0.08);

    border: 1px solid rgba(34,197,94,0.18);

    color: #16a34a;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card-label.small {
    margin: 0 0 16px 0;
    padding: 7px 14px;
    font-size: 0.64rem;
}

/* =============================
   PRODUCT OVERVIEW
============================= */
.product-overview {
    padding: 26px;
}

.product-top {
    display: grid;

    grid-template-columns:
        minmax(420px, 1.3fr)
        minmax(320px, 1fr)
        340px;

    gap: 24px;

    align-items: stretch;
}

/* =============================
   SHARED PANEL STYLE
============================= */
.product-image,
.product-info-main,
.shop-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.92),
            rgba(248,250,252,0.95)
        );

    border: 1px solid rgba(226,232,240,0.9);

    border-radius: 24px;

    overflow: hidden;
}

/* =============================
   IMAGE SECTION
============================= */
.product-image {
    padding: 14px;

    min-height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f7
        );
}

.product-image img {
    width: 100%;
    height: 100%;

    min-height: 490px;

    object-fit: cover;

    border-radius: 18px;

    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.product-image:hover img {
    transform: scale(1.03);
    filter: saturate(1.04);
}

/* =============================
   PRODUCT INFO
============================= */
.product-info-main {
    padding: 34px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-category {
    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #64748b;

    margin-bottom: 12px;
}

.product-info-main h1 {
    font-size: 2.3rem;
    line-height: 1.1;

    font-weight: 800;

    color: #0f172a;

    margin-bottom: 18px;

    letter-spacing: -0.04em;
}

.product-price {
    font-size: 2.4rem;
    font-weight: 800;

    color: #16a34a;

    margin-bottom: 20px;

    letter-spacing: -0.03em;
}

/* =============================
   TAGS
============================= */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 22px;
}

.product-tags span {
    display: inline-flex;
    align-items: center;

    padding: 8px 14px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(34,197,94,0.08),
            rgba(255,255,255,0.95)
        );

    border: 1px solid rgba(34,197,94,0.18);

    color: #15803d;

    font-size: 0.78rem;
    font-weight: 600;
}

/* =============================
   DESCRIPTION
============================= */
.product-desc {
    margin-top: 10px;

    padding-top: 20px;

    border-top: 1px solid rgba(226,232,240,0.9);

    color: #475569;

    line-height: 1.8;

    font-size: 0.95rem;
}

/* =============================
   SHOP CARD
============================= */
.shop-card {
    padding: 26px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.96),
            rgba(241,245,249,0.96)
        );
}

/* seller top */
.shop-header {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
}

.shop-header img {
    width: 68px;
    height: 68px;

    object-fit: cover;

    border-radius: 18px;

    border: 1px solid rgba(226,232,240,0.9);

    box-shadow:
        0 6px 20px rgba(15,23,42,0.08);
}

.shop-header h3 {
    font-size: 1.05rem;
    font-weight: 700;

    color: #0f172a;

    margin-bottom: 4px;
}

.shop-header p {
    font-size: 0.82rem;
    color: #64748b;
}

/* meta */
.shop-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;

    margin: 22px 0;

    padding: 20px 0;

    border-top: 1px solid rgba(226,232,240,0.9);
    border-bottom: 1px solid rgba(226,232,240,0.9);
}

.shop-meta span {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #334155;

    font-size: 0.88rem;
    font-weight: 500;
}

.shop-meta span::before {
    content: '';

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #16a34a;

    box-shadow:
        0 0 0 4px rgba(34,197,94,0.14);
}

/* =============================
   BUTTON
============================= */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 16px 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #16a34a,
            #15803d
        );

    color: white;

    font-size: 0.92rem;
    font-weight: 700;

    letter-spacing: 0.01em;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 24px rgba(22,163,74,0.25);
}

/* =============================
   PRODUCT GRID
============================= */
.product-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(240px, 1fr));

    gap: 22px;

    padding: 26px;
}

/* =============================
   PRODUCT CARD
============================= */
.product-card {
    background: white;

    border-radius: 22px;

    overflow: hidden;

    border: 1px solid rgba(226,232,240,0.9);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;

    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);

    border-color: rgba(34,197,94,0.25);

    box-shadow:
        0 16px 34px rgba(15,23,42,0.08);
}

.product-card img {
    width: 100%;
    height: 220px;

    object-fit: cover;
}

.product-card-body {
    padding: 16px;
}

.product-card h4 {
    font-size: 0.92rem;
    font-weight: 600;

    color: #0f172a;

    margin-bottom: 8px;

    line-height: 1.5;
}

.product-card p {
    font-size: 1rem;
    font-weight: 700;

    color: #16a34a;
}

/* =============================
   CATEGORIES
============================= */
.category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    padding: 24px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.98),
            rgba(241,245,249,0.96)
        );

    border: 1px solid rgba(226,232,240,0.9);

    color: #334155;

    font-size: 0.82rem;
    font-weight: 600;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.category-chip:hover {
    background:
        linear-gradient(
            135deg,
            #16a34a,
            #15803d
        );

    color: white;

    transform: translateY(-2px);
}

/* =============================
   TABLET
============================= */
@media (max-width: 1200px) {

    .product-top {
        grid-template-columns: 1fr 1fr;
    }

    .shop-card {
        grid-column: 1 / -1;
    }
}

/* =============================
   MOBILE
============================= */
@media (max-width: 900px) {

    .marketplace-container {
        padding: 22px 14px 40px;
    }

    .product-top {
        grid-template-columns: 1fr;
    }

    .product-image {
        min-height: auto;
    }

    .product-image img {
        min-height: 340px;
    }

    .product-info-main {
        padding: 24px;
    }

    .product-info-main h1 {
        font-size: 1.7rem;
    }

    .product-price {
        font-size: 2rem;
    }

    .shop-card {
        padding: 22px;
    }

    .product-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(180px, 1fr));

        gap: 16px;

        padding: 20px;
    }
}

/* =============================
   SMALL MOBILE
============================= */
@media (max-width: 560px) {

    .product-overview {
        padding: 16px;
    }

    .card {
        border-radius: 22px;
    }

    .product-image img {
        min-height: 260px;
    }

    .product-info-main {
        padding: 20px;
    }

    .product-info-main h1 {
        font-size: 1.45rem;
    }

    .product-price {
        font-size: 1.7rem;
    }

    .product-tags span {
        font-size: 0.68rem;
        padding: 7px 11px;
    }

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

    .category-row {
        padding: 18px;
    }

    .category-chip {
        width: 100%;
        justify-content: center;
    }
}