/* ====================================================
   CSS VARIABLES & DESIGN TOKENS
   ==================================================== */
:root {
    --cs-primary: #1F6E5A;
    --cs-bg: #FAF8F5;
    --cs-card-bg: #FFFFFF;
    --cs-text-primary: #1E1E1E;
    --cs-text-muted: #6B6B6B;
    --cs-border: #E9E3DC;
    --cs-soft-highlight: #F3EEE8;
    --cs-accent: #D97706;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ====================================================
   BASE STYLES
   ==================================================== */
body {
    font-family: var(--font-body);
    background-color: var(--cs-bg);
    color: var(--cs-text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    color: var(--cs-text-primary);
}

a {
    color: var(--cs-text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--cs-primary);
}

.text-muted-cs { color: var(--cs-text-muted) !important; }
.text-primary-cs { color: var(--cs-primary) !important; }
.bg-soft { background-color: var(--cs-soft-highlight) !important; }

/* ====================================================
   BUTTONS
   ==================================================== */
.btn-cs-primary {
    background-color: var(--cs-primary);
    color: #fff;
    border: 1px solid var(--cs-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.btn-cs-primary:hover {
    background-color: #165243;
    color: #fff;
    transform: translateY(-2px);
}

.btn-cs-outline {
    background-color: transparent;
    color: var(--cs-text-primary);
    border: 1px solid var(--cs-border);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.btn-cs-outline:hover {
    border-color: var(--cs-primary);
    color: var(--cs-primary);
}

/* ====================================================
   SCROLL REVEAL ANIMATION
   ==================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================
   NAVBAR
   ==================================================== */
.cs-navbar {
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cs-border);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}
.cs-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--cs-text-primary);
}
.cs-navbar .navbar-brand:hover {
    color: var(--cs-primary);
}
.cs-navbar .navbar-nav > .nav-item > .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    color: var(--cs-text-primary);
    padding-bottom: 4px;
}
.cs-navbar .navbar-nav > .nav-item > .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--cs-primary);
    transition: var(--transition-smooth);
}
.cs-navbar .navbar-nav > .nav-item > .nav-link:hover::after,
.cs-navbar .navbar-nav > .nav-item > .nav-link.active::after {
    width: 100%;
}
.cs-navbar .navbar-nav > .nav-item > .nav-link:hover {
    color: var(--cs-primary);
}
.cs-navbar .dropdown-menu {
    border: 1px solid var(--cs-border);
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    background: var(--cs-card-bg);
}
.cs-navbar .nav-link.dropdown-toggle:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}
.cs-navbar .dropdown-item {
    font-size: 0.9rem;
    color: var(--cs-text-muted);
    padding: 0.5rem 1.25rem;
}
.cs-navbar .dropdown-item:hover {
    background-color: var(--cs-soft-highlight);
    color: var(--cs-primary);
}

.badge-soon {
    font-size: 0.6rem;
    background-color: var(--cs-soft-highlight);
    color: var(--cs-text-muted);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    vertical-align: top;
    margin-left: 4px;
}

.nav-icon {
    color: var(--cs-text-primary);
    position: relative;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-icon:hover {
    color: var(--cs-primary);
}
.nav-icon.dropdown-toggle::after {
    display: none;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--cs-accent);
    color: white;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-body);
}

/* ====================================================
   HERO SECTION
   ==================================================== */
.hero-section {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--cs-text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.hero-shape-1, .hero-shape-2 {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}
.hero-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: var(--cs-soft-highlight);
    filter: blur(60px);
}
.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: #E8F0EE;
    filter: blur(80px);
}
.hero-stats-card {
    background: var(--cs-card-bg);
    padding: 1.5rem;
    border: 1px solid var(--cs-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: inline-block;
    margin-top: 3rem;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ====================================================
   FEATURES BAR
   ==================================================== */
.features-bar {
    border-top: 1px solid var(--cs-border);
    border-bottom: 1px solid var(--cs-border);
    background-color: var(--cs-card-bg);
    padding: 2rem 0;
}
.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-3px);
}
.feature-icon {
    width: 24px;
    height: 24px;
    stroke: var(--cs-primary);
    flex-shrink: 0;
}
.feature-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cs-text-primary);
    margin: 0;
}

/* ====================================================
   SHOP BY CATEGORY
   ==================================================== */
.category-section {
    padding: 6rem 0;
}
.cat-card {
    position: relative;
    background-color: var(--cs-border);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}
