/* =========================================================
   SAVVY LEATHER CRAFT
   Main Frontend Styles
   ========================================================= */

:root {
    /* =========================
       BRAND COLORS
       ========================= */

    --color-black: #11100F;
    --color-dark-brown: #2A211C;
    --color-brown: #4A382F;
    --color-brown-light: #6B5548;

    --color-cream: #F7F4EF;
    --color-beige: #EDE7DE;
    --color-white: #FFFFFF;

    --color-border: #DDD5CB;

    --color-text: #211C18;
    --color-text-light: #756C64;


    /* =========================
       TYPOGRAPHY
       ========================= */

    --font-primary: "Inter", Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;


    /* =========================
       LAYOUT
       ========================= */

    --container-width: 1200px;

    --radius-sm: none;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: 0.3s ease;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

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

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

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

button {
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

/* =========================================================
   GLOBAL
   ========================================================= */

.container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

.section-header {
    max-width: 650px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-subtitle {
    margin-bottom: 10px;
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    font-weight: 500;
}

.section-description {
    margin-top: 16px;
    color: var(--color-text-light);
}

/* =========================================================
   BUTTONS
   ========================================================= */

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

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

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

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

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

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

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

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

@media (max-width: 768px) {

    .container {
        width: min(100% - 30px, var(--container-width));
    }

    .section {
        padding: 65px 0;
    }

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

@media (max-width: 480px) {

    .section {
        padding: 50px 0;
    }

    .btn {
        width: 100%;
    }
}


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

.site-header {
    position: relative;
    z-index: 1000;
    background: rgba(247, 244, 239, 0.96);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Brand */

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--color-brown-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Navigation */

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

.nav-link {
    position: relative;
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: var(--color-dark-brown);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-black);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header actions */

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

.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 15px;

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

    background: var(--color-white);

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

    transition: all var(--transition);
}

.cart-button:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.cart-count {
    min-width: 20px;
    height: 20px;

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

    border-radius: 50%;

    background: var(--color-dark-brown);
    color: var(--color-white);

    font-size: 10px;
}

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

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

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

    font-size: 20px;
}

/* Mobile navigation */

.mobile-nav {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    padding: 90px 0 100px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(107, 85, 72, 0.10),
            transparent 32%
        ),
        var(--color-cream);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.hero-content {
    max-width: 610px;
}

.hero-eyebrow {
    margin-bottom: 20px;

    color: var(--color-brown-light);

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

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

.hero h1 {
    max-width: 650px;

    font-family: var(--font-display);

    font-size: clamp(48px, 6vw, 78px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -2px;

    color: var(--color-black);
}

.hero h1 span {
    display: block;
    color: var(--color-brown);
}

.hero-description {
    max-width: 520px;
    margin-top: 28px;

    color: var(--color-text-light);

    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 34px;
}

/* Hero image */

.hero-visual {
    position: relative;
    max-width: 520px;
    margin-left: auto;
}

.hero-image-wrapper {
    position: relative;

    overflow: hidden;

    aspect-ratio: 4 / 5;

    background: var(--color-beige);
}

.hero-image-wrapper::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(17, 16, 15, 0.12)
    );

    pointer-events: none;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.hero-visual:hover .hero-image-wrapper img {
    transform: scale(1.025);
}

.hero-card {
    position: absolute;

    right: -30px;
    bottom: 30px;

    display: flex;
    flex-direction: column;

    min-width: 190px;

    padding: 18px 20px;

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

    box-shadow: 0 15px 40px rgba(17, 16, 15, 0.18);
}

.hero-card span {
    margin-bottom: 5px;

    color: #b8afa7;

    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-card strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
}


/* =========================================================
   MOBILE HEADER + HERO
   ========================================================= */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .mobile-menu-button {
        display: none;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav {
        position: absolute;
        z-index: 999;

        left: 0;
        right: 0;

        padding: 20px;

        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);

        box-shadow: 0 15px 30px rgba(17, 16, 15, 0.08);
    }

    .mobile-nav a {
        display: block;

        padding: 13px 0;

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

        font-size: 14px;
        font-weight: 500;
    }

    .mobile-nav a:last-child {
        border-bottom: none;
    }

    .mobile-nav.active {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-visual {
        margin: 0 auto;
        width: min(100%, 520px);
    }

    .hero-card {
        right: 15px;
    }
}


@media (max-width: 600px) {

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

    .brand-name {
        font-size: 23px;
    }

    .cart-button span:first-child {
        display: none;
    }

    .hero {
        padding: 65px 0 70px;
    }

    .hero h1 {
        font-size: clamp(43px, 13vw, 62px);
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card {
        right: 10px;
        bottom: 15px;
    }
}


/* =========================================================
   FEATURED PRODUCTS
   ========================================================= */

.featured-products {
    background: var(--color-white);
}

.featured-products .section-header {
    margin-bottom: 45px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
}

.product-card {
    position: relative;
    min-width: 0;
    background: transparent;
}

.product-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--color-beige);
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Sale badge */

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;

    padding: 7px 12px;

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

    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* Product information */

.product-info {
    padding: 17px 2px 0;
}

.product-name {
    margin: 0;

    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-black);
}

.product-name a {
    color: inherit;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--color-brown);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
}

.current-price {
    color: var(--color-dark-brown);
    font-size: 14px;
    font-weight: 700;
}

.compare-price {
    color: var(--color-text-light);
    font-size: 12px;
    text-decoration: line-through;
}

/* Empty / loading / error */

.product-empty,
.product-error,
.product-loading {
    grid-column: 1 / -1;
    width: 100%;
    padding: 50px 20px;
    text-align: center;
    color: var(--color-text-light);
}


/* =========================================================
   FEATURED PRODUCTS RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

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

}

@media (max-width: 700px) {

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

    .product-name {
        font-size: 17px;
    }

}

@media (max-width: 450px) {

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

    .product-info {
        padding-top: 12px;
    }

    .product-name {
        font-size: 15px;
    }

    .current-price {
        font-size: 13px;
    }

}

/* =========================================================
   CART PAGE
   ========================================================= */

.cart-page {
    background: var(--color-cream);
    min-height: 100vh;
    padding-bottom: 100px;
}


/* ---------------------------------------------------------
   BREADCRUMB
   --------------------------------------------------------- */

.cart-breadcrumb {
    max-width: var(--container-width);
    margin: 0 auto;

    padding: 30px 20px 15px;

    font-size: 13px;

    color: var(--color-text-light);
}

.cart-breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;

    transition: var(--transition);
}

.cart-breadcrumb a:hover {
    color: var(--color-dark-brown);
}

.cart-breadcrumb span {
    margin: 0 9px;
    color: var(--color-border);
}

.cart-breadcrumb strong {
    font-weight: 500;
    color: var(--color-text);
}


/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.cart-heading {
    max-width: var(--container-width);

    margin: 0 auto;

    padding: 35px 20px 50px;
}

.cart-eyebrow {
    margin: 0 0 10px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: var(--color-brown-light);
}

.cart-heading h1 {
    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(40px, 5vw, 58px);

    line-height: 1.1;

    font-weight: 500;

    color: var(--color-black);
}

.cart-heading > p:last-child {
    margin: 16px 0 0;

    max-width: 550px;

    font-size: 15px;

    line-height: 1.7;

    color: var(--color-text-light);
}


/* ---------------------------------------------------------
   CART CONTAINER
   --------------------------------------------------------- */

.cart-container {
    max-width: var(--container-width);

    margin: 0 auto;

    padding: 0 20px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    gap: 55px;

    align-items: start;
}


/* ---------------------------------------------------------
   CART ITEMS
   --------------------------------------------------------- */

.cart-items {
    border-top: 1px solid var(--color-border);
}

.cart-item {
    position: relative;

    display: grid;

    grid-template-columns:
        150px
        minmax(0, 1fr)
        auto;

    gap: 24px;

    padding: 25px 0;

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


/* ---------------------------------------------------------
   CART IMAGE
   --------------------------------------------------------- */

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

    display: block;

    overflow: hidden;

    border-radius: 8px;

    background: #eee9e2;
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.4s ease;
}

.cart-item-image:hover img {
    transform: scale(1.04);
}


/* ---------------------------------------------------------
   ITEM INFORMATION
   --------------------------------------------------------- */

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

    padding: 5px 0;
}

