:root {
    --logo-size: 76px;
    --ink: #151515;
    --muted: #737373;
    --line: #e8e4df;
    --soft: #f7f4ef;
    --soft-2: #fbfaf7;
    --paper: #ffffff;
    --accent: #b83b32;
    --denim: #24445f;
    --sage: #7d8b6f;
    --radius-sm: 6px;
    --radius-md: 8px;
    --shadow-soft: 0 18px 42px rgba(21, 21, 21, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    color: var(--ink);
    background: var(--soft-2);
    line-height: 1.6;
    min-width: 320px;
    overflow-x: hidden;
}

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

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

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

.btn {
    border-radius: var(--radius-sm);
    min-height: 44px;
    padding: 0.65rem 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.top-strip {
    background: var(--ink);
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 0.55rem 2rem;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    min-height: 76px;
    padding: 0 2.5rem;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 200;
    letter-spacing: 0.16em;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    
}

.site-header .brand-logo img {
    width: var(--logo-size);
    height: var(--logo-size);
    object-fit: contain;
    max-width: 100%;
    display: block;
    flex-shrink: 0;
}

.brand-logo span {
    font-size: 1.55rem;
    line-height: 1;
}

.main-nav {
    gap: 1.55rem;
}

.main-nav .nav-link {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.8rem 0;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    display: grid;
    place-items: center;
}

.mega-parent {
    position: static;
}

.mega-menu {
    position: absolute;
    left: 2.5rem;
    right: 2.5rem;
    top: 100%;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.25s ease;
}

.mega-parent:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-links h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.mega-links a {
    display: block;
    color: var(--muted);
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.mega-promo {
    position: relative;
    min-height: 210px;
    overflow: hidden;
}

.mega-promo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mega-promo span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: #fff;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.mega-promo:hover img,
.collection-tile:hover img,
.image-banner:hover img,
.instagram-grid a:hover img {
    transform: scale(1.05);
}

.mobile-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}

.hero-carousel .carousel-item {
    height: min(760px, calc(100vh - 112px));
    min-height: 540px;
}

.hero-carousel picture,
.hero-carousel img {
    width: 100%;
    height: 100%;
}

.hero-carousel picture {
    display: block;
}

.hero-carousel img {
    object-fit: cover;
}

.hero-carousel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.carousel-caption {
    left: 8%;
    right: auto;
    bottom: 19%;
    text-align: left;
    max-width: 560px;
    color: #fff;
}

.carousel-caption span,
.section-heading span,
.image-banner span,
.wide-editorial span,
.auth-card > span,
.newsletter-card > span,
.collection-hero span {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.carousel-caption h1 {
    font-size: clamp(1.5rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.carousel-caption p {
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.dark-caption {
    color: var(--ink);
}

.service-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
}

.service-row div {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.15rem;
    border-right: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
}

.section-wrap {
    padding: 5.2rem 2.5rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.4rem;
}

.section-heading h2,
.page-head h1,
.collection-hero h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
}

.section-heading.with-link {
    display: flex;
    justify-content: space-between;
    align-items: end;
    text-align: left;
}

.section-heading.with-link a {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
}

.collection-tile {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--soft);
}

.collection-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.45s ease;
}

.collection-tile span {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    background: #fff;
    min-width: 70%;
    text-align: center;
    padding: 0.72rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.product-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 1.3rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.product-card {
    min-width: 0;
    scroll-snap-align: start;
}

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: var(--soft);
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.28s ease, transform 0.45s ease;
}

.product-media .secondary-img {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.product-card:hover .secondary-img {
    opacity: 1;
}

.product-card:hover .primary-img,
.product-card:hover .secondary-img {
    transform: scale(1.035);
}

.product-label,
.detail-label {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 1;
    background: var(--denim);
    color: #fff;
    padding: 0.35rem 0.6rem;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-label {
    position: static;
    display: inline-block;
    margin-bottom: 0.9rem;
}

.label-sale {
    background: var(--accent);
}

.product-info {
    padding-top: 1rem;
}

.product-brand,
.detail-brand {
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.product-info h3 {
    font-size: 0.96rem;
    font-weight: 500;
    min-height: 2.8rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.55rem 0;
}

.price {
    font-weight: 700;
}

.compare-price {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.swatches {
    display: flex;
    gap: 0.35rem;
    min-height: 22px;
}

.swatches span,
.color-option span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #cfcfcf;
    background: var(--swatch);
    display: inline-block;
}

.product-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.9rem;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.22s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

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

.image-banner,
.wide-editorial {
    min-height: 520px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.image-banner img,
.wide-editorial img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.image-banner::after,
.wide-editorial::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.08));
}

.image-banner div {
    position: relative;
    z-index: 1;
    max-width: 420px;
    padding: 4rem;
    top: 50%;
    transform: translateY(-50%);}


.wide-editorial div {
    position: relative;
    z-index: 1;
    max-width: 420px;
    padding: 4rem;
    top: 50%;
    transform: translateY(-5%);}

.image-banner h2,
.wide-editorial h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1;
}

.wide-editorial {
    min-height: 640px;
}

.wide-editorial div {
    max-width: 620px;
}

.wide-editorial p {
    max-width: 580px;
    margin: 1rem 0 1.5rem;
}

.manufacturing-services {
    background: var(--soft);
}

.service-card-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.service-card-grid div,
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.6rem;
}

.service-card-grid i,
.contact-card i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--ink);
    color: #fff;
    margin-bottom: 1rem;
}

.service-card-grid h3,
.contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.service-card-grid p,
.contact-card p,
.contact-panel p {
    color: var(--muted);
    margin-bottom: 0;
}

.contact-panel {
    padding-top: 0;
}

.contact-panel > div {
    background: var(--soft);
    padding: 3rem;
    max-width: 980px;
    margin: 0 auto;
}

.contact-panel span,
.page-head span {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.contact-panel h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.instagram-section {
    padding: 5rem 2.5rem 2rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
}

.instagram-grid a {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: block;
}

.instagram-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.instagram-grid i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.25);
    color: #fff;
    opacity: 0;
    transition: 0.25s ease;
}

.instagram-grid a:hover i {
    opacity: 1;
}

.site-footer {
    background: #111;
    color: #fff;
    padding: 3rem 2.5rem 1.4rem;
}

.newsletter-band {
    background: #fff;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    margin-bottom: 3rem;
}

.newsletter-inline {
    display: flex;
    width: min(520px, 100%);
}

.newsletter-inline input,
.checkout-form input,
.checkout-form textarea,
.auth-card input,
.price-inputs input {
    width: 100%;
    border: 1px solid var(--line);
    min-height: 46px;
    padding: 0.8rem 1rem;
    outline: 0;
}

.footer-main a {
    display: block;
    color: #cfcfcf;
    margin: 0.55rem 0;
}

.footer-main p {
    color: #cfcfcf;
}

.socials {
    display: flex;
    gap: 0.8rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.footer-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.footer-brand h5 {
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.14);
    margin-top: 2rem;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    color: #cfcfcf;
    font-size: 0.82rem;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(430px, 92vw);
    height: 100vh;
    background: #fff;
    z-index: 1060;
    transform: translateX(100%);
    transition: 0.28s ease;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.cart-drawer.open {
    transform: translateX(0);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer-header,
.cart-drawer-footer {
    padding: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.cart-drawer-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    display: grid;
    gap: 0.8rem;
}

.cart-drawer-count {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.cart-drawer-body {
    overflow-y: auto;
    padding: 1rem;
}

.mini-cart-item {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.mini-cart-item img {
    width: 82px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.mini-cart-item h4 {
    font-size: 0.9rem;
}

.cart-total-row,
.cart-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
}

.collection-hero,
.page-head {
  
    background: var(--soft);
    display: grid;
    place-items: center;
    text-align: center;
    
}

.collection-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    padding: 3rem 2.5rem 5rem;
}

.filters-panel {
    border-right: 1px solid var(--line);
    padding-right: 2rem;
}

.filter-block {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.4rem;
    margin-bottom: 1.4rem;
}

.filter-block h6 {
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.55rem 0;
    color: var(--muted);
}

.clear-link {
    display: inline-block;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--ink);
    margin-bottom: 0.5rem;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.size-filter,
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-filter input,
.size-options input,
.variant-options input {
    position: absolute;
    opacity: 0;
}

.size-filter span,
.size-options span {
    min-width: 42px;
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    padding: 0 0.75rem;
}

.size-filter input:checked + span,
.size-options input:checked + span {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.collection-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.toolbar-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.grid-toggle {
    display: flex;
    border: 1px solid var(--line);
}

.grid-toggle button {
    width: 42px;
    height: 38px;
    border: 0;
    background: #fff;
}

.grid-toggle button.active {
    background: var(--ink);
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.3rem;
}

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

.product-card-list {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.5rem;
}

.product-card-list .product-actions {
    opacity: 1;
    transform: none;
    grid-template-columns: repeat(2, max-content);
}

.list-description {
    color: var(--muted);
    max-width: 720px;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 3rem;
}

.pagination-wrap a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
}

.pagination-wrap a.active {
    background: var(--ink);
    color: #fff;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 4rem;
    padding: 3rem 2.5rem 5rem;
}

.product-gallery {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1rem;
}

.thumbs {
    display: grid;
    align-content: start;
    gap: 0.8rem;
}

.thumbs button {
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
}

.thumbs button.active {
    border-color: var(--ink);
}

.thumbs img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.main-image {
    overflow: hidden;
    background: var(--soft);
}

.main-image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.2s ease;
}

.product-summary {
    position: sticky;
    top: 110px;
    align-self: start;
}

.breadcrumb-lite {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.86rem;
}

.product-summary h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.05;
    font-weight: 700;
}

.detail-price {
    font-size: 1.25rem;
}

.variant-block {
    margin: 1.4rem 0;
}

.variant-block > label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--line);
    padding: 0.55rem 0.8rem;
}

