/* =========================================================
   KSTRIVE ENERGY
   Global Storefront Styles
========================================================= */

:root {
    --primary: #0b1f33;
    --primary-light: #163b5c;
    --accent: #f5b700;
    --accent-dark: #d99f00;

    --text: #17202a;
    --muted: #667085;
    --white: #ffffff;
    --light: #f7f9fc;
    --border: #e5e7eb;

    --container: 1200px;
    --radius: 12px;

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


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

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 76px;

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

    gap: 30px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;

    white-space: nowrap;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-name {
    color: var(--primary);
    font-size: 1.45rem;
}

.brand-energy {
    color: var(--accent-dark);
    font-size: 0.95rem;
    letter-spacing: 1px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: #344054;
    font-size: 0.93rem;
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent-dark);
    transform: translateY(-1px);
}


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

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

.icon-button {
    width: 40px;
    height: 40px;

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

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--white);
    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.icon-button:hover {
    background: var(--light);
    border-color: #d0d5dd;
    transform: translateY(-1px);
}

.account-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 80px;

    padding-top: 60px;

    background: var(--primary);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;

    padding-bottom: 50px;
}

.footer-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-grid p {
    margin-top: 12px;
    max-width: 280px;

    color: #cbd5e1;
}

.footer-grid h3 {
    margin-bottom: 16px;

    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-grid a {
    display: block;

    margin-bottom: 9px;

    color: #cbd5e1;
    font-size: 0.9rem;

    transition: color 0.2s ease;
}

.footer-grid a:hover {
    color: var(--accent);
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    color: #98a2b3;
    font-size: 0.85rem;
}


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

@media (max-width: 1050px) {

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 0.85rem;
    }
}