.cart-item-name {
    display: block;

    margin-bottom: 9px;

    font-family: var(--font-display);

    font-size: 23px;

    line-height: 1.25;

    color: var(--color-black);

    text-decoration: none;
}

.cart-item-name:hover {
    color: var(--color-brown);
}

.cart-item-variant {
    margin: 0 0 5px;

    font-size: 13px;

    color: var(--color-text-light);
}

.cart-item-variant strong {
    color: var(--color-text);
    font-weight: 500;
}

.cart-item-sku {
    margin: 0 0 15px;

    font-size: 11px;

    letter-spacing: 0.4px;

    color: var(--color-text-light);
}

.cart-item-price {
    margin: 0;

    font-size: 15px;

    font-weight: 600;

    color: var(--color-dark-brown);
}


/* ---------------------------------------------------------
   ITEM BOTTOM
   --------------------------------------------------------- */

.cart-item-bottom {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 22px;
}


/* ---------------------------------------------------------
   CART QUANTITY
   --------------------------------------------------------- */

.cart-quantity {
    height: 40px;

    display: flex;

    align-items: center;

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

    background: var(--color-white);

    border-radius: 5px;

    overflow: hidden;
}

.cart-quantity button {
    width: 38px;

    height: 100%;

    border: 0;

    background: transparent;

    color: var(--color-text);

    font-size: 17px;

    cursor: pointer;

    transition: var(--transition);
}