.cat-card-img-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cs-soft-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s ease;
    overflow: hidden;
}
.cat-card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-card:hover .cat-card-img-placeholder {
    transform: scale(1.05);
}
.cat-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(30,30,30,0.6) 0%, rgba(30,30,30,0) 50%);
    z-index: 1;
}
.cat-card-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.cat-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.cat-soon {
    filter: grayscale(100%);
    opacity: 0.8;
    cursor: default;
    pointer-events: none;
}
.cat-soon:hover .cat-card-img-placeholder {
    transform: none;
}

/* ====================================================
   PRODUCT GRID
   ==================================================== */
.products-section {
    padding: 4rem 0 6rem;
}
.product-card {
    background: transparent;
    border: none;
    margin-bottom: 2rem;
    color: var(--cs-text-primary);
}
.product-card:hover {
    color: var(--cs-text-primary);
}
.product-img-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    background-color: #EFEBE4;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.product-img-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.6s ease;
}
.product-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-card:hover .product-img-inner {
    transform: scale(1.08);
}
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}
.badge-cs {
    background-color: var(--cs-card-bg);
    color: var(--cs-text-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}
.badge-sale {
    background-color: var(--cs-accent);
    color: #fff;
}
.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--cs-card-bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    cursor: pointer;
    color: var(--cs-text-muted);
}
.product-card:hover .btn-wishlist {
    opacity: 1;
    transform: translateY(0);
}
.btn-wishlist.text-danger { color: #dc3545 !important; }
.btn-add-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-top: 1px solid var(--cs-border);
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--cs-text-primary);
    transform: translateY(100%);
    transition: var(--transition-smooth);
    z-index: 2;
    cursor: pointer;
    font-family: var(--font-body);
}
.product-card:hover .btn-add-cart {
    transform: translateY(0);
}
.product-category {
    font-size: 0.75rem;
    color: var(--cs-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    display: block;
}
.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--cs-text-primary);
    font-family: var(--font-body);
}
.product-price {
    font-weight: 600;
    color: var(--cs-text-primary);
}
.product-price-old {
    color: var(--cs-text-muted);
    text-decoration: line-through;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    font-weight: 400;
}

/* ====================================================
   KIDS' CORNER PROMO
   ==================================================== */
.promo-section {
    padding: 4rem 0;
}
.promo-card {
    background-color: #E8F0EE;
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.promo-icon-bg {
    position: absolute;
    font-size: 15rem;
    opacity: 0.05;
    top: -20px;
    right: -20px;
    transform: rotate(15deg);
    pointer-events: none;
}

/* ====================================================
   WOMEN'S TEASER
   ==================================================== */
.teaser-section {
    background-color: var(--cs-card-bg);
    padding: 6rem 0;
    border-top: 1px solid var(--cs-border);
    border-bottom: 1px solid var(--cs-border);
    text-align: center;
}
.teaser-input-group {
    max-width: 400px;
    margin: 0 auto;
    border-bottom: 1px solid var(--cs-text-primary);
    display: flex;
}
.teaser-input {
    border: none;
    background: transparent;
    padding: 10px 0;
    flex-grow: 1;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--cs-text-primary);
}
.teaser-input::placeholder {
    color: var(--cs-text-muted);
}
.teaser-btn {
    border: none;
    background: transparent;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 0 10px;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--cs-text-primary);
    transition: color 0.3s ease;
}
.teaser-btn:hover {
    color: var(--cs-primary);
}

/* ====================================================
   AUTH PAGES
   ==================================================== */
.auth-page {
    background-color: var(--cs-bg);
    font-family: var(--font-body);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}
.auth-decoration-1,
.auth-decoration-2 {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}
.auth-decoration-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -150px;
    background: var(--cs-soft-highlight);
    filter: blur(80px);
}
.auth-decoration-2 {
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -100px;
    background: #E8F0EE;
    filter: blur(70px);
}
.auth-card-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}
.auth-card {
    background: var(--cs-card-bg);
    border: 1px solid var(--cs-border);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}
