/*
Theme Name: Single Product Store Theme
Theme URI: https://example.com
Author: Single Product Store
Description: ثيم متجر منتج واحد باللغة العربية مع دعم RTL
Version: 2.0.0
Text Domain: single-product-store-theme
*/

/* =====================================================
   DESIGN TOKENS — all values live here, nowhere else.
   Colors bridge to --wp--preset--color--* (theme.json).
   Alpha / derived tokens are defined below.
   ===================================================== */
:root {
    /* ── Palette bridges ─────────────────────────────── */
    --color-bg:             var(--wp--preset--color--bg-main);
    --color-section-bg:     var(--wp--preset--color--bg-section);
    --color-form-bg:        var(--wp--preset--color--card);
    --color-input-bg:       var(--wp--preset--color--input);
    --color-input-focus:    var(--wp--preset--color--input-dark);
    --color-btn-primary:    var(--wp--preset--color--primary);
    --color-btn-hover:      var(--wp--preset--color--primary-dark);
    --color-text-primary:   var(--wp--preset--color--text-main);
    --color-text-secondary: var(--wp--preset--color--text-muted);
    --color-accent:         var(--wp--preset--color--accent);
    --color-header-bg:      var(--wp--preset--color--primary-dark);
    --color-footer-bg:      var(--wp--preset--color--footer-bg);
    --color-footer-text:    var(--wp--preset--color--footer-text);
    --color-white:          var(--wp--preset--color--white);
    --color-border:         var(--wp--preset--color--border);
    --color-link:           var(--wp--preset--color--primary);
    --color-link-hover:     var(--wp--preset--color--primary-dark);
    --color-price:          var(--wp--preset--color--primary);
    --color-price-before:   var(--wp--preset--color--text-muted);
    --color-total-row-sep:  var(--wp--preset--color--border);
    --color-error:          var(--wp--preset--color--error);
    --color-error-bg:       var(--wp--preset--color--error-bg);
    --color-error-border:   var(--wp--preset--color--error-border);
    --color-success:        var(--wp--preset--color--success);
    --color-success-bg:     var(--wp--preset--color--success-bg);
    --color-success-border: var(--wp--preset--color--success-border);

    /* ── Alpha / shadow tokens ───────────────────────── */
    --color-white-alpha-40:   rgba(255, 255, 255, 0.40);
    --color-white-alpha-60:   rgba(255, 255, 255, 0.60);
    --color-white-alpha-80:   rgba(255, 255, 255, 0.80);
    --color-primary-focus:    rgba(122, 158, 126, 0.22);
    --color-primary-alpha-08: rgba(122, 158, 126, 0.08);
    --color-primary-alpha-12: rgba(122, 158, 126, 0.12);
    --color-primary-alpha-20: rgba(122, 158, 126, 0.20);
    --color-primary-alpha-25: rgba(122, 158, 126, 0.25);
    --color-primary-alpha-35: rgba(122, 158, 126, 0.35);
    --color-dark-alpha-06:    rgba(61,  53,  48,  0.06);
    --color-dark-alpha-10:    rgba(61,  53,  48,  0.10);

    /* ── Border radii ────────────────────────────────── */
    --radius-btn:   999px;
    --radius-input: 14px;
    --radius-card:  20px;
    --radius-sm:    10px;

    /* ── Shadows ─────────────────────────────────────── */
    --shadow-xs:     0 1px 4px  var(--color-dark-alpha-06);
    --shadow-sm:     0 2px 10px var(--color-primary-alpha-12);
    --shadow-md:     0 6px 24px var(--color-primary-alpha-20);
    --shadow-lg:     0 12px 40px var(--color-primary-alpha-25);
    --shadow-btn:    0 4px 16px var(--color-primary-alpha-25);
    --shadow-btn-hover: 0 8px 28px var(--color-primary-alpha-35);
    --shadow-header: 0 2px 20px var(--color-primary-alpha-20);

    /* ── Transitions ─────────────────────────────────── */
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --transition:    all 0.28s var(--ease);
    --transition-fast: all 0.16s var(--ease);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0);     }
}
@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0   var(--color-primary-focus); }
    70%  { box-shadow: 0 0 0 8px rgba(122, 158, 126, 0);     }
    100% { box-shadow: 0 0 0 0   rgba(122, 158, 126, 0);     }
}