.cart-quantity button:hover {
    background: var(--color-beige);
}

.cart-quantity span {
    min-width: 34px;

    text-align: center;

    font-size: 13px;

    font-weight: 600;

    color: var(--color-text);
}


/* ---------------------------------------------------------
   REMOVE
   --------------------------------------------------------- */

.cart-remove {
    border: 0;

    padding: 0;

    background: transparent;

    color: var(--color-text-light);

    font-size: 12px;

    cursor: pointer;

    text-decoration: underline;

    text-underline-offset: 3px;

    transition: var(--transition);
}

.cart-remove:hover {
    color: #8d4038;
}


/* ---------------------------------------------------------
   ITEM TOTAL
   --------------------------------------------------------- */

.cart-item-total {
    padding-top: 7px;

    white-space: nowrap;

    font-size: 15px;

    font-weight: 600;

    color: var(--color-dark-brown);
}


/* ---------------------------------------------------------
   CONTINUE SHOPPING
   --------------------------------------------------------- */

.continue-shopping {
    display: inline-block;

    margin-top: 25px;

    font-size: 13px;

    font-weight: 500;

    color: var(--color-text);

    text-decoration: none;

    border-bottom: 1px solid var(--color-text);

    padding-bottom: 3px;

    transition: var(--transition);
}

.continue-shopping:hover {
    color: var(--color-brown);
}


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

.cart-summary {
    position: sticky;

    top: 110px;
}

.cart-summary-inner {
    padding: 30px;

    background: var(--color-white);

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

    border-radius: 10px;
}

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

    font-family: var(--font-display);

    font-size: 27px;

    font-weight: 500;

    color: var(--color-black);
}


/* ---------------------------------------------------------
   SUMMARY ROW
   --------------------------------------------------------- */

.summary-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 15px;

    font-size: 14px;

    color: var(--color-text-light);
}

.summary-row strong {
    color: var(--color-text);

    font-weight: 600;
}

.summary-divider {
    height: 1px;

    margin: 22px 0;

    background: var(--color-border);
}


/* ---------------------------------------------------------
   TOTAL
   --------------------------------------------------------- */

.summary-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.summary-total span {
    font-size: 15px;

    font-weight: 600;

    color: var(--color-text);
}

.summary-total strong {
    font-size: 21px;

    font-weight: 600;

    color: var(--color-dark-brown);
}


/* ---------------------------------------------------------
   DELIVERY NOTE
   --------------------------------------------------------- */

