/* Main stylesheet manifest. Component styles are split into focused files. */
@import url("./base.css");
@import url("./layout.css");
@import url("./header.css");
@import url("./footer.css");
@import url("./products.css");
@import url("./product-detail.css");
@import url("./admin.css");
@import url("./auth.css");
@import url("./about.css");
@import url("./elegance.css");

/* Centre the 5th tracker step when tracker wraps */
@media (min-width: 901px) {
    .premium-tracker {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .premium-tracker .tracker-step:nth-child(5) {
        grid-column: 2 / 4;
        justify-self: center;
        width: calc(50% - 6px);
    }
}


/* Customer orders page refinement */
.customer-page-shell {
    max-width: 1260px;
    margin: 56px auto;
    padding: 0 24px;
}

.customer-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.customer-page-header h1 {
    margin: 0 0 8px;
    color: #0f2f24;
}

.customer-page-header p {
    margin: 0;
    color: #40584b;
}

.orders-table-card {
    overflow-x: auto;
}

.order-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.premium-action-btn.small {
    min-height: 36px;
    padding: 9px 16px;
    font-size: 13px;
}

/* =========================================================
   PAYMENT SUCCESS PAGE
   Narrow centred confirmation panel
   ========================================================= */

.payment-success-shell {
    max-width: 980px;
    margin: 0 auto 40px;
}

.payment-success-card {
    padding: 32px 28px;
}

.payment-success-header {
    margin-bottom: 22px;
}

.payment-success-header h1 {
    margin-bottom: 12px;
}

.payment-success-summary {
    margin-bottom: 22px;
}

.payment-success-summary p,
.payment-success-card section p {
    margin-bottom: 14px;
}

.payment-success-card hr {
    margin: 24px 0 24px;
}

.payment-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

/* =========================================================
   CHECKOUT AND DELIVERY CONFIRMATION
   Centred storefront transaction panels
   ========================================================= */

.checkout-page-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 40px;
}

.checkout-page-shell > .checkout-card,
.checkout-page-shell > .checkout-confirm-card {
    width: 100%;
    margin: 0;
}

.checkout-page-shell .checkout-card,
.checkout-page-shell .checkout-confirm-card {
    padding: 32px 28px;
}

.checkout-page-shell form {
    width: 100%;
}

.checkout-page-shell input,
.checkout-page-shell select,
.checkout-page-shell textarea {
    width: 100%;
}

.checkout-page-shell textarea {
    min-height: 110px;
    resize: vertical;
}

.checkout-page-shell .checkout-profile-note {
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .checkout-page-shell {
        max-width: 100%;
        margin-bottom: 28px;
    }

    .checkout-page-shell .checkout-card,
    .checkout-page-shell .checkout-confirm-card {
        padding: 24px 18px;
    }

    .checkout-page-shell .checkout-profile-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .payment-success-shell {
        max-width: 100%;
    }

    .payment-success-card {
        padding: 24px 18px;
    }

    .payment-success-actions {
        gap: 12px;
    }
}

@media (max-width: 800px) {
    .customer-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

.checkout-profile-note {
    margin: 18px 0 24px;
    padding: 16px 18px;
    border: 1px solid #eadcc8;
    border-radius: 18px;
    background: #fffaf3;
    color: #40584b;
    font-weight: 700;
    line-height: 1.5;

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

.checkout-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--green);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 77, 48, 0.14);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.checkout-profile-link:hover {
    background: #003f2a;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 77, 48, 0.22);
}

/* Customer profile page */
.profile-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #eadcc8;
    border-radius: 24px;
    background: rgba(255, 250, 243, 0.82);
    box-shadow: 0 18px 45px rgba(0, 77, 48, 0.08);
}

.profile-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eadcc8;
}

.profile-section h2 {
    margin: 0 0 18px;
    color: #0f2f24;
    font-size: 22px;
}

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

.profile-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--green);
    font-weight: 800;
}

.profile-full {
    grid-column: 1 / -1;
}

.profile-grid input,
.profile-grid select {
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid #d9c4a8;
    border-radius: 14px;
    background: #fffaf3;
    color: #0f2f24;
    font-weight: 600;
    outline: none;
}

.profile-grid input:focus,
.profile-grid select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 77, 48, 0.08);
}

.profile-grid input[readonly] {
    opacity: 0.75;
    cursor: not-allowed;
}

.profile-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.same-address-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #40584b;
    font-weight: 800;
}

