/* =========================================================
   HAMZAPUBLICATIONS
   PRODUCT / ORDER / RECEIPT PAGES
========================================================= */

* {
    box-sizing: border-box;
}

body.product-body {
    margin: 0;
    background: #f4f4f4;
    color: #171717;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}


/* =========================================================
   PRODUCT PAGE HEADER
========================================================= */

.product-header {
    background: #050505;
    border-bottom: 2px solid #ffd000;
}

.product-header-inner {
    width: 94%;
    max-width: 1350px;
    min-height: 75px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.product-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    text-decoration: none;
}

.product-brand img {
    width: 52px;
    height: 52px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid #ffd000;
}

.product-brand strong {
    display: block;

    color: #ffd000;

    font-size: 20px;

    font-weight: 900;
}

.product-brand span {
    display: block;

    margin-top: 3px;

    color: #aaa;

    font-size: 10px;

    letter-spacing: 1px;
}

.product-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.product-header-actions a {
    text-decoration: none;

    padding: 10px 14px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: 900;
}

.back-store-btn {
    background: #ffd000;
    color: #000;
}

.whatsapp-top-btn {
    background: #181818;
    color: white;

    border: 1px solid #444;
}


/* =========================================================
   MAIN PRODUCT AREA
========================================================= */

.product-view-container {
    width: 94%;
    max-width: 1250px;

    margin: 35px auto 60px;
}

.product-back-link {
    display: inline-block;

    margin-bottom: 18px;

    color: #333;

    text-decoration: none;

    font-size: 13px;

    font-weight: 900;
}


/* =========================================================
   TWO COLUMN PRODUCT LAYOUT
========================================================= */

.product-order-layout {
    display: grid;

    grid-template-columns:
        minmax(320px, 0.85fr)
        minmax(450px, 1.15fr);

    gap: 28px;

    align-items: start;
}


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

.notes-image-card {
    background: #fff;

    padding: 18px;

    border-radius: 13px;

    border: 1px solid #ddd;

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

    position: sticky;

    top: 100px;
}

.notes-main-image {
    display: block;

    width: 100%;
    height: auto;

    max-height: 620px;

    object-fit: contain;

    background: #f8f8f8;

    border-radius: 8px;
}

.notes-image-missing {
    width: 100%;
    height: 500px;

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

    background: #111;

    color: #ffd000;

    border-radius: 8px;

    font-size: 19px;

    font-weight: 900;
}

.notes-image-caption {
    margin-top: 13px;

    color: #666;

    font-size: 11px;

    text-align: center;
}


/* =========================================================
   RIGHT PRODUCT DETAILS
========================================================= */

.order-right-column {
    display: grid;
    gap: 18px;
}


/* PRODUCT SUMMARY */

.notes-summary-card {
    background: #fff;

    padding: 22px;

    border-radius: 13px;

    border: 1px solid #ddd;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.05);
}

.notes-tags {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;

    margin-bottom: 12px;
}

.notes-tag {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    background: #111;

    color: #ffd000;

    font-size: 10px;

    font-weight: 900;
}

.notes-summary-card h1 {
    margin: 0 0 10px;

    color: #111;

    font-size: 27px;

    line-height: 1.15;

    font-weight: 900;
}

.notes-description {
    color: #555;

    font-size: 12px;

    line-height: 1.7;

    text-transform: uppercase;
}

.notes-price-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-top: 18px;

    padding-top: 17px;

    border-top: 1px solid #eee;
}

.notes-price {
    color: #111;

    font-size: 28px;

    font-weight: 900;
}

.notes-price span {
    color: #d49e00;
}

.notes-stock {
    display: inline-block;

    padding: 7px 11px;

    border-radius: 20px;

    background: #ecf9ef;

    color: #14752c;

    font-size: 10px;

    font-weight: 900;
}

.notes-stock.out {
    background: #ffe9e9;
    color: #a72020;
}

.notes-stock-sub {
    display: inline-block;
    margin-top: 3px;
    color: #111;
    font-size: 9px;
    letter-spacing: .2px;
}


/* =========================================================
   LIGHT ORDER FORM
========================================================= */

