/* =========================
   PAGE WRAPPER
========================= */

.detail-page {
    min-height: 100vh;
    background: #f8fafc;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================
   HEADER
========================= */

.detail-header {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.back-btn {
    text-decoration: none;
    font-weight: 600;
    color: #0f172a;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.2s;
}

.back-btn:hover {
    background: #e5e7eb;
}

/* =========================
   MAIN CONTAINER
========================= */

.detail-container {
    width: 100%;
    max-width: 1100px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    background: white;
    padding: 40px;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   IMAGE
========================= */

.product-image-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    width: 100%;
    max-width: 450px;
    border-radius: 14px;
    object-fit: cover;
}

/* =========================
   INFO
========================= */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
}

.product-category {
    font-size: 14px;
    color: #64748b;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
}

.product-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
}

/* =========================
   ACTIONS
========================= */

.product-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* INPUT */
.qty-input {
    width: 70px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* BUTTONS */
.btn {
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

/* PRIMARY */
.btn.primary {
    background: #0f172a;
    color: white;
}

.btn.primary:hover {
    background: #1e293b;
}

/* GHOST */
.btn.ghost {
    background: #e5e7eb;
    color: #0f172a;
}

.btn.ghost:hover {
    background: #d1d5db;
}

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

@media (max-width: 768px) {
    .detail-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .product-image {
        max-width: 100%;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
}