/* =====================================================
   RTL & GLOBAL RESET
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    text-align: right;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    text-align: right;
    color: var(--color-text-primary);
    line-height: 1.4;
}

p {
    text-align: right;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

button, input, textarea, select {
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    transition: var(--transition);
}

button:hover  { transform: translateY(-2px); }
button:active { transform: translateY(0);    }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HEADER — sage-green gradient
   ===================================================== */
.site-header {
    background: linear-gradient(
        135deg,
        var(--color-btn-hover) 0%,
        var(--color-btn-primary) 55%,
        #8CB89F 100%
    );
    color: var(--color-white);
    padding: 20px 0;
    box-shadow: var(--shadow-header);
    position: relative;
    overflow: hidden;
}

/* subtle radial bloom behind the header */
.site-header::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 55%;
    height: 220%;
    background: radial-gradient(ellipse at center, var(--color-white-alpha-40) 0%, transparent 70%);
    pointer-events: none;
}

.site-header .container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.site-title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.site-title a {
    color: var(--color-white);
}
.site-title a:hover {
    text-decoration: none;
    opacity: 0.88;
    transform: none;
}

.site-tagline {
    color: var(--color-white-alpha-80);
    font-size: 0.85rem;
    text-align: right;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    text-align: center;
    padding: 28px 0;
    margin-top: 60px;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.site-main {
    padding: 40px 0 64px;
    animation: fadeIn 0.5s var(--ease) both;
}

/* =====================================================
   PRODUCT PAGE LAYOUT
   ===================================================== */

/* ── Product Hero (image + meta, top section) ── */
.product-hero {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-primary-alpha-12);
}

/* ── Product Image ── */
.product-image {
    flex: 0 0 380px;
    max-width: 380px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-section-bg);
    animation: fadeIn 0.55s var(--ease) both;
    transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.product-image:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.product-image img {
    width: 100%;
    border-radius: var(--radius-card);
    transition: transform 0.45s var(--ease);
}
.product-image:hover img {
    transform: scale(1.03);
}
.product-image .no-image {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-section-bg);
    color: var(--color-text-secondary);
    font-size: 1rem;
    border-radius: var(--radius-card);
}

/* ── Product Meta (title + description + price) ── */
.product-meta {
    flex: 1;
    min-width: 280px;
    animation: fadeInUp 0.6s 0.05s var(--ease) both;
}

.product-meta h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text-primary);
}

.product-description {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-size: 0.97rem;
    line-height: 1.85;
}

/* ── Divider under title ── */
.product-meta h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-btn-primary), var(--color-accent));
    border-radius: 999px;
    margin-top: 10px;
}

/* =====================================================
   ORDER SECTION — full-width below the product hero
   ===================================================== */
.order-section {
    margin-top: 48px;
    animation: fadeInUp 0.65s 0.1s var(--ease) both;
}

/* Two-column grid: form (left) | invoice (right in LTR; right in RTL = start) */
.order-columns {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: flex-start;
}

/* ── Form column ── */
.order-form-col {
    flex: 1;
    min-width: 0;
    background: var(--color-form-bg);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    border: 1px solid var(--color-primary-alpha-08);
    box-shadow: var(--shadow-sm);
}

/* ── Invoice column ── */
.order-invoice-col {
    flex: 0 0 320px;
    position: sticky;
    top: 24px;
}

/* ── Column heading ── */
.col-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-btn-hover);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-primary-alpha-12);
    display: flex;
    align-items: center;
    gap: 8px;
}
.col-heading::before {
    content: '🌿';
    font-size: 1rem;
    order: 1;
}

/* =====================================================
   PRICING
   ===================================================== */
.product-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 22px;
}

.price-before {
    font-size: 1rem;
    color: var(--color-price-before);
    text-decoration: line-through;
    opacity: 0.75;
}

.price-current {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-price);
    letter-spacing: -0.01em;
}

.currency {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* ── Section label inside form ── */
.form-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-btn-primary);
    margin: 20px 0 12px;
    opacity: 0.85;
}

/* =====================================================
   FORM GROUPS
   ===================================================== */
.form-group {
    margin-bottom: 18px;
    animation: slideInRight 0.4s var(--ease) both;
}