.light-order-card {
    background: #fff;

    padding: 24px;

    border-radius: 13px;

    border: 1px solid #ddd;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.05);
}

.light-order-card h2 {
    margin: 0;

    color: #111;

    font-size: 23px;

    font-weight: 900;
}

.order-subtitle {
    margin:
        7px 0 20px;

    color: #777;

    font-size: 11px;

    line-height: 1.6;
}

.light-form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}

.light-form-group {
    margin: 0;
}

.light-form-group.full {
    grid-column:
        1 / -1;
}

.light-form-group label {
    display: block;

    margin-bottom: 6px;

    color: #222;

    font-size: 11px;

    font-weight: 900;
}

.light-form-group input,
.light-form-group textarea,
.light-form-group select {
    width: 100%;

    background: #fff;

    color: #111;

    border: 1px solid #ccc;

    border-radius: 7px;

    padding: 12px 13px;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;

    font-weight: 700;

    text-transform: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.light-form-group textarea {
    resize: vertical;
}

.light-form-group input:focus,
.light-form-group textarea:focus,
.light-form-group select:focus {
    outline: none;

    border-color: #e4b000;

    box-shadow:
        0 0 0 3px
        rgba(255, 208, 0, 0.13);
}

.light-form-group input::placeholder,
.light-form-group textarea::placeholder {
    color: #aaa;

    font-weight: 600;

    text-transform: none;
}


/* BUNDLE SUBJECT SELECTOR */
.bundle-choice-group {
    padding: 16px;
    border: 1px solid #e0bd35;
    border-radius: 10px;
    background: #fff9df;
}

.bundle-choice-help {
    margin: 0 0 12px;
    color: #666;
    font-size: 10px;
    line-height: 1.5;
}

.bundle-subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.bundle-subject-option {
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #111 !important;
    cursor: pointer;
}

.bundle-subject-option input {
    width: 18px !important;
    height: 18px;
    margin: 0;
    accent-color: #e3aa00;
}

.bundle-subject-option span {
    font-size: 11px;
    font-weight: 900;
}

.bundle-subject-option:has(input:checked) {
    border-color: #d6a000;
    background: #fff1ac;
}

.bundle-counter {
    margin-top: 10px;
    color: #8a6200;
    font-size: 11px;
    font-weight: 900;
}

.bundle-counter.complete {
    color: #14752c;
}


/* ORDER BUTTON */

.place-order-btn {
    width: 100%;

    margin-top: 20px;

    padding: 14px 18px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #ffd000,
            #ffad00
        );

    color: #000;

    font-size: 15px;

    font-weight: 900;

    text-transform: uppercase;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

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

    box-shadow:
        0 8px 22px
        rgba(255, 190, 0, .25);
}

.order-help {
    margin-top: 13px;

    text-align: center;

    color: #777;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   OUT OF STOCK
========================================================= */

out-of-stock {
    display: block;
}

.order-unavailable {
    background: #fff;

    padding: 24px;

    border-radius: 13px;

    border: 1px solid #ddd;

    color: #a52020;

    text-align: center;
}


/* =========================================================
   RECEIPT PAGE
========================================================= */

body.receipt-body {
    margin: 0;

    background: #f4f4f4;

    color: #171717;

    font-family: Arial, Helvetica, sans-serif;

    font-weight: 700;
}

.receipt-page {
    width: 94%;
    max-width: 820px;

    margin:
        45px auto 70px;
}

.receipt-card {
    overflow: hidden;

    background: #fff;

    border-radius: 15px;

    border: 1px solid #ddd;

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.08);
}


/* RECEIPT TOP */

.receipt-top {
    background:
        linear-gradient(
            135deg,
            #050505,
            #181818
        );

    padding:
        28px;

    color: white;

    text-align: center;

    border-bottom:
        5px solid #ffd000;
}

.receipt-logo {
    width: 78px;
    height: 78px;

    object-fit: cover;

    border-radius: 50%;

    border:
        3px solid #ffd000;
}

.receipt-top h1 {
    margin:
        13px 0 5px;

    color: #ffd000;

    font-size: 25px;

    font-weight: 900;

    text-transform: uppercase;
}

