
:root {
    --navy: #152338;
    --gold: #DDBB67;
    --ivory: #F5F0E5;
    --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--navy);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
a { color: var(--gold); }
.container {
    width: min(1120px, 92%);
    margin: auto;
}
header {
    border-bottom: 1px solid var(--gold);
    background: #101c2d;
}
.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
}
.brand {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
nav a {
    text-decoration: none;
    font-size: 14px;
}
.hero {
    text-align: center;
    padding: 40px 0 30px;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.2;
    margin-bottom: 15px;
}
.eyebrow {
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 1.5px;
    font-size: 13px;
}
.shipping-banner {
    background: var(--gold);
    color: var(--navy);
    text-align: center;
    padding: 22px;
    border-radius: 6px;
    margin-bottom: 28px;
}
.shipping-banner h2 {
    font-size: clamp(23px, 4vw, 34px);
    line-height: 1.2;
    margin: 0 0 5px;
}
.shipping-banner strong { font-size: 20px; }
.shipping-banner p { margin: 5px 0; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.product {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.product h2 { margin-bottom: 6px; }
.product h3 {
    font-size: 15px;
    margin: 8px 0 0;
}
.product p {
    font-size: 14px;
    margin-bottom: 10px;
}
.photo { display: block; }
.photo img {
    width: 100%;
    height: auto;
    display: block;
}
.price {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
}
.button {
    display: block;
    background: var(--gold);
    color: var(--navy);
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 18px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}
.panel {
    background: var(--ivory);
    color: var(--navy);
    border-radius: 8px;
    padding: 28px;
    margin-top: 28px;
}
.table-scroll { overflow-x: auto; }
table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
}
th, td {
    padding: 14px 10px;
    border-bottom: 1px solid #d7cdb6;
}
th {
    background: var(--navy);
    color: var(--gold);
}
.order-line {
    display: grid;
    grid-template-columns: 1fr 100px 110px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #d7cdb6;
}
.order-line input {
    width: 100%;
    padding: 10px;
    font: inherit;
    border: 1px solid #999;
    border-radius: 4px;
}
.line-total { text-align: right; }
#order-summary {
    background: var(--white);
    border: 1px solid #d7cdb6;
    border-radius: 6px;
    padding: 18px;
    margin-top: 20px;
}
.summary-total {
    font-size: 28px;
    font-weight: bold;
}
.legacy {
    text-align: center;
    padding: 40px 10px;
}
.legacy h2 { color: var(--gold); }
footer {
    background: #101c2d;
    border-top: 1px solid var(--gold);
    padding: 30px 0;
    text-align: center;
}
footer strong {
    color: var(--gold);
    letter-spacing: 2px;
}
footer p { font-size: 13px; }
@media (max-width: 700px) {
    .product-grid { grid-template-columns: 1fr; }
    .navigation { justify-content: center; }
    .product { padding: 20px; }
    .panel { padding: 18px; }
    .order-line {
        grid-template-columns: 1fr 70px 80px;
        gap: 8px;
        font-size: 13px;
    }
    th, td { padding: 10px 6px; }
}

/* Wholesale customer form */
#wholesale-form {
    margin-top: 30px;
    border-top: 1px solid #d7cdb6;
    padding-top: 25px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.form-grid label {
    display: block;
    font-size: 14px;
    font-weight: bold;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: white;
    color: #152338;
    font: inherit;
    font-weight: normal;
}
.full-width {
    grid-column: 1 / -1;
}
.payment-notice {
    background: white;
    border-left: 4px solid #DDBB67;
    padding: 18px;
    margin: 24px 0;
}
.payment-notice p {
    margin: 5px 0 0;
    font-size: 14px;
}
.submit-order {
    width: 100%;
    border: 0;
    font-size: 17px;
    padding: 16px;
}
.submit-order:disabled {
    opacity: .6;
    cursor: not-allowed;
}
#submission-result {
    font-weight: bold;
    margin: 15px 0;
    overflow-wrap: anywhere;
}
@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Supporting pages */
.information-page {
    margin-bottom: 30px;
    padding: 35px;
}
.information-page h2 {
    margin-top: 28px;
    font-size: 21px;
}
.information-page a:not(.button),
.detail-link {
    color: #152338;
    text-decoration: underline;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.detail-grid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
@media (max-width: 700px) {
    .detail-grid { grid-template-columns: 1fr; }
    .information-page { padding: 20px; }
}


/* Golden Value Personal Technology */
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-align: center;
}