.auth-card-body {
    padding: 2.5rem 2rem;
}
.auth-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--cs-text-primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
}
.auth-brand:hover {
    color: var(--cs-primary);
}
.auth-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cs-text-primary);
    margin-bottom: 0.25rem;
}
.auth-subtitle {
    color: var(--cs-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}
.auth-input {
    width: 100%;
    border: 1px solid var(--cs-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--cs-text-primary);
    background: var(--cs-card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.auth-input:focus {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(31,110,90,0.1);
}
.auth-input::placeholder {
    color: #B0B0B0;
}
.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cs-text-muted);
    margin-bottom: 0.35rem;
}
.auth-link {
    color: var(--cs-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.auth-link:hover {
    color: #165243;
    text-decoration: underline;
}
.auth-alt-action {
    text-align: center;
    font-size: 0.85rem;
    color: var(--cs-text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0;
}
.auth-checkbox {
    accent-color: var(--cs-primary);
}
.auth-check-label {
    font-size: 0.85rem;
    color: var(--cs-text-muted);
    cursor: pointer;
}
.auth-validation {
    background: #FFF8F0;
    border: 1px solid #F0C8A0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #8B5E3C;
    margin-bottom: 1.25rem;
    list-style: none;
}
.auth-validation li {
    margin-bottom: 0.1rem;
}
.auth-field-error {
    font-size: 0.78rem;
    color: #dc3545;
    margin-top: 0.25rem;
    display: block;
}

/* ====================================================
   FOOTER
   ==================================================== */
.cs-footer {
    background-color: var(--cs-bg);
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--cs-border);
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--cs-text-primary);
}
.cs-footer .footer-link {
    display: block;
    color: var(--cs-text-muted);
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.cs-footer .footer-link:hover {
    color: var(--cs-primary);
}
.payment-badges span {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--cs-border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
    background: var(--cs-card-bg);
    color: var(--cs-text-primary);
}
.footer-bottom {
    border-top: 1px solid var(--cs-border);
    margin-top: 4rem;
    padding-top: 2rem;
    color: var(--cs-text-muted);
    font-size: 0.8rem;
}

/* ====================================================
   PAGE CONTENT WRAPPER (non-homepage views)
   ==================================================== */
.page-content {
    padding: 2rem 0 3rem;
}

/* ====================================================
   CART DRAWER
   ==================================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 95vw;
    height: 100dvh;
    background: var(--cs-card-bg);
    z-index: 1061;
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 40px rgba(0,0,0,0.12);
}
.cart-drawer.active {
    transform: translateX(0);
}
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--cs-border);
    flex-shrink: 0;
}
.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--cs-text-muted);
    padding: 0.1rem 0.4rem;
    transition: color 0.2s;
}
.cart-drawer-close:hover { color: var(--cs-text-primary); }
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1.5rem;
}
.cart-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--cs-border);
    flex-shrink: 0;
    background: var(--cs-card-bg);
}
.cart-drawer-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cs-border);
}
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-item-img {
    width: 72px;
    height: 90px;
    flex-shrink: 0;
    background: var(--cs-soft-highlight);
    border-radius: 4px;
    overflow: hidden;
}
.cart-drawer-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-drawer-item-img .img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--cs-soft-highlight);
}
.cart-drawer-item-info {
    flex: 1;
    min-width: 0;
}
.cart-drawer-item-info .name {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}
.cart-drawer-item-info .name a {
    color: var(--cs-text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-drawer-item-info .name a:hover { color: var(--cs-primary); }
.cart-drawer-item-info .variant {
    font-size: 0.75rem;
    color: var(--cs-text-muted);
    margin: 0 0 0.6rem;
}
.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.qty-btn {
    background: var(--cs-soft-highlight);
    border: 1px solid var(--cs-border);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-text-primary);
    transition: background 0.2s;
    padding: 0;
    flex-shrink: 0;
}
.qty-btn:hover { background: var(--cs-border); }
.qty-val {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
}
.cart-drawer-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cart-drawer-item-right .price {
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
    color: var(--cs-text-primary);
}
.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cs-text-muted);
    padding: 0.2rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.remove-btn:hover { color: #dc3545; }

/* ====================================================
   CHECKOUT PAGE (Shopify-style, standalone)
   ==================================================== */
.checkout-page {
    background: #fff;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--cs-text-primary);
}
.checkout-page-wrap {
    display: flex;
    min-height: 100vh;
}
.checkout-left {
    flex: 0 0 55%;
    max-width: 55%;
    background: #fff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.checkout-left-inner {
    width: 100%;
    max-width: 500px;
    padding: 3rem 2.5rem 4rem;
}
.checkout-right {
    flex: 0 0 45%;
    max-width: 45%;
    background: #fafaf8;
    border-left: 1px solid var(--cs-border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.checkout-summary-inner {
    padding: 3rem 2.5rem;
    max-width: 450px;
}
.checkout-logo-link {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cs-text-primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.checkout-logo-link:hover { color: var(--cs-primary); }
.checkout-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--cs-text-muted);
    margin-bottom: 2.5rem;
}
.checkout-breadcrumbs a {
    color: var(--cs-primary);
    text-decoration: none;
}
.checkout-breadcrumbs a:hover { text-decoration: underline; }
.checkout-breadcrumbs .sep { color: var(--cs-border); }
.checkout-breadcrumbs .active { color: var(--cs-text-primary); font-weight: 500; }
.checkout-section {
    margin-bottom: 2rem;
}
.checkout-section h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cs-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cs-border);
}
.checkout-field {
    margin-bottom: 0.875rem;
}
.checkout-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cs-text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.checkout-input {
    width: 100%;
    border: 1px solid var(--cs-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--cs-text-primary);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: none;
}
.checkout-input:focus {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(31,110,90,0.1);
}
.checkout-field-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}
.field-error {
    display: block;
    color: #dc3545;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}
.zone-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--cs-border);
    border-radius: 6px;
    overflow: hidden;
}
.zone-option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--cs-border);
    position: relative;
}
.zone-option-label:last-child { border-bottom: none; }
.zone-option-label:hover { background: var(--cs-soft-highlight); }
.zone-option-label input[type="radio"] {
    accent-color: var(--cs-primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.zone-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}
.zone-option-content .zone-name { font-size: 0.9rem; font-weight: 500; }
.zone-option-content .zone-price { font-size: 0.875rem; color: var(--cs-text-muted); }
.zone-option-content .free { color: #28a745; font-weight: 600; }
.zone-option-label.zone-selected { background: #edf5f2; }
.checkout-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.return-link {
    font-size: 0.85rem;
    color: var(--cs-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.return-link:hover { color: var(--cs-primary); }
.btn-place-order {
    background: var(--cs-primary);
    color: #fff;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.3px;
}
.btn-place-order:hover {
    background: #165243;
    transform: translateY(-1px);
}
/* Checkout right summary */
.summary-items { margin-bottom: 1.5rem; }
.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.summary-item:last-child { margin-bottom: 0; }
.summary-item-img {
    position: relative;
    width: 64px;
    height: 80px;
    flex-shrink: 0;
    background: var(--cs-soft-highlight);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--cs-border);
}
.summary-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.summary-item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--cs-text-muted);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.summary-item-details { flex: 1; min-width: 0; }
.summary-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: var(--cs-text-primary);
}
.summary-item-variant {
    font-size: 0.75rem;
    color: var(--cs-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.summary-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
    display: inline-block;
}
.summary-item-price {
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    color: var(--cs-text-primary);
}
.summary-divider { border: none; border-top: 1px solid var(--cs-border); margin: 1.25rem 0; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 0.6rem;
}
.summary-row .label { color: var(--cs-text-muted); }
.summary-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--cs-border);
    margin-top: 0.5rem;
}
.summary-grand-total .gt-label { font-size: 1rem; font-weight: 600; }
.summary-grand-total .gt-amount {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.summary-grand-total .gt-currency {
    font-size: 0.75rem;
    color: var(--cs-text-muted);
}
.summary-grand-total .gt-value { font-size: 1.25rem; font-weight: 700; }
.cod-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--cs-text-muted);
    background: var(--cs-soft-highlight);
    padding: 0.6rem 1rem;
    border-radius: 6px;
}
.cod-badge svg { flex-shrink: 0; }
.checkout-alert-error {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #721c24;
    margin-bottom: 1.5rem;
}
@media (max-width: 767px) {
    .checkout-page-wrap { flex-direction: column; }
    .checkout-right {
        order: -1;
        flex: none;
        max-width: 100%;
        position: static;
        height: auto;
        border-left: none;
        border-bottom: 1px solid var(--cs-border);
    }
    .checkout-left {
        flex: none;
        max-width: 100%;
        align-items: stretch;
    }
    .checkout-left-inner,
    .checkout-summary-inner { padding: 1.5rem 1rem; max-width: 100%; }
    .checkout-field-row-two { grid-template-columns: 1fr; }
    .checkout-actions { flex-direction: column-reverse; align-items: stretch; }
    .btn-place-order { width: 100%; text-align: center; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .checkout-left { flex: 0 0 52%; max-width: 52%; }
    .checkout-right { flex: 0 0 48%; max-width: 48%; }
    .checkout-left-inner, .checkout-summary-inner { padding: 2rem 1.5rem; }
}