.receipt-top p {
    margin: 0;

    color: #ccc;

    font-size: 11px;

    text-transform: uppercase;
}


/* SUCCESS ICON */

.receipt-success {
    width: 70px;
    height: 70px;

    margin:
        25px auto 10px;

    border-radius: 50%;

    background: #eaf8ee;

    color: #187a34;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 34px;

    font-weight: 900;
}

.receipt-heading {
    text-align: center;

    margin-bottom: 25px;
}

.receipt-heading h2 {
    margin:
        0 0 7px;

    color: #111;

    font-size: 25px;

    text-transform: uppercase;
}

.receipt-heading p {
    margin: 0;

    color: #666;

    font-size: 11px;

    text-transform: uppercase;
}


/* RECEIPT BODY */

.receipt-content {
    padding:
        0 30px 30px;
}

.receipt-number-box {
    background: #fff8d6;

    border:
        1px solid #f1d456;

    border-radius: 8px;

    padding: 15px;

    margin-bottom: 22px;

    text-align: center;
}

.receipt-number-label {
    display: block;

    color: #777;

    font-size: 10px;

    text-transform: uppercase;
}

.receipt-number {
    display: block;

    margin-top: 5px;

    color: #111;

    font-size: 25px;

    font-weight: 900;
}


/* INFO GRID */

.receipt-info-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-bottom: 25px;
}

.receipt-info-box {
    background: #f8f8f8;

    border: 1px solid #e5e5e5;

    border-radius: 8px;

    padding: 13px;
}

.receipt-info-label {
    display: block;

    margin-bottom: 5px;

    color: #888;

    font-size: 9px;

    text-transform: uppercase;
}

.receipt-info-value {
    color: #222;

    font-size: 12px;

    font-weight: 900;
}


/* RECEIPT TABLE */

.receipt-table-wrapper {
    overflow-x: auto;

    margin-bottom: 20px;
}

.receipt-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 520px;
}

.receipt-table th {
    padding: 11px;

    background: #111;

    color: #ffd000;

    text-align: left;

    font-size: 10px;

    text-transform: uppercase;
}

.receipt-table td {
    padding: 12px 11px;

    border-bottom: 1px solid #eee;

    color: #333;

    font-size: 11px;
}

.receipt-total {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding:
        16px 18px;

    background: #111;

    color: white;

    border-radius: 8px;
}

.receipt-total span:first-child {
    font-size: 12px;

    text-transform: uppercase;
}

.receipt-total span:last-child {
    color: #ffd000;

    font-size: 22px;

    font-weight: 900;
}


/* RECEIPT BUTTONS */

.receipt-actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 22px;
}

.receipt-btn {
    flex: 1;

    min-width: 170px;

    display: inline-flex;

    justify-content: center;

    align-items: center;

    text-decoration: none;

    border: none;

    cursor: pointer;

    padding:
        12px 16px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 900;

    text-transform: uppercase;
}

.receipt-print-btn {
    background: #ffd000;

    color: #000;
}

.receipt-shop-btn {
    background: #111;

    color: white;
}

.receipt-whatsapp-btn {
    background: #f1f1f1;

    color: #111;

    border: 1px solid #ddd;
}

.receipt-support {
    margin-top: 20px;

    text-align: center;

    color: #777;

    font-size: 10px;

    line-height: 1.6;

    text-transform: uppercase;
}


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

@media (max-width: 850px) {

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

    .notes-image-card {
        position: static;
    }

    .notes-main-image {
        max-height: 550px;
    }
}


@media (max-width: 650px) {

    .product-header-inner {
        flex-direction: column;

        align-items: flex-start;

        padding:
            12px 0;
    }

    .product-header-actions {
        width: 100%;

        overflow-x: auto;
    }

    .light-form-grid {
        grid-template-columns: 1fr;
    }

    .light-form-group.full {
        grid-column: auto;
    }

    .notes-summary-card,
    .light-order-card {
        padding: 18px;
    }

    .notes-summary-card h1 {
        font-size: 22px;
    }

    .notes-price {
        font-size: 23px;
    }

    .notes-price-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .receipt-info-grid {
        grid-template-columns: 1fr;
    }

    .receipt-content {
        padding:
            0 18px 22px;
    }

    .receipt-actions {
        flex-direction: column;
    }

    .receipt-btn {
        width: 100%;
    }
}