@media (max-width: 850px) {

    .header-inner {
        min-height: 68px;
    }

    .main-nav {
        display: none;
    }

    .account-link {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 520px) {

    .header-inner {
        gap: 12px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-energy {
        font-size: 0.8rem;
    }

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

    .site-footer {
        margin-top: 50px;
        padding-top: 45px;
    }
}

/* =========================================================
   HOMEPAGE
========================================================= */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            120deg,
            #071827 0%,
            #0b1f33 55%,
            #163b5c 100%
        );

    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-eyebrow {
    display: inline-block;

    margin-bottom: 20px;

    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero-text p {
    max-width: 570px;

    color: #d0d9e4;
    font-size: 1.15rem;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 24px;

    border-radius: 8px;

    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

.btn-primary {
    background: var(--accent);
    color: #111827;
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 40px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.03)
        );

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.hero-card span {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-card strong {
    font-size: 3rem;
    line-height: 1;
    margin: 10px 0;
}

.hero-card small {
    color: #cbd5e1;
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories-section {
    padding: 90px 0;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 42px;
}

.section-heading > span {
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.section-heading h2 {
    margin: 8px 0 12px;

    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.section-heading p {
    color: var(--muted);
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    min-height: 210px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #d0d5dd;
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 2rem;
}

.category-card h3 {
    margin-top: 20px;

    color: var(--primary);
    font-size: 1.15rem;
}

.category-card p {
    margin-top: 6px;

    color: var(--muted);
    font-size: 0.9rem;
}


/* =========================================================
   TRUST SECTION
========================================================= */

.trust-section {
    padding: 55px 0;

    background: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.trust-grid strong {
    color: var(--primary);
    font-size: 1rem;
}

.trust-grid p {
    margin-top: 7px;

    color: var(--muted);
    font-size: 0.9rem;
}


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

@media (max-width: 850px) {

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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


@media (max-width: 520px) {

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

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

    .categories-section {
        padding: 65px 0;
    }
}

/* =========================================================
   SHOP PAGE
========================================================= */

.shop-page {
    padding: 80px 0;
    min-height: 600px;
}

.shop-heading {
    max-width: 700px;
    margin-bottom: 45px;
}

.shop-heading > span {
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.shop-heading h1 {
    margin: 8px 0 12px;

    color: var(--primary);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
}

.shop-heading p {
    color: var(--muted);
}


/* PRODUCT GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}


/* PRODUCT CARD */

.product-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}


/* PRODUCT IMAGE */

.product-image {
    aspect-ratio: 1 / 1;

    background: var(--light);

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-image-placeholder {
    height: 100%;

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

    color: #98a2b3;

    font-size: 0.85rem;
}


/* PRODUCT INFORMATION */

.product-info {
    padding: 20px;
}

.product-category {
    margin-bottom: 7px;

    color: var(--accent-dark);

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-info h2 {
    color: var(--primary);

    font-size: 1.05rem;
    line-height: 1.35;
}

.product-brand {
    margin-top: 5px;

    color: var(--muted);

    font-size: 0.82rem;
}

.product-price {
    margin-top: 18px;

    color: var(--primary);

    font-size: 1.15rem;
    font-weight: 800;
}

.product-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;

    margin-top: 16px;

    border-radius: 7px;

    background: var(--primary);
    color: var(--white);

    font-size: 0.85rem;
    font-weight: 700;

    transition: background 0.2s ease;
}

.product-button:hover {
    background: var(--primary-light);
}


/* EMPTY STORE */

.empty-shop {
    padding: 80px 20px;

    text-align: center;

    border: 1px dashed #d0d5dd;
    border-radius: var(--radius);

    background: var(--light);
}

.empty-shop-icon {
    margin-bottom: 15px;

    font-size: 2.5rem;
}

.empty-shop h2 {
    color: var(--primary);
}

.empty-shop p {
    max-width: 500px;

    margin: 8px auto 0;

    color: var(--muted);
}


/* SHOP RESPONSIVE */

@media (max-width: 1050px) {

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 750px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-page {
        padding: 60px 0;
    }
}


@media (max-width: 500px) {

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

/* =========================================================
   PRODUCT DETAIL
========================================================= */

.product-detail-page {
    padding: 80px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}


/* PRODUCT IMAGE */

.product-detail-image {
    aspect-ratio: 1 / 1;

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

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--light);
}

.product-detail-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.detail-image-placeholder {
    color: #98a2b3;
    font-size: 0.95rem;
}


/* PRODUCT INFORMATION */

.product-detail-category {
    color: var(--accent-dark);

    font-size: 0.78rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-info h1 {
    margin-top: 10px;

    color: var(--primary);

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.08;
}

.detail-brand {
    margin-top: 12px;

    color: var(--muted);
}

.detail-price {
    margin-top: 25px;

    color: var(--primary);

    font-size: 1.8rem;
    font-weight: 800;
}


/* STOCK */

.stock-status {
    display: inline-flex;

    margin-top: 18px;
    padding: 7px 12px;

    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: 700;
}

.in-stock {
    background: #ecfdf3;
    color: #027a48;
}

.out-of-stock {
    background: #fef3f2;
    color: #b42318;
}


/* DESCRIPTION */

.detail-description {
    margin-top: 35px;
    padding-top: 30px;

    border-top: 1px solid var(--border);
}

.detail-description h2 {
    color: var(--primary);

    font-size: 1.1rem;
}

.detail-description p {
    margin-top: 10px;

    color: var(--muted);
    line-height: 1.8;
}


/* PURCHASE */

.purchase-area {
    display: flex;
    gap: 12px;

    margin-top: 30px;
}

.quantity-control {
    display: flex;
    align-items: center;

    border: 1px solid var(--border);
    border-radius: 8px;

    overflow: hidden;
}

.quantity-control button,
.quantity-control span {
    width: 42px;
    height: 46px;

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

.quantity-control button {
    border: 0;
    background: var(--light);

    cursor: pointer;

    font-size: 1.1rem;
}

.quantity-control span {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);

    font-weight: 700;
}

.add-to-cart-button {
    min-height: 46px;

    padding: 0 28px;

    border: 0;
    border-radius: 8px;

    background: var(--primary);
    color: var(--white);

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.add-to-cart-button:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}


/* SPECIFICATIONS */

.specifications-section {
    margin-top: 100px;
}

.specifications-section .section-heading {
    margin-bottom: 30px;
}

.specifications-table {
    border: 1px solid var(--border);
    border-radius: 12px;

    overflow: hidden;
}

.specification-row {
    display: grid;
    grid-template-columns: 1fr 2fr;

    border-bottom: 1px solid var(--border);
}

.specification-row:last-child {
    border-bottom: 0;
}

.specification-name,
.specification-value {
    padding: 16px 20px;
}

.specification-name {
    background: var(--light);

    color: var(--primary);

    font-weight: 700;
}

.specification-value {
    color: var(--muted);
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-detail-page {
        padding: 55px 0;
    }

    .specifications-section {
        margin-top: 65px;
    }
}


@media (max-width: 500px) {

    .purchase-area {
        flex-direction: column;
    }

    .quantity-control {
        width: fit-content;
    }

    .add-to-cart-button {
        width: 100%;
    }

    .specification-row {
        grid-template-columns: 1fr;
    }

    .specification-name {
        padding-bottom: 8px;
    }

    .specification-value {
        padding-top: 8px;
    }
}

.quantity-control input {
    width: 42px;
    height: 46px;

    border: 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);

    text-align: center;
    font-weight: 700;

    outline: none;
}

/* =========================================================
   SHOPPING CART
   ========================================================= */

.cart-page {
    padding: 70px 0 100px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;

    padding: 20px;

    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(10, 31, 51, 0.06);
}

.cart-item-image {
    width: 150px;
    height: 130px;

    overflow: hidden;
    border-radius: 10px;
    background: #f5f7fa;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info h2 {
    margin: 6px 0 8px;

    font-size: 19px;
    line-height: 1.3;
}

.cart-item-info p {
    margin: 0 0 12px;

    font-size: 13px;
    color: #65758b;
}

.product-category {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5a900;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #0b2239;
}

.cart-item-quantity {
    margin-top: 8px;

    font-size: 13px;
    color: #65758b;
}

.cart-item-total {
    min-width: 125px;
    text-align: right;
}

.cart-item-total strong {
    display: block;

    margin-bottom: 14px;

    font-size: 18px;
    color: #0b2239;
}

.cart-item-total form {
    margin: 0;
}

.cart-item-total button {
    border: 0;
    background: transparent;

    color: #b42318;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.cart-item-total button:hover {
    text-decoration: underline;
}


/* -------------------------
   CART SUMMARY
   ------------------------- */

.cart-summary {
    position: sticky;
    top: 100px;

    padding: 28px;

    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(10, 31, 51, 0.07);
}

.cart-summary h2 {
    margin: 0 0 24px;

    font-size: 22px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 16px;

    font-size: 14px;
    color: #65758b;
}

.cart-summary-row strong {
    color: #0b2239;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 0;

    border-top: 1px solid var(--border);

    font-size: 15px;
}

.cart-summary-total strong {
    font-size: 21px;
    color: #0b2239;
}

.checkout-button {
    width: 100%;

    padding: 15px 20px;

    border: 0;
    border-radius: 8px;

    background: #0b2239;
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}

.checkout-button:hover {
    opacity: 0.92;
}


/* -------------------------
   EMPTY CART
   ------------------------- */

.empty-shop {
    max-width: 700px;
    margin: 40px auto 0;

    padding: 70px 30px;

    text-align: center;

    background: #f7f9fc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.empty-shop-icon {
    margin-bottom: 18px;

    font-size: 42px;
}

.empty-shop h2 {
    margin-bottom: 10px;
}

.empty-shop p {
    margin-bottom: 25px;

    color: #65758b;
}


/* -------------------------
   MOBILE CART
   ------------------------- */

@media (max-width: 800px) {

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

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 16px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-total {
        grid-column: 2;
        min-width: 0;

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

        text-align: left;

        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .cart-item-total strong {
        margin: 0;
    }
}


@media (max-width: 520px) {

    .cart-page {
        padding: 45px 0 70px;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-image {
        width: 100%;
        height: 220px;
    }

    .cart-item-total {
        grid-column: auto;
    }

}

/* =========================================================
   CART QUANTITY CONTROL
   ========================================================= */

.cart-quantity-form {
    margin-top: 12px;
}

.cart-quantity-form label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 700;
    color: #65758b;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
}

.cart-quantity-control button {
    height: 38px;

    padding: 0 12px;

    border: 1px solid var(--border);
    background: #ffffff;

    font-weight: 700;

    cursor: pointer;
}

.cart-quantity-control button:first-child {
    border-radius: 7px 0 0 7px;
}

.cart-quantity-control input {
    width: 48px;
    height: 38px;

    border: 1px solid var(--border);
    border-left: 0;
    border-right: 0;

    text-align: center;
    font-weight: 700;

    outline: none;
}

.cart-quantity-control button:nth-of-type(2) {
    border-radius: 0 7px 7px 0;
}

.cart-quantity-control button:hover {
    background: #f5f7fa;
}

.cart-quantity-control .cart-update-button {
    margin-left: 10px;

    border: 0;
    border-radius: 7px;

    background: #0b2239;
    color: #ffffff;

    font-size: 12px;
}

.cart-quantity-control .cart-update-button:hover {
    opacity: 0.9;
}

/* =========================================================
   CART BADGE
   ========================================================= */

.cart-link {
    position: relative;

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

    text-decoration: none;
}

.cart-badge {
    position: absolute;

    top: -7px;
    right: -8px;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

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

    border-radius: 999px;

    background: #f5b400;
    color: #0b2239;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

/* =========================
   CHECKOUT PAGE
   ========================= */

.checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}

.checkout-header {
    margin-bottom: 35px;
}

.checkout-header h1 {
    margin-bottom: 8px;
}

.checkout-header p {
    color: #666;
    margin: 0;
}

.checkout-error {
    background: #fff1f1;
    border: 1px solid #e0a0a0;
    color: #a00000;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 35px;
    align-items: start;
}

.checkout-form-card,
.checkout-summary {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.checkout-form-card h2,
.checkout-summary h2 {
    margin-top: 0;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e0a800;
    box-shadow: 0 0 0 3px rgba(224, 168, 0, 0.12);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkout-submit {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.checkout-submit:hover {
    background: #e0a800;
    color: #111;
}

/* Order summary */

.checkout-summary {
    position: sticky;
    top: 25px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #eeeeee;
}

.checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-item-info strong {
    font-size: 15px;
}

.checkout-item-info span {
    color: #666;
    font-size: 14px;
}

.checkout-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    color: #555;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #222;
    font-size: 19px;
}

.checkout-note {
    margin-top: 25px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}


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

@media (max-width: 800px) {

    .checkout-page {
        padding: 35px 16px 50px;
    }

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

    .checkout-summary {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkout-form-card,
    .checkout-summary {
        padding: 22px;
    }
}

/* =========================
   ORDER SUCCESS PAGE
   ========================= */

.order-success-page {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.order-success-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.order-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.order-success-card h1 {
    margin-bottom: 10px;
}

.order-success-message {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.order-number-box {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 30px;
}

.order-number-box span {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
}

.order-number-box strong {
    font-size: 20px;
    letter-spacing: 1px;
}

.order-success-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    margin-bottom: 25px;
}

.order-success-details div {
    background: #ffffff;
    padding: 18px;
}

.order-success-details span {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 6px;
}

.order-success-details strong {
    display: block;
    font-size: 15px;
}

.order-success-note {
    background: #fffaf0;
    border-radius: 10px;
    padding: 18px;
    text-align: left;
    margin-bottom: 25px;
}

.order-success-note strong {
    display: block;
    margin-bottom: 6px;
}

.order-success-note p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.order-success-card .checkout-button {
    display: inline-block;
    text-decoration: none;
    padding: 14px 28px;
}


/* =========================
   ORDER SUCCESS MOBILE
   ========================= */

@media (max-width: 650px) {

    .order-success-page {
        padding: 40px 16px 60px;
    }

    .order-success-card {
        padding: 28px 20px;
    }

    .order-success-details {
        grid-template-columns: 1fr;
    }
}