.form-group:nth-child(1)  { animation-delay: 0.05s; }
.form-group:nth-child(2)  { animation-delay: 0.10s; }
.form-group:nth-child(3)  { animation-delay: 0.15s; }
.form-group:nth-child(4)  { animation-delay: 0.20s; }
.form-group:nth-child(5)  { animation-delay: 0.25s; }
.form-group:nth-child(6)  { animation-delay: 0.30s; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.form-group label .required-star {
    color: var(--color-accent);
    margin-right: 2px;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-input);
    font-size: 0.95rem;
    direction: rtl;
    text-align: right;
    background-color: var(--color-input-bg);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
    text-align: right;
    direction: rtl;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-btn-primary);
    background-color: var(--color-input-focus);
    box-shadow: 0 0 0 4px var(--color-primary-focus);
    transform: none;
}

.form-group input[type="text"]:hover:not(:focus),
.form-group input[type="number"]:hover:not(:focus),
.form-group input[type="tel"]:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: var(--color-primary-alpha-25);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A9E7E' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: flex;
    flex-direction: row-reverse;
    gap: 16px;
}
.form-row .form-group { flex: 1; }

/* =====================================================
   COUPON SECTION
   ===================================================== */
.coupon-row {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    align-items: flex-end;
}
.coupon-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.btn-coupon {
    padding: 13px 22px;
    background-color: var(--color-white);
    color: var(--color-btn-primary);
    border: 1.5px solid var(--color-btn-primary);
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
    letter-spacing: 0.02em;
}
.btn-coupon:hover {
    background-color: var(--color-btn-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-btn);
}

.coupon-message {
    margin-top: 10px;
    font-size: 0.88rem;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: none;
    text-align: right;
    animation: fadeIn 0.3s var(--ease) both;
}
.coupon-message.success {
    display: block;
    color: var(--color-success);
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
}
.coupon-message.error {
    display: block;
    color: var(--color-error);
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
}

/* =====================================================
   INVOICE / TOTAL BOX
   ===================================================== */
.total-box {
    background: var(--color-white-alpha-60);
    border: 1.5px solid var(--color-primary-alpha-12);
    border-radius: var(--radius-card);
    padding: 22px 26px;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.total-box h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-btn-hover);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--color-primary-alpha-12);
    display: flex;
    align-items: center;
    gap: 8px;
}
.total-box h3::before {
    content: '🧾';
    font-size: 0.95rem;
    order: 1;
}

.total-box .total-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed var(--color-primary-alpha-12);
    transition: background var(--transition-fast);
}
.total-box .total-row:hover {
    background: var(--color-primary-alpha-08);
    border-radius: 8px;
    padding-right: 8px;
    padding-left: 8px;
}
.total-box .total-row:last-child,
.total-box .total-row.grand-total {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--color-btn-primary);
    padding-top: 14px;
    margin-top: 6px;
}

.total-box .total-row .label {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
}
.total-box .total-row .value {
    font-weight: 600;
    color: var(--color-text-primary);
}
.total-box .total-row:last-child .label,
.total-box .total-row.grand-total .label {
    color: var(--color-btn-hover);
    font-weight: 700;
    font-size: 0.95rem;
}
.total-box .total-row:last-child .value,
.total-box .total-row.grand-total .value {
    color: var(--color-btn-primary);
    font-size: 1.1rem;
}

.shipping-info {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.shipping-info::before { content: '🚚'; font-size: 0.9rem; }

#shipping-display {
    color: var(--color-btn-primary);
    font-weight: 700;
}

/* =====================================================
   SUBMIT BUTTON — shimmer gradient on hover
   ===================================================== */
.btn-submit {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(
        135deg,
        var(--color-btn-hover) 0%,
        var(--color-btn-primary) 50%,
        #8CB89F 100%
    );
    background-size: 200% auto;
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-btn);
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 26px;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-btn);
    transition: var(--transition);
    animation: fadeInUp 0.5s 0.35s var(--ease) both;
    position: relative;
    overflow: hidden;
}
.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        var(--color-white-alpha-40) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.btn-submit:hover {
    background-position: right center;
    box-shadow: var(--shadow-btn-hover);
}
.btn-submit:hover::after {
    opacity: 1;
    animation: shimmer 1.2s linear infinite;
}
.btn-submit:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