.brand-name {
    color: var(--gold);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-subtitle {
    color: var(--white);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    word-spacing: 2px;
    margin-top: 5px;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

@media (max-width: 700px) {
    .brand-name { font-size: 28px; }
    .brand-subtitle { font-size: 10px; }
}


/* Golden Value Order Confirmation */

[hidden] {
    display: none !important;
}

#order-confirmation {
    max-width: 760px;
    margin: 24px auto;
    background: #ffffff;
    color: #17243a;
    border: 1px solid #d5b36a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    scroll-margin-top: 24px;
}

.confirmation-header {
    background: #142238;
    color: #ffffff;
    padding: 28px 24px;
    text-align: center;
}

.confirmation-header strong {
    color: #d5b36a;
    font-size: 24px;
    letter-spacing: 2px;
}

.confirmation-header h2 {
    color: #ffffff;
    margin: 12px 0 8px;
}

.confirmation-header p {
    color: #ffffff;
    margin: 0;
}

.confirmation-content {
    padding: 28px;
}

.confirmation-status {
    display: inline-block;
    background: #fff4d9;
    color: #795500;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.confirmation-total {
    background: #f1f7f2;
    border: 1px solid #b8d5bd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.confirmation-total span {
    display: block;
    font-size: 15px;
}

.confirmation-total strong {
    display: block;
    color: #216638;
    font-size: 36px;
    margin-top: 6px;
}

.confirmation-content h3 {
    color: #142238;
    margin: 24px 0 10px;
}

.confirmation-content pre {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f5f7fa;
    color: #17243a;
    padding: 18px;
    border: 1px solid #dce2e9;
    border-radius: 8px;
    margin: 0 0 20px;
}

#confirmation-payment {
    background: #fffaf0;
    border-color: #d5b36a;
}

#confirmation-email {
    background: #eef4fa;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-wrap: anywhere;
}

.confirmation-save-notice {
    font-weight: 600;
}

#print-confirmation {
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
}

#confirmation-reference {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .confirmation-content {
        padding: 16px;
    }

    .confirmation-header {
        padding: 22px 16px;
    }

    .confirmation-total strong {
        font-size: 30px;
    }

    .confirmation-content pre {
        padding: 12px;
        font-size: 14px;
    }
}

@media print {
    body:has(#order-confirmation:not([hidden])) {
        background: #ffffff !important;
    }

    body:has(#order-confirmation:not([hidden]))
    > :not(main) {
        display: none !important;
    }

    body:has(#order-confirmation:not([hidden]))
    main > :not(#order) {
        display: none !important;
    }

    body:has(#order-confirmation:not([hidden]))
    #order > :not(#order-confirmation) {
        display: none !important;
    }

    #order-confirmation:not([hidden]) {
        width: 100%;
        max-width: none;
        margin: 0;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    #order-confirmation .confirmation-header {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 8px;
    }

    #order-confirmation .confirmation-header * {
        color: #000000 !important;
    }

    #order-confirmation .confirmation-content {
        padding: 8px;
    }

    #order-confirmation pre {
        background: #ffffff !important;
        font-size: 11pt;
        padding: 10px;
        break-inside: avoid;
    }

    #order-confirmation h3 {
        break-after: avoid;
    }

    #order-confirmation .confirmation-total {
        break-inside: avoid;
    }

    #print-confirmation,
    .confirmation-save-notice {
        display: none !important;
    }
}


@media print {
    body:has(#order-confirmation:not([hidden])) main,
    body:has(#order-confirmation:not([hidden])) #order {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
}


/* Confirmation Payment Action Notice */

.confirmation-payment-alert {
    background: #fff4d9;
    border: 2px solid #d5b36a;
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 24px;
    color: #503800;
    line-height: 1.6;
}

.confirmation-payment-alert > strong {
    display: block;
    color: #795500;
    font-size: 18px;
    margin-bottom: 12px;
}

.confirmation-payment-alert p {
    margin: 10px 0;
    color: #503800;
}

.confirmation-payment-alert a {
    color: #795500;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .confirmation-payment-alert {
        padding: 14px;
    }

    .confirmation-payment-alert > strong {
        font-size: 16px;
    }
}

@media print {
    .confirmation-payment-alert {
        background: #ffffff !important;
        border: 1px solid #777777;
        break-inside: avoid;
    }
}