.same-address-check input {
    width: 16px;
    height: 16px;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.profile-alert {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
}

.profile-alert.success {
    background: #f0faf3;
    border: 1px solid rgba(0, 77, 48, 0.25);
    color: var(--green);
}

.profile-alert.error {
    background: #fff2f2;
    border: 1px solid rgba(150, 30, 30, 0.25);
    color: #8a1f1f;
}

@media (max-width: 800px) {
    .profile-card {
        padding: 22px;
    }

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

.form-grid.three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 768px) {
    .form-grid.three {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page__card {
    padding: 0;
    overflow: hidden;
}

.contact-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 0;
    align-items: stretch;
}

/* Contact information panel */
.contact-page__info {
    background: #0f3d2e;
    color: #ffffff;
    padding: 44px 40px;
}

.contact-page__info h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.8rem;
}

.contact-page__intro {
    margin: 0 0 32px;
    color: #d9eadf;
    line-height: 1.7;
}

.contact-page__details {
    display: grid;
    gap: 0;
}

.contact-page__detail {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-page__detail:first-child {
    border-top: 0;
    padding-top: 0;
}

.contact-page__detail h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1rem;
}

.contact-page__detail p {
    margin: 0;
    color: #d9eadf;
    line-height: 1.65;
}

.contact-page__detail a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.contact-page__detail a:hover,
.contact-page__detail a:focus-visible {
    text-decoration: underline;
}

.contact-page__privacy {
    margin-top: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
}

.contact-page__privacy p {
    margin: 0;
    color: #d9eadf;
    font-size: 0.9rem;
    line-height: 1.65;
}

.contact-page__privacy a {
    color: #ffffff;
    font-weight: 600;
}

.contact-page__privacy a:hover,
.contact-page__privacy a:focus-visible {
    text-decoration: underline;
}

/* Contact form panel */
.contact-page__form-panel {
    background: #ffffff;
    padding: 44px 46px;
}

.contact-page__form-panel h2 {
    margin: 0 0 10px;
    color: #0f3d2e;
    font-size: 1.8rem;
}

.contact-page__form-intro {
    margin: 0 0 30px;
    color: #566b61;
    line-height: 1.7;
}

.contact-page__form {
    display: grid;
}

.contact-page__form label {
    display: block;
    margin: 0 0 8px;
    color: #163b2d;
    font-weight: 600;
}

.contact-page__form input,
.contact-page__form textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 20px;
}

.contact-page__form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-page__form button {
    justify-self: start;
    margin-top: 4px;
}

/* Contact alerts */
.contact-page__card>.alert {
    margin: 24px 24px 0;
}

/* Responsive contact layout */
@media (max-width: 820px) {
    .contact-page__grid {
        grid-template-columns: 1fr;
    }

    .contact-page__info,
    .contact-page__form-panel {
        padding: 34px 26px;
    }
}

@media (max-width: 520px) {

    .contact-page__info,
    .contact-page__form-panel {
        padding: 28px 20px;
    }

    .contact-page__info h2,
    .contact-page__form-panel h2 {
        font-size: 1.5rem;
    }

    .contact-page__card>.alert {
        margin: 18px 18px 0;
    }
}

/* =========================================================
   404 PAGE
   ========================================================= */

.not-found-page {
    display: flex;
    justify-content: center;
}

.not-found-card {
    width: 100%;
    overflow: hidden;
}

.not-found-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 38px;
    text-align: center;
}

.not-found-code {
    margin: 0 0 10px;
    color: #b77a3b;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.not-found-content h1 {
    margin: 0 0 18px;
    color: #163b2d;
    font-size: 2.2rem;
}

.not-found-message {
    max-width: 650px;
    margin: 0 auto 12px;
    color: #39584b;
    font-size: 1rem;
    line-height: 1.7;
}

.not-found-help {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #566b61;
    font-size: 0.95rem;
    line-height: 1.7;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.not-found-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 11px 20px;

    border-radius: 999px;

    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.not-found-primary-link {
    background: #0f3d2e;
    color: #ffffff;
    border: 1px solid #0f3d2e;
}

.not-found-primary-link:hover,
.not-found-primary-link:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(15, 61, 46, 0.18);
}

.not-found-secondary-link {
    background: #ffffff;
    color: #0f3d2e;
    border: 1px solid #d8cdbd;
}

.not-found-secondary-link:hover,
.not-found-secondary-link:focus-visible {
    background: #f7f3ec;
    color: #0f3d2e;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .not-found-content {
        padding: 42px 22px;
    }

    .not-found-code {
        font-size: 4rem;
    }

    .not-found-content h1 {
        font-size: 1.8rem;
    }

    .not-found-actions {
        flex-direction: column;
    }

    .not-found-actions a {
        width: 100%;
        box-sizing: border-box;
    }
}
/* =========================================================
   FOOTER NEWSLETTER FEEDBACK
   Keeps subscription feedback below the newsletter form
   ========================================================= */

.footer .footer-newsletter-action {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer .footer-newsletter-action .newsletter-form,
.footer .footer-newsletter-action .newsletter-message {
    width: 100%;
    max-width: 720px;
    box-sizing: border-box;
}

.footer .newsletter-message {
    margin: 0;
    padding: 10px 14px;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.footer .newsletter-message.success {
    color: #0d4535;
    background: #e7f4ea;
    border: 1px solid rgba(13, 69, 53, 0.14);
}

.footer .newsletter-message.error {
    color: #8f2929;
    background: #fceaea;
    border: 1px solid rgba(159, 47, 47, 0.16);
}

@media (max-width: 1100px) {
    .footer .footer-newsletter-action {
        align-items: flex-start;
    }
}


/* =========================================================
   PRODUCT SEARCH HELP
   ========================================================= */

.catalogue-field-help {
    display: block;
    margin-top: 7px;

    color: #66776f;
    font-size: 0.78rem;
    line-height: 1.45;
}