/* =====================================================
   MESSAGES & ALERTS
   ===================================================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-input);
    margin-bottom: 22px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: right;
    animation: fadeInUp 0.4s var(--ease) both;
}
.alert-error {
    background-color: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid var(--color-error-border);
    border-right: 4px solid var(--color-error);
}
.alert-success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
    border-right: 4px solid var(--color-success);
}

.field-error {
    color: var(--color-error);
    font-size: 0.82rem;
    margin-top: 5px;
    display: block;
    text-align: right;
    animation: fadeIn 0.3s var(--ease) both;
}

.input-error {
    border-color: var(--color-error) !important;
    box-shadow: 0 0 0 3px var(--color-error-bg) !important;
}

/* =====================================================
   THANK YOU PAGE
   ===================================================== */
.thankyou-box {
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.65s var(--ease) both;
    border-top: 4px solid var(--color-btn-primary);
}
.thankyou-icon {
    font-size: 4.5rem;
    margin-bottom: 22px;
    animation: pulse-ring 2s ease 0.5s 2;
    display: inline-block;
}
.thankyou-box h1 {
    font-size: 1.65rem;
    color: var(--color-text-primary);
    margin-bottom: 14px;
    text-align: center;
}
.thankyou-message {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 30px;
    white-space: pre-line;
    text-align: center;
}

/* ── Thank you page: grand total and discount rows ── */
.summary-grand-total {
    border-bottom: none !important;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-btn-primary);
    padding-top: 12px !important;
    margin-top: 6px;
}
.summary-grand-total .s-value {
    color: var(--color-btn-primary);
    font-size: 1.15rem;
    font-weight: 700;
}
.s-discount {
    color: var(--color-success) !important;
    font-weight: 700;
}

/* ── Order summary card (thank you page) ── */
.order-summary-card {
    background: linear-gradient(145deg, var(--color-form-bg), var(--color-section-bg));
    border: 1px solid var(--color-primary-alpha-12);
    border-radius: var(--radius-card);
    padding: 28px;
    text-align: right;
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
}
.order-summary-card h2 {
    font-size: 1.05rem;
    color: var(--color-btn-hover);
    margin-bottom: 18px;
    border-bottom: 1.5px solid var(--color-primary-alpha-20);
    padding-bottom: 10px;
}
.order-summary-card .summary-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-primary-alpha-12);
    font-size: 0.95rem;
    transition: background var(--transition-fast);
}
.order-summary-card .summary-row:hover {
    background: var(--color-primary-alpha-08);
    border-radius: 8px;
    padding-right: 8px;
    padding-left: 8px;
}
.order-summary-card .summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-btn-primary);
    padding-top: 12px;
    margin-top: 6px;
}
.order-summary-card .summary-row .s-label {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
}
.order-summary-card .summary-row .s-value {
    font-weight: 600;
    color: var(--color-text-primary);
}
.order-summary-card .summary-row:last-child .s-value {
    color: var(--color-btn-primary);
    font-size: 1.1rem;
}

.btn-back {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--color-btn-hover), var(--color-btn-primary));
    color: var(--color-white);
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
    letter-spacing: 0.03em;
}
.btn-back:hover {
    box-shadow: var(--shadow-btn-hover);
    text-decoration: none;
    color: var(--color-white);
    filter: brightness(1.05);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .order-columns {
        flex-direction: column;
        gap: 28px;
    }
    .order-form-col,
    .order-invoice-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .order-invoice-col {
        position: static;
    }
    .total-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .product-hero {
        flex-direction: column;
        gap: 24px;
    }
    .product-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .order-form-col,
    .order-invoice-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .order-form-col {
        padding: 22px 16px;
    }
    .total-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 22px 16px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .thankyou-box {
        padding: 28px 18px;
    }
    .coupon-row {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-coupon {
        width: 100%;
        text-align: center;
    }
    .site-header .container {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .site-title        { font-size: 1.25rem; }
    .product-meta h1   { font-size: 1.45rem; }
    .price-current     { font-size: 1.45rem; }
    .btn-submit        { font-size: 1rem; padding: 14px; }
    .thankyou-box      { padding: 22px 14px; }
    .order-form-col    { padding: 16px 12px; }
    .total-box         { padding: 16px 12px; }
    .order-invoice-col { width: 100%; max-width: 100%; box-sizing: border-box; }
}