.delivery-note {
    margin: 20px 0;

    padding: 13px;

    background: var(--color-cream);

    border-radius: 5px;

    font-size: 12px;

    line-height: 1.6;

    color: var(--color-text-light);
}


/* ---------------------------------------------------------
   CHECKOUT BUTTON
   --------------------------------------------------------- */

.checkout-button {
    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 20px;

    background: var(--color-dark-brown);

    border: 1px solid var(--color-dark-brown);

    border-radius: 5px;

    color: var(--color-white);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    text-decoration: none;

    transition: var(--transition);
}

.checkout-button:hover {
    background: var(--color-black);

    border-color: var(--color-black);

    transform: translateY(-1px);
}

.checkout-button.disabled {
    opacity: 0.45;

    cursor: not-allowed;

    pointer-events: none;
}


/* ---------------------------------------------------------
   SECURE CHECKOUT
   --------------------------------------------------------- */

.secure-checkout {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 17px;

    font-size: 11px;

    color: var(--color-text-light);
}

.secure-checkout span {
    color: #4f7358;
}


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

.empty-cart {
    padding: 80px 20px 100px;

    text-align: center;

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

.empty-cart-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: flex;

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

    border-radius: 50%;

    background: var(--color-beige);

    font-size: 25px;
}

.empty-cart h2 {
    margin: 0 0 10px;

    font-family: var(--font-display);

    font-size: 31px;

    font-weight: 500;

    color: var(--color-black);
}

.empty-cart p {
    max-width: 420px;

    margin: 0 auto 25px;

    font-size: 14px;

    line-height: 1.7;

    color: var(--color-text-light);
}

.empty-cart-button {
    display: inline-flex;

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

    min-height: 48px;

    padding: 0 25px;

    background: var(--color-dark-brown);

    border-radius: 5px;

    color: var(--color-white);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    text-decoration: none;

    transition: var(--transition);
}

.empty-cart-button:hover {
    background: var(--color-black);
}


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

@media (max-width: 900px) {

    .cart-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .cart-summary {
        position: static;
    }

}


@media (max-width: 600px) {

    .cart-breadcrumb {
        padding: 20px 16px 10px;
    }

    .cart-heading {
        padding: 25px 16px 35px;
    }

    .cart-heading h1 {
        font-size: 40px;
    }

    .cart-container {
        padding: 0 16px;
    }

    .cart-item {
        grid-template-columns: 95px minmax(0, 1fr);

        gap: 15px;

        padding: 20px 0;
    }

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

    .cart-item-name {
        font-size: 18px;
    }

    .cart-item-price {
        font-size: 14px;
    }

    .cart-item-bottom {
        flex-wrap: wrap;

        gap: 12px;

        margin-top: 15px;
    }

    .cart-item-total {
        grid-column: 2;

        padding-top: 0;

        margin-top: -5px;

        font-size: 14px;
    }

    .cart-summary-inner {
        padding: 23px 20px;
    }

}

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

.checkout-page {
    background: var(--color-cream);
    min-height: 100vh;
    padding-bottom: 100px;
}


/* ---------------------------------------------------------
   BREADCRUMB
   --------------------------------------------------------- */

.checkout-breadcrumb {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 30px 20px 15px;

    font-size: 13px;
    color: var(--color-text-light);
}

.checkout-breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
}

.checkout-breadcrumb a:hover {
    color: var(--color-dark-brown);
}

.checkout-breadcrumb span {
    margin: 0 9px;
    color: var(--color-border);
}

.checkout-breadcrumb strong {
    font-weight: 500;
    color: var(--color-text);
}


/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.checkout-heading {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 35px 20px 50px;
}

.checkout-eyebrow {
    margin: 0 0 10px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--color-brown-light);
}

.checkout-heading h1 {
    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 500;

    color: var(--color-black);
}

.checkout-heading > p:last-child {
    max-width: 600px;
    margin: 16px 0 0;

    font-size: 15px;
    line-height: 1.7;

    color: var(--color-text-light);
}


/* ---------------------------------------------------------
   MAIN CHECKOUT GRID
   --------------------------------------------------------- */