/* =========================================================
   PRINT RECEIPT
========================================================= */

@media print {

    body.receipt-body {
        background: white;
    }

    .product-header,
    .receipt-actions,
    .receipt-support {
        display: none !important;
    }

    .receipt-page {
        width: 100%;

        max-width: none;

        margin: 0;
    }

    .receipt-card {
        border: none;

        box-shadow: none;
    }
}

@media (max-width: 600px) {
    .bundle-subject-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep full book cover and academy logo visible */
.notes-main-image { object-fit:contain; object-position:center; }
.product-brand img, .receipt-logo { object-fit:contain; object-position:center; }

/* =========================================================
   2026-11-20 — FINAL MOBILE PRODUCT / ORDER / RECEIPT TUNING
   Keeps the academy's original black/yellow and white-card design.
========================================================= */
html { -webkit-text-size-adjust: 100%; }
.product-header a:focus-visible,
.product-view-container a:focus-visible,
.place-order-btn:focus-visible,
.receipt-actions a:focus-visible,
.receipt-actions button:focus-visible {
    outline: 3px solid #d49e00;
    outline-offset: 3px;
}
.light-form-group input,
.light-form-group select,
.light-form-group textarea { min-width: 0; }
.notes-description,
.receipt-info-value { overflow-wrap: anywhere; }

@media (min-width: 651px) and (max-width: 950px) {
    .product-header-inner { flex-wrap: wrap; padding: 12px 0; }
    .product-header-actions { margin-left: auto; }
    .product-view-container { width: 94%; }
    .notes-image-card { position: static; }
}

@media (max-width: 760px) {
    body.product-body,
    body.receipt-body { width: 100%; min-width: 0; overflow-x: clip; }
    .product-header-inner {
        width: 100%;
        min-height: 0;
        padding: 10px 12px;
        gap: 9px;
    }
    .product-brand { flex: 1 1 auto; min-width: 0; }
    .product-brand img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
    .product-brand strong { font-size: clamp(13px, 3.4vw, 17px); overflow-wrap: anywhere; }
    .product-brand span { font-size: 9px; letter-spacing: 0; }
    .product-header-actions { gap: 6px; flex-wrap: wrap; }
    .product-header-actions a { display: inline-flex; min-height: 40px; align-items: center; font-size: 11px; padding: 9px; }
    .product-view-container { width: 100%; max-width: 100%; padding: 14px 12px 35px; margin: 0 auto; }
    .product-order-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .notes-image-card, .order-right-column,
    .notes-summary-card, .light-order-card { width: 100%; min-width: 0; max-width: 100%; }
    .notes-image-card { position: static; padding: 12px; }
    .notes-main-image { max-height: 400px; object-fit: contain; }
    .notes-summary-card, .light-order-card { padding: 18px 14px; }
    .notes-summary-card h1 { font-size: clamp(21px, 6vw, 28px); }
    .light-form-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .light-form-group, .light-form-group.full { width: 100%; min-width: 0; grid-column: 1 / -1; }
    .light-form-group input, .light-form-group select, .light-form-group textarea {
        width: 100%; max-width: 100%; min-height: 45px; font-size: 16px;
    }
    .place-order-btn { min-height: 48px; font-size: 13px; white-space: normal; }
    .receipt-page { width: 100%; max-width: 100%; padding: 12px; margin: 0 auto 40px; }
    .receipt-top { padding: 22px 14px; }
    .receipt-table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .receipt-total { gap: 14px; flex-wrap: wrap; }
}

@media (max-width: 390px) {
    .product-header-actions a { padding: 8px; font-size: 10px; }
    .product-brand span { font-size: 7px; }
    .bundle-subject-grid { grid-template-columns: minmax(0, 1fr); }
    .receipt-total span:last-child { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    .place-order-btn { transition: none; }
}