.color-option input:checked + span {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.quantity-add-row {
    display: flex;
    gap: 0.8rem;
}

.qty-control {
    display: inline-grid;
    grid-template-columns: 38px 54px 38px;
    border: 1px solid var(--line);
    height: 46px;
}

.qty-control button,
.qty-control input {
    border: 0;
    background: #fff;
    text-align: center;
    min-width: 0;
}

.detail-meta {
    display: grid;
    gap: 0.6rem;
    color: var(--muted);
    margin-top: 1.6rem;
}

.sticky-atc {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
}

.sticky-atc img {
    width: 48px;
    height: 58px;
    object-fit: cover;
}

.sticky-atc div {
    min-width: min(380px, 40vw);
}

.cart-page,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    padding: 3rem 2.5rem 5rem;
}

.cart-line {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    align-items: center;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

.cart-line img {
    width: 100px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.cart-line h3 {
    font-size: 1rem;
}

.cart-summary,
.auth-card,
.checkout-form {
    border: 1px solid var(--line);
    padding: 2rem;
    align-self: start;
}

.cart-summary h2,
.checkout-form h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.premium-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(21,21,21,0.06);
}

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

.form-grid label,
.checkout-form > label {
    margin-bottom: 0;
}

.form-grid input,
.form-grid select,
.checkout-form textarea,
.checkout-form input,
.payment-panel input,
.payment-panel select {
    border: 1px solid var(--line);
    background: #fff;
    width: 100%;
    min-height: 46px;
    padding: 0.8rem 1rem;
    outline: 0;
}

.checkout-form textarea {
    min-height: 130px;
    resize: vertical;
}

.field-error {
    color: #b83b32;
    font-size: 0.78rem;
    font-weight: 600;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    min-height: 18px;
}

.checkout-actions,
.payment-actions,
.admin-toolbar {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.summary-items {
    display: grid;
    gap: 1rem;
}

.summary-item-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.9rem;
}

.summary-item-card.compact {
    grid-template-columns: 64px 1fr auto;
}



.summary-item-card strong,
.summary-item-card span {
    display: block;
}

.summary-item-card select {
    margin-top: 0.35rem;
    width: 100%;
}

.summary-totals,
.admin-brand-block {
    display: grid;
    gap: 0.65rem;
}

.payment-method-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 1rem;
    display: grid;
    gap: 0.3rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.payment-method-card.active {
    border-color: var(--ink);
    box-shadow: 0 10px 28px rgba(21,21,21,0.09);
}

.payment-method-card input {
    margin-right: 0.45rem;
}

.payment-details-group {
    display: none;
    border: 1px solid var(--line);
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(255,255,255,0.75);
}

.payment-details-group h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.payment-status-note,
.summary-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-dashboard,
.admin-orders {
    display: grid;
    gap: 1.5rem;
}

.admin-layout {
    display: block;
}

.admin-sidebar.offcanvas-start {
    width: 290px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, var(--paper) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.admin-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1rem 0;
}

.admin-sidebar .offcanvas-body {
    padding: 1rem;
}

.admin-brand-block {
    display: grid;
}

.admin-brand-block span,
.admin-page-head span,
.admin-topbar-copy span {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.admin-brand-block h1,
.admin-page-head h2 {
    margin-bottom: 0.4rem;
    line-height: 1;
}

.admin-brand-block p,
.admin-page-head p,
.admin-topbar-copy p {
    margin: 0;
    color: var(--muted);
}

.admin-nav {
    display: grid;
    gap: 0.55rem;
}

.admin-nav .nav-link {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ink);
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.admin-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.25s ease;
}

.admin-nav .nav-link:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, rgba(245, 245, 245, 0.8) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.admin-nav .nav-link.active {
    background: linear-gradient(135deg, var(--ink) 0%, rgba(21, 21, 21, 0.95) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(21, 21, 21, 0.2);
}

.admin-nav .nav-link.active::before {
    transform: scaleY(1);
}

.admin-sidebar-footer {
    display: grid;
    gap: 0.65rem;
}

.admin-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, var(--soft) 0%, rgba(255, 255, 255, 0.5) 100%);
    color: var(--ink);
    padding: 0.55rem 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.admin-sidebar-toggle:hover {
    background: linear-gradient(135deg, var(--ink) 0%, rgba(21, 21, 21, 0.9) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(21, 21, 21, 0.15);
    transform: translateY(-2px);
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.admin-stats--dense > div {
    animation: fadeInUp 0.5s ease-out backwards;
}

.admin-stats--dense > div:nth-child(1) { animation-delay: 0.1s; }
.admin-stats--dense > div:nth-child(2) { animation-delay: 0.2s; }
.admin-stats--dense > div:nth-child(3) { animation-delay: 0.3s; }
.admin-stats--dense > div:nth-child(4) { animation-delay: 0.4s; }

.admin-topbar-copy p {
    font-size: 0.95rem;
}

.admin-content {
    min-width: 0;
    display: grid;
    gap: 1.25rem;
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease-out 0.1s backwards;
}

main.admin-shell {
    padding: 2rem 2rem 4rem;
    background:
        radial-gradient(circle at top left, rgba(36, 68, 95, 0.08), transparent 34%),
        radial-gradient(circle at top right, rgba(184, 59, 50, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfaf7 0%, #ffffff 100%);
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.admin-hero span,
.admin-slide span,
.chart-panel .section-heading span {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.admin-hero h1 {
    font-size: clamp(2.1rem, 3vw, 3.6rem);
    line-height: 1;
    margin-bottom: 0.55rem;
}

.admin-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.admin-stats--dense > div {
    background: linear-gradient(135deg, var(--paper) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(21, 21, 21, 0.08),
        0 8px 16px rgba(21, 21, 21, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-stats--dense > div::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(184, 59, 50, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.admin-stats--dense > div:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(21, 21, 21, 0.15),
        0 12px 24px rgba(21, 21, 21, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.admin-summary-block {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-summary-block span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.admin-summary-block strong {
    font-size: 1.65rem;
    margin-top: 0.3rem;
    font-weight: 700;
}

.admin-stats > div,
.premium-panel,
.order-detail-panel {
    padding: 1.75rem;
}

.admin-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-stats strong {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}

.status-badge {
    display: inline-flex;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-pending { 
    background: linear-gradient(135deg, #fff7e8 0%, #fffaf2 100%);
    color: #a56f3c;
    border-color: rgba(165, 111, 60, 0.2);
}

.status-processing { 
    background: linear-gradient(135deg, #eef5ff 0%, #f5f9ff 100%);
    color: #2563a6;
    border-color: rgba(37, 99, 166, 0.2);
}

.status-shipped { 
    background: linear-gradient(135deg, #e8f7f0 0%, #f0faf8 100%);
    color: #0d8659;
    border-color: rgba(13, 134, 89, 0.2);
}

.status-delivered { 
    background: linear-gradient(135deg, #e8f7ef 0%, #f0faf8 100%);
    color: #0d8659;
    border-color: rgba(13, 134, 89, 0.2);
}

.status-cancelled { 
    background: linear-gradient(135deg, #fdecec 0%, #fef5f5 100%);
    color: #a52a2a;
    border-color: rgba(165, 42, 42, 0.2);
}

.status-active { 
    background: linear-gradient(135deg, #e8f7ef 0%, #f0faf8 100%);
    color: #0d8659;
    border-color: rgba(13, 134, 89, 0.2);
}

.status-low-stock { 
    background: linear-gradient(135deg, #fff7e8 0%, #fffaf2 100%);
    color: #a56f3c;
    border-color: rgba(165, 111, 60, 0.2);
}

.status-out-of-stock { 
    background: linear-gradient(135deg, #fdecec 0%, #fef5f5 100%);
    color: #a52a2a;
    border-color: rgba(165, 42, 42, 0.2);
}

.admin-carousel {
    margin-top: 0.5rem;
}

.admin-slide {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 1rem;
}

.admin-slide-card,
.admin-slide-list,
.chart-panel,
.premium-panel {
    background: linear-gradient(135deg, var(--paper) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(21, 21, 21, 0.06),
        0 8px 16px rgba(21, 21, 21, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.admin-slide-card::before,
.admin-slide-list::before,
.chart-panel::before,
.premium-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

.admin-slide-card:hover,
.admin-slide-list:hover,
.chart-panel:hover,
.premium-panel:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 30px 60px rgba(21, 21, 21, 0.12),
        0 12px 24px rgba(21, 21, 21, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.admin-slide-card h2 {
    font-size: clamp(1.6rem, 2vw, 2.4rem);
    margin-bottom: 0.65rem;
}

.admin-slide-card p {
    color: var(--muted);
    margin: 0;
}

.admin-slide-list {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.admin-mini-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
}

.admin-mini-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-mini-row strong,
.admin-mini-row small {
    display: block;
}

.admin-mini-row small {
    color: var(--muted);
}

.admin-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.chart-panel {
    display: grid;
    gap: 1rem;
}

.chart-box {
    position: relative;
    min-height: 300px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chart-box--compact {
    min-height: 260px;
}

.chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.admin-stock-form {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.admin-stock-form input {
    width: 90px;
    min-height: 40px;
    border: 1px solid var(--line);
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.95) 100%);
    transition: all 0.2s ease;
}

.admin-stock-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 59, 50, 0.1);
    outline: none;
}

.admin-stock-form .btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.admin-stock-form .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.admin-stock-form .btn:hover::before {
    width: 300px;
    height: 300px;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: rgba(184, 59, 50, 0.05);
}

.admin-table td,
.admin-table th {
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

.admin-table th {
    background: linear-gradient(135deg, rgba(21, 21, 21, 0.02) 0%, rgba(21, 21, 21, 0.01) 100%);
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--line);
    padding: 1.25rem 1.25rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.admin-mini-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
}

.admin-mini-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-mini-row strong,
.admin-mini-row small {
    display: block;
}

.admin-mini-row small {
    color: var(--muted);
}

.detail-grid,
.success-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1rem 0 1.25rem;
}

.detail-grid span,
.success-meta span,
.saved-address-block p {
    color: var(--muted);
    display: block;
    font-size: 0.86rem;
}

.saved-address-block {
    border: 1px solid var(--line);
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}

.saved-address-block p {
    margin: 0;
}

.checkout-page .cart-summary,
.payment-layout .cart-summary,
.success-layout .cart-summary {
    position: sticky;
    top: 95px;
}

.summary-total {
    border-top: 1px solid var(--line);
    margin-top: 0.8rem;
    padding-top: 1rem !important;
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--soft);
}

.account-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 2.5rem;
    background: linear-gradient(135deg, #f7f4ef 0%, #ffffff 55%, #eef4f1 100%);
    border-bottom: 1px solid var(--line);
}

.account-hero span,
.account-section-head span {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-hero h1 {
    margin: 0.4rem 0 0.65rem;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    line-height: 1;
    font-weight: 800;
}

.account-hero p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.account-hero .btn,
.account-profile-panel .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.account-dashboard {
    padding: 2.5rem;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.account-stats > div {
    display: grid;
    gap: 0.35rem;
    padding: 1.15rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.account-stats i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--denim);
    border-radius: 50%;
}

.account-stats span,
.account-order-top span,
.account-order-total span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-stats strong {
    font-size: 1.45rem;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.account-profile-panel,
.account-orders-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.account-profile-panel {
    position: sticky;
    top: 96px;
    padding: 1.35rem;
}

.account-avatar {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
    font-size: 2rem;
}

.account-profile-panel h2 {
    margin: 0;
    font-size: 1.35rem;
}

.account-profile-panel p {
    margin: 0.5rem 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.account-profile-panel .btn {
    width: 100%;
    margin-top: 1rem;
}

.account-orders-panel {
    padding: 1.35rem;
}

.account-section-head,
.account-order-top,
.account-status-row,
.account-item-strip,
.account-item-strip > div {
    display: flex;
    align-items: center;
}

.account-section-head,
.account-order-top {
    justify-content: space-between;
    gap: 1rem;
}

.account-section-head {
    margin-bottom: 1.1rem;
}

.account-section-head h2,
.account-order-top h3 {
    margin: 0.25rem 0 0;
    font-weight: 800;
}

.account-section-head a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--denim);
}

.account-order-list {
    display: grid;
    gap: 1rem;
}

.account-order-card {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--soft-2);
}

.account-order-top small {
    color: var(--muted);
}

.account-order-total {
    text-align: right;
}

.account-order-total strong {
    display: block;
    font-size: 1.2rem;
}

.account-status-row {
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.account-status-row > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.account-status-pill {
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    color: #155b3e;
    background: #e9f7ef;
    font-weight: 800;
}

.account-status-pending,
.account-status-confirmed,
.account-status-processing {
    color: #7a4b10;
    background: #fff4df;
}

.account-status-shipped,
.account-status-out_for_delivery {
    color: #24445f;
    background: #e8f1f8;
}

.account-status-cancelled,
.account-status-returned {
    color: #9d2b2b;
    background: #fde9e6;
}

.account-progress {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 1rem 0;
}

.account-progress > div {
    position: relative;
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    color: var(--muted);
    text-align: center;
    font-size: 0.72rem;
}

.account-progress > div::before {
    content: "";
    position: absolute;
    top: 17px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.account-progress > div:first-child::before {
    display: none;
}

.account-progress span {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.account-progress .complete::before,
.account-progress .complete span {
    background: var(--sage);
    border-color: var(--sage);
}

.account-progress .complete span {
    color: #fff;
}

.account-progress .current span {
    background: var(--accent);
    border-color: var(--accent);
}

.account-progress-muted .complete::before,
.account-progress-muted .complete span,
.account-progress-muted .current span {
    background: #c9c3bc;
    border-color: #c9c3bc;
}

.account-item-strip {
    flex-wrap: wrap;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.account-item-strip > div {
    min-width: min(100%, 240px);
    flex: 1 1 220px;
    gap: 0.7rem;
}

.account-item-strip img,
.account-item-fallback {
    width: 48px;
    height: 58px;
    flex: 0 0 48px;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
}

.account-item-fallback {
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px solid var(--line);
}

.account-item-strip p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
}

.account-item-strip small {
    display: block;
    margin-top: 0.22rem;
    color: var(--muted);
    font-weight: 500;
}

.account-item-strip > strong {
    color: var(--denim);
    font-size: 0.84rem;
}

.account-empty {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 4rem 1rem;
    text-align: center;
    background: var(--soft);
    border-radius: var(--radius-md);
}

.account-empty > i {
    font-size: 2.8rem;
    color: var(--accent);
}

.account-empty h3,
.account-empty p {
    margin: 0;
}

.account-empty p {
    color: var(--muted);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(26, 26, 26, 0.65) 50%, rgba(45, 36, 16, 0.65) 100%),
        url('../images/pic.png') right/cover no-repeat fixed,
        url('../images/pic.png') center/cover no-repeat fixed;
    background-size: cover;
    background-position: center right;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .auth-page {
        background-attachment: scroll;
        padding: 1.5rem 1rem;
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(26, 26, 26, 0.7) 50%, rgba(45, 36, 16, 0.7) 100%),
            url('../images/pic.png') right/cover no-repeat scroll,
            url('../images/pic.png') center/cover no-repeat scroll;
        background-size: cover;
    }
}

@media (max-width: 1024px) {
    .auth-page {
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(26, 26, 26, 0.65) 50%, rgba(45, 36, 16, 0.65) 100%),
            url('../images/pic.png') right/cover no-repeat fixed,
            url('../images/pic.png') center/cover no-repeat fixed;
        background-size: cover;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 1rem;
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(26, 26, 26, 0.75) 50%, rgba(45, 36, 16, 0.75) 100%),
            url('../images/pic.png') center/cover no-repeat scroll,
            url('../images/pic.png') center/cover no-repeat scroll;
        background-size: cover;
    }
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    width: min(480px, 100%);
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5a2b, #b8860b, #8b5a2b);
    z-index: 2;
}

.auth-card-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(180deg, rgba(139, 90, 43, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(139, 90, 43, 0.1);
}

.auth-card-logo {
    max-width: 100px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 480px) {
    .auth-card {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }

    .auth-card-header {
        padding: 1.5rem 1.5rem 0.8rem;
    }

    .auth-card-logo {
        max-width: 80px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .auth-card {
        width: min(450px, 100%);
    }

    .auth-card-logo {
        max-width: 90px;
    }
}

.auth-card h1 {
    font-weight: 700;
    margin-bottom: 1.4rem;
    color: #1a1a1a;
    font-size: 1.8rem;
}

.auth-card label,
.checkout-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.auth-card input {
    padding: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-card input:focus {
    outline: none;
    border-color: #8b5a2b;
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
    background: #fafafa;
}

.auth-card p {
    font-size: 0.95rem;
}

.checkout-form {
    border: 0;
    padding: 0;
}

.quick-view-body {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 2rem;
}

.quick-view-image img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.quick-actions {
    display: flex;
    gap: 0.8rem;
}

.newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 1070;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.38);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.newsletter-popup.open {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float {
    position: sticky;
    top: calc(100vh - 92px);
    z-index: 1010;
    float: right;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 58px;
    margin: 1rem 1.4rem -74px 0;
    padding: 0.72rem 1.05rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #128c4a 100%);
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 3px solid #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,0.24), 0 0 0 1px rgba(37,211,102,0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #fff !important;
    background: linear-gradient(135deg, #35ec73 0%, #10a948 100%);
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.32), 0 0 0 1px rgba(37,211,102,0.24);
    outline: none;
}

.whatsapp-float i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    font-size: 1.55rem;
    line-height: 1;
}

.whatsapp-float span {
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .whatsapp-float {
        top: calc(100vh - 80px);
        min-height: 52px;
        margin: 0.8rem 0.85rem -66px 0;
        padding: 0.5rem;
        border-width: 2px;
    }

    .whatsapp-float span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .whatsapp-float i {
        width: 36px;
        height: 36px;
        background: transparent;
        font-size: 1.7rem;
    }
}

.newsletter-card {
    width: min(430px, 92vw);
    background: #fff;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.newsletter-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
}

.newsletter-card input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stats div {
    background: var(--soft);
    padding: 1.5rem;
}

.admin-stats span {
    display: block;
    color: var(--muted);
}

.admin-stats strong {
    font-size: 2rem;
}

/* Modern responsive storefront polish */
.site-header {
    box-shadow: 0 6px 24px rgba(21, 21, 21, 0.04);
}

.navbar-toggler,
.icon-btn {
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar-toggler:hover,
.icon-btn:hover,
.icon-btn:focus-visible {
    background: var(--soft);
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.mega-menu,
.collection-tile,
.product-media,
.image-banner,
.wide-editorial,
.service-card-grid div,
.contact-card,
.newsletter-band,
.cart-summary,
.checkout-form,
.filters-panel,
.payment-method-card,
.payment-details-group,
.saved-address-block,
.empty-state,
.newsletter-card {
    border-radius: var(--radius-md);
}

.collection-tile,
.product-media,
.image-banner,
.wide-editorial {
    isolation: isolate;
}

.service-card-grid div,
.contact-card,
.cart-summary,
.checkout-form,
.filters-panel,
.payment-method-card,
.saved-address-block,
.summary-item-card {
    box-shadow: 0 12px 30px rgba(21, 21, 21, 0.04);
}

.page-head,
.collection-hero {
    min-height: 220px;
    padding: 4rem 1rem;
}

.page-head p,
.collection-hero p {
    max-width: 720px;
    margin: 0.85rem auto 0;
    color: var(--muted);
}

.collection-content {
    min-width: 0;
}

.product-slider {
    scrollbar-width: thin;
    scrollbar-color: var(--ink) var(--soft);
}

.product-actions .btn,
.quantity-add-row .btn,
.checkout-actions .btn,
.payment-actions .btn,
.contact-actions .btn {
    white-space: normal;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.auth-card input,
.newsletter-inline input,
.newsletter-card input,
.price-inputs input {
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus,
.auth-card input:focus,
.newsletter-inline input:focus,
.newsletter-card input:focus,
.price-inputs input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(21, 21, 21, 0.08);
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.summary-totals > div,
.cart-summary > div:not(.summary-items):not(.summary-totals):not(.saved-address-block) {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
}

.saved-address-block,
.summary-items,
.summary-totals {
    width: 100%;
}

.summary-item-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.auth-card-content {
    padding: 2rem;
}

.auth-card h1 {
    text-align: center;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.auth-switch a {
    color: #8b5a2b;
    font-weight: 600;
}

@media (hover: none), (pointer: coarse) {
    .product-actions {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1199px) {
    .nav-shell {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }

    .collection-grid,
    .instagram-grid,
    .service-card-grid,
    .contact-grid,
    .payment-method-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .form-grid,
    .detail-grid,
    .success-meta {
        grid-template-columns: 1fr;
    }

    .admin-page-head,
    .admin-slide,
    .admin-chart-grid,
    .admin-summary-block {
        grid-template-columns: 1fr;
        display: grid;
    }

    main.admin-shell {
        padding: 1.5rem 1rem 3rem;
    }

    .admin-hero,
    .admin-slide,
    .admin-chart-grid {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 991px) {
    .top-strip {
        padding: 0.55rem 1rem;
    }

    .account-dashboard,
    .account-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .account-profile-panel {
        position: static;
        display: block;
    }

    .account-profile-panel .btn {
        width: 100%;
        margin-top: 1rem;
    }

    .hero-carousel .carousel-item {
        height: 620px;
        min-height: 620px;
    }

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

    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .split-banners,
    .collection-layout,
    .product-detail,
    .cart-page,
    .checkout-layout,
    .quick-view-body {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        display: none;
        border: 1px solid var(--line);
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .filters-panel.open {
        display: block;
    }

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

    .product-summary {
        position: static;
    }

    .checkout-page .cart-summary,
    .payment-layout .cart-summary,
    .success-layout .cart-summary {
        position: static;
    }

    .cart-line {
        grid-template-columns: 82px 1fr auto;
    }

    .cart-line .qty-control,
    .cart-line strong {
        grid-column: 2 / span 1;
    }
}

@media (max-width: 767px) {
    .account-hero {
        display: grid;
        gap: 1.2rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .account-hero .btn {
        width: 100%;
    }

    .account-dashboard {
        padding-top: 1rem;
    }

    .account-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .account-stats > div {
        padding: 0.9rem;
    }

    .account-stats strong {
        font-size: 1.12rem;
    }

    .account-profile-panel {
        display: block;
    }

    .account-profile-panel .btn {
        width: 100%;
    }

    .account-orders-panel,
    .account-order-card,
    .account-profile-panel {
        padding: 1rem;
    }

    .account-section-head,
    .account-order-top {
        align-items: flex-start;
    }

    .account-order-top {
        display: grid;
    }

    .account-order-total {
        text-align: left;
    }

    .account-progress {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .account-progress > div {
        grid-template-columns: 34px 1fr;
        justify-items: start;
        align-items: center;
        text-align: left;
    }

    .account-progress > div::before {
        top: -22px;
        left: 16px;
        width: 2px;
        height: 34px;
    }

    .account-item-strip > div {
        flex-basis: 100%;
    }

    .section-wrap,
    .instagram-section,
    .collection-layout,
    .product-detail,
    .cart-page,
    .checkout-layout {
        padding: 3.2rem 1rem;
    }

    .hero-carousel .carousel-item {
        height: 72svh;
        min-height: 500px;
    }

    .carousel-caption {
        left: 1.2rem;
        right: 1.2rem;
        bottom: 12%;
    }

    .carousel-caption h1 {
        font-size: clamp(2.15rem, 11vw, 2.85rem);
        line-height: 1;
    }

    .carousel-caption p {
        max-width: 92%;
    }

    .collection-grid,
    .instagram-grid,
    .service-card-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .checkout-actions,
    .payment-actions,
    .admin-toolbar {
        grid-template-columns: 1fr;
    }

    .site-header .brand-logo img {
        width: 60px;
        height: 60px;
    }

    .brand-logo span {
        font-size: 1.1rem;
    }

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

    .admin-hero {
        align-items: start;
    }

    .admin-hero-actions {
        justify-content: flex-start;
    }

    .admin-stock-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-stock-form input {
        width: 100%;
    }

    .section-heading.with-link,
    .newsletter-band,
    .footer-bottom,
    .collection-toolbar {
        display: grid;
        gap: 1rem;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .toolbar-actions .form-select {
        min-width: 0;
    }

    .newsletter-inline {
        display: grid;
        gap: 0.8rem;
    }

    .image-banner,
    .wide-editorial {
        min-height: 420px;
    }

    .image-banner div,
    .wide-editorial div {
        padding: 2rem 1.2rem;
    }

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

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

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

    .thumbs {
        grid-auto-flow: column;
        overflow-x: auto;
    }

    .thumbs button {
        width: 74px;
    }

    .sticky-atc {
        justify-content: space-between;
    }

    .sticky-atc div,
    .sticky-atc img {
        display: none;
    }

    .sticky-atc .btn {
        width: 100%;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .summary-item-card,
    .summary-item-card.compact {
        grid-template-columns: 60px minmax(0, 1fr);
        align-items: start;
    }

    .summary-item-card > strong:last-child {
        grid-column: 2;
    }
}

@media (max-width: 575px) {
    :root {
        --logo-size: 52px;
    }

    .top-strip {
        display: none;
    }

    .nav-shell {
        min-height: 64px;
        padding: 0 0.75rem;
    }

    .nav-icons {
        gap: 0.25rem;
    }

    .icon-btn,
    .navbar-toggler {
        width: 38px;
        height: 38px;
    }

    .page-head,
    .collection-hero {
        min-height: 180px;
        padding: 3rem 1rem;
    }

    .section-wrap,
    .instagram-section,
    .collection-layout,
    .product-detail,
    .cart-page,
    .checkout-layout {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .collection-grid,
    .instagram-grid {
        gap: 0.75rem;
    }

    .collection-tile span {
        width: calc(100% - 1rem);
        min-width: 0;
        padding: 0.62rem 0.55rem;
        font-size: 0.68rem;
    }

    .product-slider {
        grid-auto-columns: minmax(76vw, 1fr);
    }

    .quantity-add-row,
    .quick-actions,
    .contact-actions {
        display: grid;
    }

    .quantity-add-row .qty-control {
        width: 100%;
        grid-template-columns: 44px 1fr 44px;
    }

    .cart-drawer {
        width: 100vw;
    }

    .mini-cart-item,
    .cart-line {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        gap: 0.75rem;
    }

    .cart-line img {
        width: 72px;
    }

    .cart-line .qty-control,
    .cart-line strong {
        grid-column: 2 / span 1;
    }

    .cart-summary,
    .checkout-form,
    .premium-panel {
        padding: 1.2rem;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-band,
    .site-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-card-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel > div {
        padding: 2rem 1.2rem;
    }
}

/* Mobile app checkout flow */
.checkout-app-page {
    background: #ff6267;
}

.checkout-app-page .top-strip,
.checkout-app-page .site-header,
.checkout-app-page .site-footer,
.checkout-app-page .newsletter-popup,
.checkout-app-page .cart-drawer,
.checkout-app-page .drawer-backdrop {
    display: none !important;
}

.checkout-app-page main {
    min-height: 100svh;
    padding: 0;
    background: #ff6267;
}

.checkout-app-shell {
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.checkout-app {
    --app-purple: #212529 ;
    --app-purple-2: #f7f4ef;
    --app-orange: #341102;
    --app-ink: #0f0d18;
    --app-muted: #777381;
    width: min(100%, 430px);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, var(--app-purple-2) 0 310px, #f6f5f9 310px 100%);
    color: var(--app-ink);
    box-shadow: 0 18px 55px rgba(40, 15, 85, 0.28);
}

.checkout-app-top {
    background: var(--app-purple);
    color: #fff;
    padding: 0.9rem 1.35rem 1.05rem;
}

.checkout-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
    font-weight: 600;
    font-size: 0.95rem;
}

.checkout-status-row span:last-child {
    display: inline-flex;
    gap: 0.75rem;
    font-size: 1.15rem;
}

.checkout-app-header {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    padding-top: 1.1rem;
}

.checkout-app-header a {
    color: #fff;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-size: 1.7rem;
}

.checkout-app-header h1 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0;
}

.checkout-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    padding: 2rem 2.2rem 1.3rem;
    position: relative;
}

.checkout-progress::before {
    content: "";
    position: absolute;
    left: 4.25rem;
    right: 4.25rem;
    top: 2.7rem;
    border-top: 2px dashed rgba(20, 16, 32, 0.7);
}

.checkout-step {
    display: grid;
    justify-items: center;
    gap: 0.22rem;
    position: relative;
    z-index: 1;
    color: rgba(15, 13, 24, 0.72);
    text-align: center;
}

.checkout-step span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--app-purple);
    color: var(--app-purple);
    font-size: 0.76rem;
    font-weight: 800;
}

.checkout-step strong {
    font-size: 0.78rem;
    line-height: 1.1;
}

.checkout-step.active,
.checkout-step.complete {
    color: #08050d;
}

.checkout-step.active span,
.checkout-step.complete span {
    background: var(--app-purple);
    color: #fff;
}

.checkout-app-content {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 1.1rem;
    padding: 0 1.15rem 6.2rem;
}

.checkout-card,
.checkout-address-form,
.app-product-card,
.payment-details-group {
    background: #fff;
    border: 1px solid rgba(30, 24, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(43, 26, 84, 0.1);
}

.checkout-card {
    padding: 1rem;
}

.checkout-alert {
    padding: 0.85rem 1rem;
    background: #fff1ed;
    color: #ad390f;
    border: 1px solid #ffc5b2;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
}

.address-card {
    display: grid;
    gap: 0.75rem;
}

.address-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.86rem;
}

.address-card-head > i {
    color: var(--app-orange);
}

.address-card-head span {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    background: #eeeeef;
    color: #17131d;
    font-size: 0.58rem;
    font-weight: 700;
}

.address-card-head a {
    color: #07040c;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.address-card p {
    margin: 0;
    color: #65606d;
    font-size: 0.73rem;
    line-height: 1.8;
    padding-left: 2.05rem;
}

.address-card b {
    padding-left: 2.05rem;
    font-size: 0.76rem;
}

.checkout-address-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    box-shadow: none;
    border-color: transparent;
}

.checkout-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-section-title h2 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
}

.checkout-section-title button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--app-purple-2);
    color: #1a0f34;
}

.app-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 0.75rem;
}

.app-input {
    display: grid;
    gap: 0.28rem;
    margin: 0;
}

.app-input.full {
    grid-column: 1 / -1;
}

.app-input span {
    display: none;
}

.app-input input,
.app-input textarea,
.app-input select,
.saved-card-option input:last-child {
    width: 100%;
    min-height: 42px;
    border: 2px solid #6f6c70;
    border-radius: 6px;
    background: #fff;
    padding: 0.72rem 0.9rem;
    color: var(--app-ink);
    font-size: 0.78rem;
    outline: none;
}

.app-input input:focus,
.app-input textarea:focus,
.app-input select:focus {
    border-color: var(--app-orange);
    box-shadow: 0 0 0 3px rgba(255, 101, 15, 0.12);
}

.app-input input::placeholder,
.app-input textarea::placeholder {
    color: #69636f;
}

.app-input:has(input:focus) span,
.app-input:has(textarea:focus) span,
.app-input:has(select:focus) span,
.app-input:has(input:not(:placeholder-shown)) span,
.app-input:has(textarea:not(:placeholder-shown)) span {
    display: inline-block;
    width: fit-content;
    margin: 0 0 -0.78rem 0.72rem;
    padding: 0 0.24rem;
    background: #fff;
    color: var(--app-orange);
    font-size: 0.64rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.address-type-row,
.save-address-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #201b27;
    font-size: 0.72rem;
}

.address-type-row > span {
    margin-right: auto;
}

.address-type-row label input {
    position: absolute;
    opacity: 0;
}

.address-type-row b {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.58rem;
    border-radius: 999px;
    background: #e7e5e7;
    font-size: 0.58rem;
}

.address-type-row input:checked + b {
    background: var(--app-purple);
    color: #fff;
}

.save-address-row {
    justify-content: flex-start;
    margin: -0.2rem 0 0;
}

.save-address-row input {
    accent-color: var(--app-purple);
}

.checkout-save-btn,
.checkout-bottom-bar button,
.checkout-bottom-bar a {
    border: 0;
    min-height: 48px;
    border-radius: 6px;
    background: var(--app-purple);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.checkout-summary-section {
    display: grid;
    gap: 1rem;
}

.app-cart-items {
    display: grid;
    gap: 1rem;
}

.app-product-card {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
}

.app-product-check {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 1;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #0f8b8d;
    color: #fff;
    font-size: 0.8rem;
}

.app-product-card > img {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    object-fit: cover;
    align-self: center;
}

.app-product-info {
    min-width: 0;
    display: grid;
    gap: 0.22rem;
}

.app-product-info h3 {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    color: #6d6873;
}

.app-product-info strong {
    font-size: 1.45rem;
    line-height: 1.1;
}

.stock-text {
    color: #12965d;
    font-size: 0.76rem;
    font-weight: 800;
}

.app-product-info small,
.product-meta-lines {
    color: #5f5966;
    font-size: 0.7rem;
}

.product-meta-lines {
    display: grid;
    gap: 0.12rem;
    margin-top: 0.3rem;
    font-weight: 700;
}

.product-meta-lines label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.product-meta-lines select {
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
    padding: 0;
    outline: none;
}

.app-product-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.3rem;
}

.app-qty-control {
    display: grid;
    grid-template-columns: 38px 46px 38px;
    border: 1px solid #e2e0e5;
    border-radius: 7px;
    overflow: hidden;
}

.app-qty-control button,
.app-qty-control input,
.app-product-actions > button {
    min-height: 34px;
    border: 0;
    background: #fff;
    color: #1c1722;
    text-align: center;
    font-weight: 800;
}

.app-qty-control input {
    border-left: 1px solid #e2e0e5;
    border-right: 1px solid #e2e0e5;
    color: #1686a2;
}

.app-product-actions > button {
    padding: 0 0.9rem;
    border-radius: 7px;
    box-shadow: 0 6px 14px rgba(30, 24, 42, 0.12);
    font-size: 0.72rem;
}

.app-total-card {
    display: grid;
    gap: 0.55rem;
}

.desktop-summary-title,
.desktop-summary-total,
.desktop-summary-continue {
    display: none;
}

.app-total-card div,
.payment-mini-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.app-total-card .desktop-summary-title,
.app-total-card .desktop-summary-total {
    display: none;
}

.desktop-payment-sidebar {
    display: none;
}

.checkout-bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.95fr);
    align-items: center;
    gap: 1rem;
    min-height: 76px;
    margin-top: auto;
    padding: 0.8rem 0.7rem;
    background: #fff;
    border-top: 1px solid #2c2930;
}

.checkout-bottom-bar div {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    padding-left: 1rem;
}

.checkout-bottom-bar span {
    font-weight: 800;
    font-size: 0.8rem;
}

.checkout-bottom-bar strong {
    font-size: 0.95rem;
}

.payment-app-content {
    padding-top: 0;
}

.saved-card-panel {
    min-height: 140px;
}

.saved-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
}

.saved-card-option {
    display: grid;
    grid-template-columns: auto 1fr 72px;
    align-items: center;
    gap: 0.75rem;
}

.saved-card-option input[type="radio"],
.app-payment-option input {
    position: absolute;
    opacity: 0;
}

.saved-card-option span {
    display: grid;
    gap: 0.45rem;
    font-size: 0.82rem;
}

.saved-card-option small {
    color: #3e3944;
}

.saved-card-option input:last-child {
    min-height: 28px;
    padding: 0.35rem 0.45rem;
    border-width: 1px;
    border-radius: 0;
    font-size: 0.68rem;
}

.payment-options-list {
    display: grid;
    gap: 0.9rem;
}

.app-payment-option {
    min-height: 58px;
    border: 2px solid #c7c4cc;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.9rem 0 1.5rem;
    box-shadow: 0 8px 18px rgba(30, 24, 42, 0.05);
    font-size: 0.84rem;
    font-weight: 800;
}

.app-payment-option i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--app-orange);
    color: #fff;
    font-size: 1.05rem;
}

.app-payment-option:not(.active) i {
    opacity: 0.55;
}

.app-payment-option.active {
    border-color: var(--app-orange);
}

.payment-options-list .payment-details-group {
    display: none;
    padding: 0.9rem;
    margin-top: -0.45rem;
    box-shadow: none;
}

.payment-review-card {
    display: grid;
    gap: 0.6rem;
    color: #4d4854;
    font-size: 0.76rem;
}

.payment-review-card p {
    margin: 0;
}

.success-app-content {
    padding-top: 0;
}

.success-confirm-card {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0.7rem;
}

.success-checkmark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4c2497 0%, #7131ca 100%);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 16px 32px rgba(76, 36, 151, 0.24);
}

.success-confirm-card > span {
    color: var(--app-orange);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.success-confirm-card h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.success-confirm-card p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.success-order-id {
    width: 100%;
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: #f7f3ff;
}

.success-order-id small,
.success-detail-row span {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.success-order-id strong {
    font-size: 0.88rem;
}

.success-details-card {
    display: grid;
    gap: 0.85rem;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.success-detail-row strong {
    text-align: right;
    font-size: 0.86rem;
}

.success-items-section {
    display: grid;
    gap: 0.85rem;
}

.success-items-list {
    display: grid;
    gap: 0.85rem;
}

.success-item-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.success-item-card img,
.success-item-fallback {
    width: 74px;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    background: #f1edf8;
}

.success-item-fallback {
    display: grid;
    place-items: center;
    color: var(--app-purple);
    font-size: 1.4rem;
}

.success-item-card h3 {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.25;
}

.success-item-card span {
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.success-item-card > strong {
    grid-column: 2;
    font-size: 0.9rem;
}

.success-sidebar {
    display: none;
}

.success-secondary-link {
    min-height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #d9d2e8;
    border-radius: 12px;
    color: var(--app-purple);
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 430px) {
    .checkout-app {
        width: 100%;
        box-shadow: none;
    }
}

@media (max-width: 380px) {
    .checkout-progress {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .checkout-progress::before {
        left: 3.2rem;
        right: 3.2rem;
    }

    .app-product-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .checkout-bottom-bar {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .checkout-bottom-bar div {
        justify-content: space-between;
        padding: 0 0.4rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .checkout-app-page,
    .checkout-app-page main {
        background: linear-gradient(135deg, #ff6267 0%, #ff7478 100%);
    }

    .checkout-app-shell {
        padding: 2rem 1rem;
        align-items: flex-start;
    }

    .checkout-app {
        width: min(100%, 640px);
        min-height: auto;
        border-radius: 22px;
    }

    .checkout-app-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .checkout-bottom-bar {
        border-radius: 0 0 22px 22px;
    }
}

@media (min-width: 992px) {
    .checkout-app-page {
        background: #f5f2fa;
    }

    .checkout-app-page main {
        background:
            radial-gradient(circle at top left, rgba(76, 36, 151, 0.08), transparent 34rem),
            linear-gradient(180deg, #f7f4fb 0%, #f4f1f8 100%);
    }

    .checkout-app-shell {
        display: block;
        min-height: 100vh;
        padding: 0 2rem 4rem;
    }

    .checkout-app {
        width: min(100%, 1400px);
        max-width: 1400px;
        min-height: auto;
        margin: 0 auto;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .checkout-app-top {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 1.4rem max(2rem, calc((100vw - 1400px) / 2 + 2rem));
        background: linear-gradient(135deg, #1c1b1e 0%, #24202b 54%, #7d748a 100%);
        box-shadow: 0 18px 38px rgba(76, 36, 151, 0.18);
    }

    .checkout-status-row {
        display: none;
    }

    .checkout-app-header {
        width: min(100%, 1400px);
        margin: 0 auto;
        padding: 0;
        gap: 1.1rem;
    }

    .checkout-app-header a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.14);
        transition: transform 0.25s ease, background 0.25s ease;
    }

    .checkout-app-header a:hover {
        background: rgba(255, 255, 255, 0.24);
        transform: translateX(-3px);
    }

    .checkout-app-header h1 {
        font-size: clamp(1.75rem, 2vw, 2.35rem);
        letter-spacing: -0.01em;
    }

    .checkout-progress {
        width: min(680px, 100%);
        margin: 0 auto;
        padding: 2rem 1rem 2.4rem;
    }

    .checkout-progress::before {
        left: 7rem;
        right: 7rem;
        top: 2.72rem;
        border-top-color: rgba(76, 36, 151, 0.48);
    }

    .checkout-step span {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        box-shadow: 0 8px 18px rgba(76, 36, 151, 0.16);
    }

    .checkout-step strong {
        font-size: 0.92rem;
    }

    .checkout-app-content {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 420px);
        gap: 2rem;
        align-items: start;
        padding: 0 0 0;
    }

    .checkout-alert,
    .selected-address,
    .checkout-address-form,
    .checkout-summary-section,
    .checkout-summary-section > .checkout-section-title,
    .checkout-summary-section > .address-card,
    .app-cart-items {
        grid-column: 1;
    }

    .checkout-card,
    .checkout-address-form,
    .app-product-card {
        border-radius: 18px;
        border-color: rgba(76, 36, 151, 0.08);
        box-shadow: 0 14px 40px rgba(40, 24, 72, 0.08);
        transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    }

    .checkout-card:hover,
    .checkout-address-form:hover,
    .app-product-card:hover {
        transform: translateY(-3px);
        border-color: rgba(76, 36, 151, 0.16);
        box-shadow: 0 22px 54px rgba(40, 24, 72, 0.13);
    }

    .checkout-card,
    .checkout-address-form {
        padding: 1.6rem;
    }

    .checkout-section-title h2 {
        font-size: 1.28rem;
        letter-spacing: -0.01em;
    }

    .address-card-head {
        font-size: 1rem;
    }

    .address-card p,
    .address-card b {
        font-size: 0.9rem;
    }

    .checkout-address-form {
        gap: 1.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-address-form .checkout-section-title,
    .checkout-address-form > .field-error,
    .checkout-address-form > .address-type-row,
    .checkout-address-form > .save-address-row,
    .checkout-address-form > .checkout-save-btn {
        grid-column: 1 / -1;
    }

    .app-field-grid {
        display: contents;
    }

    .app-input.desktop-half {
        grid-column: auto;
    }

    .app-input input,
    .app-input textarea,
    .app-input select {
        min-height: 52px;
        border-width: 1px;
        border-color: #d8d3df;
        border-radius: 12px;
        padding: 0.9rem 1rem;
        font-size: 0.92rem;
        background: #fbfafd;
    }

    .app-input textarea {
        min-height: 118px;
    }

    .address-type-row,
    .save-address-row {
        font-size: 0.9rem;
    }

    .address-type-row b {
        padding: 0.44rem 0.85rem;
        font-size: 0.74rem;
    }

    .checkout-save-btn,
    .checkout-bottom-bar button,
    .checkout-bottom-bar a,
    .desktop-summary-continue {
        min-height: 54px;
        border-radius: 12px;
        background: linear-gradient(135deg, #252526 0%, #1e1c20 100%);
        box-shadow: 0 16px 28px rgba(76, 36, 151, 0.22);
        transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
    }

    .checkout-save-btn:hover,
    .checkout-bottom-bar button:hover,
    .checkout-bottom-bar a:hover,
    .desktop-summary-continue:hover {
        transform: translateY(-2px);
        filter: brightness(1.04);
        box-shadow: 0 22px 38px rgba(76, 36, 151, 0.3);
    }

    .checkout-summary-section {
        display: grid;
        grid-column: 1;
        gap: 1.25rem;
    }

    .app-cart-items {
        gap: 1.25rem;
    }

    .app-product-card {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 1.35rem;
        padding: 1.35rem;
    }

    .app-product-card > img {
        aspect-ratio: 4 / 5;
        border-radius: 14px;
        transition: transform 0.28s ease;
    }

    .app-product-card:hover > img {
        transform: scale(1.025);
    }

    .app-product-check {
        top: 1rem;
        left: 1rem;
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .app-product-info {
        align-content: start;
        gap: 0.42rem;
        padding-top: 0.2rem;
    }

    .app-product-info h3 {
        font-size: 1.18rem;
        color: #26202e;
    }

    .app-product-info strong {
        font-size: 1.8rem;
    }

    .stock-text,
    .app-product-info small,
    .product-meta-lines {
        font-size: 0.86rem;
    }

    .product-meta-lines {
        grid-template-columns: repeat(2, max-content);
        gap: 0.75rem;
    }

    .app-product-actions {
        grid-column: 2;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.8rem;
    }

    .app-qty-control {
        grid-template-columns: 44px 56px 44px;
        border-radius: 10px;
    }

    .app-qty-control button,
    .app-qty-control input,
    .app-product-actions > button {
        min-height: 42px;
    }

    .app-product-actions > button {
        padding: 0 1.05rem;
        border: 1px solid #eeeaf4;
        border-radius: 10px;
        box-shadow: 0 8px 18px rgba(30, 24, 42, 0.08);
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    }

    .app-product-actions > button:hover {
        transform: translateY(-2px);
        border-color: rgba(76, 36, 151, 0.2);
        box-shadow: 0 14px 26px rgba(30, 24, 42, 0.13);
    }

    .checkout-summary-section .app-total-card {
        display: none;
    }

    .desktop-payment-sidebar {
        display: grid;
        grid-column: 2;
        grid-row: 1 / span 8;
        position: sticky;
        top: 2rem;
        align-self: start;
        gap: 1rem;
        padding: 1.65rem;
        border-radius: 22px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 249, 255, 0.98));
        box-shadow: 0 24px 70px rgba(40, 24, 72, 0.15);
    }

    .desktop-payment-sidebar:hover {
        transform: none;
    }

    .desktop-payment-sidebar .desktop-summary-title,
    .desktop-payment-sidebar .desktop-summary-total {
        display: flex !important;
    }

    .desktop-summary-title {
        justify-content: space-between;
        align-items: end;
        padding-bottom: 1rem;
        border-bottom: 1px solid #eeeaf4;
    }

    .desktop-summary-title span {
        font-size: 1.25rem;
        font-weight: 900;
        letter-spacing: -0.01em;
    }

    .desktop-summary-title small {
        color: var(--app-muted);
        font-weight: 700;
    }

    .desktop-payment-sidebar > div:not(.desktop-summary-title) {
        font-size: 0.98rem;
    }

    .desktop-payment-sidebar > div:not(.desktop-summary-title):not(.desktop-summary-total) span {
        color: #68616f;
    }

    .desktop-summary-total {
        align-items: center;
        padding-top: 1rem;
        border-top: 1px solid #eeeaf4;
        font-size: 1.15rem !important;
    }

    .desktop-summary-total span,
    .desktop-summary-total strong {
        font-weight: 900;
    }

    .desktop-summary-continue {
        display: block !important;
        width: 100%;
        border: 0;
        color: #fff;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .checkout-bottom-bar {
        display: none;
    }

    .payment-app .checkout-app-content {
        grid-template-columns: minmax(0, 760px);
        justify-content: center;
    }

    .payment-app .checkout-bottom-bar {
        display: grid;
        width: min(100%, 760px);
        margin: 1.8rem auto 0;
        border: 0;
        border-radius: 18px;
        box-shadow: 0 22px 60px rgba(40, 24, 72, 0.16);
        position: sticky;
        bottom: 1rem;
    }

    .success-app .checkout-app-content {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 420px);
        gap: 2rem;
    }

    .success-confirm-card,
    .success-details-card,
    .success-items-section {
        grid-column: 1;
    }

    .success-confirm-card {
        min-height: 300px;
        padding: 2.2rem;
    }

    .success-checkmark {
        width: 86px;
        height: 86px;
        font-size: 2.6rem;
    }

    .success-confirm-card h2 {
        font-size: clamp(2rem, 3vw, 3.2rem);
    }

    .success-confirm-card p {
        max-width: 720px;
        font-size: 1rem;
    }

    .success-details-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .success-detail-row {
        display: grid;
        gap: 0.35rem;
        align-content: start;
        padding: 1rem;
        border-radius: 14px;
        background: #fbfafd;
    }

    .success-detail-row strong {
        text-align: left;
        font-size: 1rem;
    }

    .success-items-list {
        gap: 1rem;
    }

    .success-item-card {
        grid-template-columns: 112px minmax(0, 1fr) auto;
        padding: 1.25rem;
    }

    .success-item-card img,
    .success-item-fallback {
        width: 112px;
        border-radius: 14px;
        transition: transform 0.28s ease;
    }

    .success-item-card:hover img,
    .success-item-card:hover .success-item-fallback {
        transform: scale(1.025);
    }

    .success-item-card h3 {
        font-size: 1.05rem;
    }

    .success-item-card span {
        font-size: 0.9rem;
    }

    .success-item-card > strong {
        grid-column: auto;
        font-size: 1rem;
    }

    .success-sidebar {
        display: grid;
        grid-column: 2;
        grid-row: 1 / span 5;
        position: sticky;
        top: 2rem;
        align-self: start;
        gap: 1rem;
        padding: 1.65rem;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 249, 255, 0.98));
        box-shadow: 0 24px 70px rgba(40, 24, 72, 0.15);
    }

    .success-sidebar .desktop-summary-title,
    .success-sidebar .desktop-summary-total {
        display: flex !important;
    }

    .success-sidebar > div:not(.desktop-summary-title) {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .success-sidebar > div:not(.desktop-summary-title):not(.desktop-summary-total) span {
        color: #68616f;
    }

    .success-sidebar .desktop-summary-continue {
        display: grid !important;
        place-items: center;
        text-align: center;
    }

    .success-app .checkout-bottom-bar {
        display: none;
    }
}

/* Admin portal */
.admin-portal {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background: #f7f5f1;
    color: #171717;
    font-family: "Poppins", Arial, sans-serif;
}

.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        radial-gradient(circle at top left, rgba(184, 59, 50, 0.12), transparent 30rem),
        linear-gradient(135deg, #f8f5ef, #ffffff);
    font-family: "Poppins", Arial, sans-serif;
}

.admin-login-card {
    width: min(420px, 100%);
    display: grid;
    gap: 1rem;
    padding: 2rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(21, 21, 21, 0.14);
}

.admin-login-card > span {
    color: #777;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-login-card h1 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 900;
}

.admin-login-card p {
    margin: 0;
    color: #777;
}

.admin-login-card label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

.admin-login-card input {
    min-height: 48px;
    border: 1px solid #e4e0db;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}

.admin-login-card button {
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    background: #1f2228;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-portal a {
    text-decoration: none;
}

.admin-portal-layout {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas: "sidebar main";
}

.admin-portal-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1.5rem;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid rgba(21, 21, 21, 0.08);
    box-shadow: 18px 0 45px rgba(21, 21, 21, 0.06);
    z-index: 1040;
}

.admin-portal-overlay {
    display: none;
}

.admin-portal-brand span,
.admin-portal-topbar span,
.admin-page-title span,
.admin-panel-head span,
.admin-hero-panel span {
    display: block;
    color: #777;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-portal-brand h1 {
    margin: 0.35rem 0;
    font-size: 2rem;
    font-weight: 900;
}

.admin-portal-brand p {
    margin: 0;
    color: #777;
}

.admin-portal-nav {
    display: grid;
    align-content: start;
    gap: 0.65rem;
}

.admin-portal-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(21, 21, 21, 0.08);
    border-radius: 10px;
    background: #fff;
    color: #1c1c1c;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-portal-nav a:hover,
.admin-portal-nav a.active {
    background: #1f2228;
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 14px 28px rgba(21, 21, 21, 0.14);
}

.admin-portal-actions {
    display: grid;
    gap: 0.7rem;
}

.admin-portal-main {
    grid-area: main;
    min-width: 0;
    width: min(100%, 1500px);
    margin-inline: auto;
    padding: 2rem clamp(1.25rem, 2.5vw, 3rem);
    justify-self: center;
    box-sizing: border-box;
}

.admin-portal-topbar,
.admin-page-title,
.admin-panel-head,
.admin-hero-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-portal-topbar h2,
.admin-page-title h1,
.admin-hero-panel h1 {
    margin: 0.25rem 0 0;
    font-size: clamp(1.7rem, 3vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.admin-page-title p,
.admin-hero-panel p {
    max-width: 720px;
    margin: 0.45rem 0 0;
    color: #777;
}

.admin-menu-button {
    display: none;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid rgba(21, 21, 21, 0.08);
    border-radius: 10px;
    background: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-hero-panel,
.admin-panel,
.admin-filter-card,
.admin-metric-grid > div {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(21, 21, 21, 0.07);
}

.admin-hero-panel {
    padding: 1.6rem;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-metric-grid > div {
    padding: 1.25rem;
}

.admin-metric-grid span {
    display: block;
    color: #777;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-metric-grid strong {
    display: block;
    margin-top: 0.45rem;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 900;
}

.admin-grid-2,
.admin-grid-3 {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-grid-2 {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
}

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

.admin-panel,
.admin-filter-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-panel-head h2 {
    margin: 0.25rem 0 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.admin-filter-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
    gap: 0.8rem;
}

.admin-filter-card input,
.admin-filter-card select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-panel label input,
.admin-panel label select,
.admin-panel label textarea,
.admin-inline-form input,
.admin-inline-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #e4e0db;
    border-radius: 8px;
    background: #fff;
    padding: 0.65rem 0.8rem;
    outline: 0;
}

.admin-panel label,
.admin-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.admin-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
}

.admin-form > label,
.admin-form > button {
    max-width: 100%;
}

.admin-table {
    margin: 0;
}

.admin-table th {
    background: #fbfaf8;
    color: #151515;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-table td,
.admin-table th {
    padding: 1rem;
    vertical-align: middle;
}

.admin-row-actions,
.admin-actions,
.admin-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.admin-product-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-product-cell img {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1eee9;
}

.admin-list {
    display: grid;
    gap: 0.75rem;
}

.admin-list a,
.admin-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid #eeeae5;
    border-radius: 10px;
    color: inherit;
}

.admin-list span,
.admin-muted,
.admin-report-row small {
    color: #777;
}

.admin-detail-grid,
.admin-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-detail-grid div,
.admin-totals div {
    padding: 0.9rem;
    border-radius: 10px;
    background: #fbfaf8;
}

.admin-detail-grid span,
.admin-totals span {
    display: block;
    color: #777;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.admin-image-grid label {
    padding: 0.7rem;
    border: 1px solid #eeeae5;
    border-radius: 10px;
}

.admin-image-grid img,
.admin-form-preview {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f1eee9;
}

.admin-form-preview {
    max-width: 180px;
    margin-bottom: 1rem;
}

.admin-timeline {
    display: grid;
    gap: 0.9rem;
}

.admin-timeline div {
    padding-left: 1rem;
    border-left: 3px solid #b83b32;
}

.admin-timeline strong,
.admin-timeline span,
.admin-timeline small {
    display: block;
}

.admin-report-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    align-items: end;
    gap: 1rem;
}

.admin-report-bars div {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
}

.admin-report-bars span {
    width: 100%;
    max-width: 42px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #b83b32, #24445f);
}

.admin-report-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eeeae5;
}

.admin-report-row span,
.admin-report-row small {
    display: block;
}

.status-confirmed { background: #eef5ff; color: #2563a6; }
.status-out_for_delivery { background: #edf7ff; color: #0b6aa2; }
.status-returned { background: #f3eefb; color: #6331a6; }
.status-refunded,
.status-failed { background: #fdecec; color: #a52a2a; }
.status-paid { background: #e8f7ef; color: #0d8659; }

@media (max-width: 1199px) {
    .admin-portal-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "main";
    }

    .admin-portal-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-105%);
        width: min(330px, 86vw);
        transition: transform 0.25s ease;
    }

    .admin-menu-open .admin-portal-sidebar {
        transform: translateX(0);
    }

    .admin-portal-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        z-index: 1030;
        transition: opacity 0.25s ease;
    }

    .admin-menu-open .admin-portal-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-menu-button {
        display: inline-flex;
    }

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

@media (max-width: 767px) {
    .admin-portal-main {
        padding: 1rem;
    }

    .admin-portal-topbar,
    .admin-page-title,
    .admin-panel-head,
    .admin-hero-panel {
        display: grid;
    }

    .admin-filter-card,
    .admin-form .form-grid,
    .admin-grid-2,
    .admin-grid-3,
    .admin-metric-grid,
    .admin-detail-grid,
    .admin-totals {
        grid-template-columns: 1fr;
    }

    .admin-panel,
    .admin-filter-card,
    .admin-hero-panel {
        padding: 1rem;
    }

    .admin-inline-form {
        display: grid;
    }
}