.checkout-container {
    max-width: var(--container-width);
    margin: 0 auto;

    padding: 0 20px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        380px;

    gap: 45px;

    align-items: start;
}


/* ---------------------------------------------------------
   CHECKOUT CARD
   --------------------------------------------------------- */

.checkout-card {
    margin-bottom: 20px;

    padding: 30px;

    background: var(--color-white);

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

    border-radius: 10px;
}

.checkout-card-heading {
    display: flex;

    gap: 17px;

    margin-bottom: 28px;
}

.checkout-card-heading > span {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

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

    border-radius: 50%;

    background: var(--color-dark-brown);

    color: var(--color-white);

    font-size: 12px;
    font-weight: 600;
}

.checkout-card-heading h2 {
    margin: 0 0 5px;

    font-family: var(--font-display);

    font-size: 25px;
    font-weight: 500;

    color: var(--color-black);
}

.checkout-card-heading p {
    margin: 0;

    font-size: 12px;
    line-height: 1.5;

    color: var(--color-text-light);
}


/* ---------------------------------------------------------
   FORM GRID
   --------------------------------------------------------- */

.checkout-form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 600;

    color: var(--color-text);
}

.form-group label span,
.receipt-upload label span {
    color: #9b3f35;
}

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

    box-sizing: border-box;

    padding: 13px 14px;

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

    border-radius: 5px;

    outline: none;

    background: #fff;

    color: var(--color-text);

    font-family: var(--font-primary);

    font-size: 14px;

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

.form-group input {
    height: 48px;
}

.form-group textarea {
    resize: vertical;
    min-height: 105px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-brown);

    box-shadow:
        0 0 0 3px
        rgba(74, 56, 47, 0.08);
}

.form-group input.has-error,
.form-group textarea.has-error,
.receipt-upload input.has-error {
    border-color: #a34b42;
}

.field-error {
    min-height: 16px;

    margin-top: 5px;

    font-size: 11px;

    color: #9b3f35;
}


/* ---------------------------------------------------------
   PAYMENT
   --------------------------------------------------------- */

.payment-methods {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.payment-option {
    position: relative;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 17px;

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

    border-radius: 7px;

    cursor: pointer;

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

.payment-option:hover {
    border-color: var(--color-brown);
}

.payment-option.active {
    border-color: var(--color-dark-brown);

    background: #faf8f4;
}

.payment-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.payment-radio {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    border: 1px solid #aaa;

    border-radius: 50%;

    position: relative;
}

.payment-option.active .payment-radio {
    border-color: var(--color-dark-brown);
}

.payment-option.active .payment-radio::after {
    content: "";

    position: absolute;

    width: 9px;
    height: 9px;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: var(--color-dark-brown);
}

.payment-content {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.payment-content strong {
    font-size: 13px;
    font-weight: 600;

    color: var(--color-text);
}

.payment-content small {
    font-size: 11px;

    color: var(--color-text-light);
}


/* ---------------------------------------------------------
   BANK TRANSFER
   --------------------------------------------------------- */

.bank-transfer-details {
    margin-top: 18px;

    padding: 20px;

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

    border-radius: 7px;

    background: var(--color-cream);
}

.bank-transfer-heading {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-bottom: 18px;
}

.bank-transfer-heading strong {
    font-size: 14px;
    color: var(--color-text);
}

.bank-transfer-heading span {
    font-size: 11px;
    color: var(--color-text-light);
}

.bank-details-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-bottom: 22px;
}

.bank-details-grid > div {
    padding: 12px;

    background: var(--color-white);

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

    border-radius: 5px;
}

.bank-details-grid span {
    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    color: var(--color-text-light);
}

.bank-details-grid strong {
    font-size: 12px;

    color: var(--color-text);
}

.receipt-upload {
    display: flex;
    flex-direction: column;
}

.receipt-upload label {
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 600;

    color: var(--color-text);
}

.receipt-upload input {
    width: 100%;
    box-sizing: border-box;

    padding: 10px;

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

    border-radius: 5px;

    background: var(--color-white);

    font-size: 12px;
}

.receipt-upload > small {
    margin-top: 7px;

    font-size: 10px;

    color: var(--color-text-light);
}


/* ---------------------------------------------------------
   CHECKOUT MESSAGE
   --------------------------------------------------------- */

.checkout-message {
    margin-bottom: 18px;

    padding: 14px 16px;

    border-radius: 6px;

    font-size: 13px;
    line-height: 1.5;
}

.checkout-message.error {
    background: #f8efed;

    border: 1px solid #dfc8c4;

    color: #8d4038;
}

.checkout-message.success {
    background: #edf5ef;

    border: 1px solid #c7dbc9;

    color: #416349;
}


/* ---------------------------------------------------------
   PLACE ORDER
   --------------------------------------------------------- */

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

    min-height: 55px;

    border: 1px solid var(--color-dark-brown);

    border-radius: 6px;

    background: var(--color-dark-brown);

    color: var(--color-white);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    cursor: pointer;

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

.place-order-button:hover {
    background: var(--color-black);

    border-color: var(--color-black);

    transform: translateY(-1px);
}

.place-order-button:disabled {
    opacity: 0.65;

    cursor: wait;

    transform: none;
}


/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */

.checkout-sidebar {
    position: sticky;
    top: 110px;
}

.checkout-summary {
    padding: 28px;

    background: var(--color-white);

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

    border-radius: 10px;
}

.checkout-summary h2 {
    margin: 0 0 22px;

    font-family: var(--font-display);

    font-size: 27px;

    font-weight: 500;

    color: var(--color-black);
}


/* ---------------------------------------------------------
   CHECKOUT ITEMS
   --------------------------------------------------------- */

.checkout-items {
    padding-bottom: 20px;

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

.checkout-item {
    display: grid;

    grid-template-columns: 55px minmax(0, 1fr) auto;

    gap: 12px;

    align-items: center;

    margin-bottom: 15px;
}

.checkout-item:last-child {
    margin-bottom: 0;
}

.checkout-item-image {
    position: relative;

    width: 55px;
    height: 55px;

    overflow: visible;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 5px;

    background: #eee9e2;
}

.checkout-item-image > span {
    position: absolute;

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

    min-width: 18px;
    height: 18px;

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

    padding: 0 4px;

    border-radius: 50%;

    background: var(--color-dark-brown);

    color: var(--color-white);

    font-size: 9px;
}

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

.checkout-item-info strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 12px;

    font-weight: 600;

    color: var(--color-text);
}

.checkout-item-info small {
    display: block;

    margin-top: 3px;

    font-size: 10px;

    color: var(--color-text-light);
}

.checkout-item-price {
    white-space: nowrap;

    font-size: 11px;

    font-weight: 600;

    color: var(--color-text);
}


/* ---------------------------------------------------------
   SUMMARY LINES
   --------------------------------------------------------- */

.checkout-summary-lines {
    padding: 20px 0 0;
}

.checkout-summary-lines > div {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 13px;

    font-size: 13px;

    color: var(--color-text-light);
}

.checkout-summary-lines strong {
    color: var(--color-text);

    font-weight: 600;
}

.checkout-summary-lines .discount-row {
    color: #4f7358;
}

.checkout-summary-lines .discount-row strong {
    color: #4f7358;
}


/* ---------------------------------------------------------
   COUPON
   --------------------------------------------------------- */

.coupon-box {
    margin-top: 18px;

    padding: 15px;

    background: var(--color-cream);

    border-radius: 6px;
}

.coupon-box > label {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;

    font-weight: 600;

    color: var(--color-text);
}

.coupon-input {
    display: flex;

    gap: 7px;
}

.coupon-input input {
    min-width: 0;

    flex: 1;

    height: 40px;

    padding: 0 11px;

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

    border-radius: 4px;

    outline: none;

    background: var(--color-white);

    font-size: 12px;

    text-transform: uppercase;
}

.coupon-input input:focus {
    border-color: var(--color-brown);
}

.coupon-input button {
    height: 40px;

    padding: 0 15px;

    border: 1px solid var(--color-dark-brown);

    border-radius: 4px;

    background: var(--color-dark-brown);

    color: var(--color-white);

    font-size: 10px;

    font-weight: 600;

    text-transform: uppercase;

    cursor: pointer;
}

.coupon-input button:disabled {
    opacity: 0.65;

    cursor: default;
}

.coupon-message {
    display: block;

    margin-top: 7px;

    font-size: 10px;
}

.coupon-message.success {
    color: #4f7358;
}

.coupon-message.error {
    color: #9b3f35;
}


/* ---------------------------------------------------------
   TOTAL
   --------------------------------------------------------- */

.checkout-total {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-top: 22px;

    padding-top: 20px;

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

.checkout-total span {
    font-size: 15px;

    font-weight: 600;

    color: var(--color-text);
}

.checkout-total strong {
    font-size: 21px;

    font-weight: 600;

    color: var(--color-dark-brown);
}


/* ---------------------------------------------------------
   TRUST
   --------------------------------------------------------- */

.checkout-trust {
    margin-top: 22px;

    padding-top: 18px;

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

.checkout-trust div {
    margin-bottom: 8px;

    font-size: 10px;

    color: var(--color-text-light);
}

.checkout-trust div:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   EMPTY CHECKOUT
   --------------------------------------------------------- */

.checkout-empty {
    grid-column: 1 / -1;

    padding: 80px 20px;

    text-align: center;

    background: var(--color-white);

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

    border-radius: 10px;
}

.checkout-empty h2 {
    margin: 0 0 10px;

    font-family: var(--font-display);

    font-size: 32px;

    font-weight: 500;

    color: var(--color-black);
}

.checkout-empty p {
    margin: 0 0 25px;

    color: var(--color-text-light);
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

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

    .checkout-sidebar {
        position: static;
    }

}


@media (max-width: 600px) {

    .checkout-breadcrumb {
        padding: 20px 16px 10px;
    }

    .checkout-heading {
        padding: 25px 16px 35px;
    }

    .checkout-heading h1 {
        font-size: 40px;
    }

    .checkout-container {
        padding: 0 16px;
    }

    .checkout-card {
        padding: 22px 18px;
    }

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

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

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

    .checkout-summary {
        padding: 23px 18px;
    }

}

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

.order-success-page {
    min-height: calc(100vh - 160px);
    padding: 80px 20px;
    background: var(--color-cream);
    display: flex;
    align-items: center;
}

.order-success-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 50px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 20px 60px rgba(42, 33, 28, 0.08);
}

.order-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 25px;

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

    border-radius: 50%;

    background: var(--color-dark-brown);
    color: var(--color-white);

    font-size: 34px;
    font-weight: 600;
}

.order-success-label {
    margin: 0 0 12px;

    color: var(--color-brown-light);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.order-success-card h1 {
    margin: 0 0 18px;

    color: var(--color-black);

    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
}

.order-success-message {
    max-width: 560px;
    margin: 0 auto 35px;

    color: var(--color-text-light);

    font-size: 16px;
    line-height: 1.8;
}

.order-number-box {
    max-width: 420px;
    margin: 0 auto 35px;
    padding: 20px;

    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.order-number-box span {
    display: block;
    margin-bottom: 8px;

    color: var(--color-text-light);

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-number-box strong {
    display: block;

    color: var(--color-dark-brown);

    font-size: 18px;
    letter-spacing: 0.5px;
}

.order-success-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    margin-bottom: 35px;
    text-align: left;
}

.order-success-info > div {
    padding: 20px;

    background: #faf9f7;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.order-success-info strong {
    display: block;
    margin-bottom: 8px;

    color: var(--color-dark-brown);
    font-size: 15px;
}

.order-success-info span {
    display: block;

    color: var(--color-text-light);

    font-size: 14px;
    line-height: 1.6;
}

.order-success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.order-success-actions .btn {
    min-width: 170px;
    text-align: center;
}


/* Mobile */

@media (max-width: 700px) {

    .order-success-page {
        padding: 50px 15px;
    }

    .order-success-card {
        padding: 40px 22px;
    }

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

    .order-success-actions {
        flex-direction: column;
    }

    .order-success-actions .btn {
        width: 100%;
    }

}