/* Premium Design System for LANS Garments - Pure Vanilla CSS */
/* Fonts are loaded via <link> in storefront/includes/header.php: an @import here
   would sit behind this stylesheet in the request chain and delay first paint.
   This file is storefront-only -- the admin panel uses assets/css/style.css. */

:root {
    /* ---- Canonical design tokens ---- */
    --color-primary: #111111;
    --color-secondary: #F9F6F0;
    --color-accent: #D4AF37;
    --color-accent-dark: #B99320;
    --color-text: #1a1a1a;
    --color-text-light: #737373;
    --color-white: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-border: #EAE6DF;

    /* ---- Legacy aliases ----
       ~670 lines below still reference --lux-*. Mapping them onto the tokens
       repaints the whole storefront without moving a single element.
       Mapped by ROLE, not by name: --lux-secondary was a dark #2C2C2C, so it
       points at --color-text, NOT --color-secondary (which is a light cream and
       would invert the contrast). */
    --lux-primary: var(--color-primary);
    --lux-secondary: var(--color-text);
    --lux-accent: var(--color-accent);
    --lux-accent-hover: var(--color-accent-dark);
    --lux-light: var(--color-secondary);
    --lux-white: var(--color-surface);
    --lux-gray-100: var(--color-secondary);
    --lux-gray-200: var(--color-border);
    --lux-gray-400: var(--color-text-light);
    --lux-gray-800: var(--color-primary);
    --lux-red: #D24242;
    /* Elegant discount red - outside the new palette, left as-is */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Box Shadows (Glassmorphism & Depth) */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 40px rgba(17, 17, 17, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Borders & Rounding */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --border-subtle: 1px solid var(--lux-gray-200);
}

/* Global Resets & Body */
body {
    font-family: var(--font-body);
    background-color: var(--lux-light);
    color: var(--lux-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.5px;
}

a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography Utilities */
.text-accent {
    color: var(--lux-accent) !important;
}

.text-primary-lux {
    color: var(--lux-primary) !important;
}

.bg-cream {
    background-color: var(--lux-light) !important;
}

.border-subtle {
    border-bottom: var(--border-subtle) !important;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--lux-primary);
    color: var(--lux-white);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-align: center;
    padding: 0.6rem 1rem;
    font-weight: 400;
    text-transform: uppercase;
}

/* Header & Navigation */
.lans-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-luxury {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--lux-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link-luxury::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--lux-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.icon-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--lux-accent);
    color: var(--lux-white);
    font-size: 0.6rem;
    font-weight: 600;
    height: 16px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Search Bar in Header */
.header-search-wrap {
    position: relative;
    width: 200px;
}

.header-search-wrap input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--lux-gray-200);
    padding: 0.2rem 1.5rem 0.2rem 0;
    font-size: 0.85rem;
    width: 100%;
    transition: border-color 0.3s ease;
}

.header-search-wrap input:focus {
    outline: none;
    border-bottom-color: var(--lux-primary);
}

.header-search-wrap i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--lux-gray-400);
}

/* Base Buttons */
.btn-luxury {
    background-color: var(--lux-primary);
    color: var(--lux-white);
    border: 1px solid var(--lux-primary);
    padding: 0.8rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    border-radius: 0;
    transition: all 0.4s ease;
}

.btn-luxury:hover {
    background-color: var(--lux-white);
    color: var(--lux-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-luxury-outline {
    background-color: transparent;
    color: var(--lux-primary);
    border: 1px solid var(--lux-primary);
    padding: 0.8rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    border-radius: 0;
    transition: all 0.4s ease;
}

.btn-luxury-outline:hover {
    background-color: var(--lux-primary);
    color: var(--lux-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Hero Section */
.hero-image-wrap {
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Category Cards */
.category-card {
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) !important;
}

.category-img {
    position: absolute;
    inset: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.7) 0%, transparent 60%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Product Cards */
.product-card-luxury {
    position: relative;
    display: block;
    background: var(--lux-white);
    padding: 12px;
    border-radius: var(--radius-md);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.product-img-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #f0ede6, #e7e4dc);
}

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

.product-card-luxury:hover .product-img {
    transform: scale(1.03);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 5;
}

.badge-lux {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--lux-white);
    color: var(--lux-primary);
    box-shadow: var(--shadow-soft);
}

.badge-sale {
    background: var(--lux-red);
    color: var(--lux-white);
}

.wishlist-btn-float {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: var(--lux-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    z-index: 5;
    color: var(--lux-gray-800);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.wishlist-btn-float:hover {
    color: var(--lux-red);
    transform: scale(1.1);
}

.wishlist-btn-float.active {
    color: var(--lux-red);
}

.product-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 4;
}

.product-card-luxury:hover .product-hover-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.product-card-body {
    padding-top: 1rem;
    text-align: center;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--lux-gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--lux-primary);
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 500;
    font-size: 0.95rem;
}

.product-price-old {
    color: var(--lux-gray-400);
    text-decoration: line-through;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.product-discount {
    color: var(--lux-red);
    font-size: 0.8rem;
    font-weight: 500;
}

.variant-colors {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.color-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    /* override inline */
}

/* Product Detail Page */
.pdp-gallery-wrap {
    display: flex;
    gap: 15px;
}

.pdp-thumbnails {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdp-thumbnails img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border 0.2s;
}

.pdp-thumbnails img:hover,
.pdp-thumbnails img.active {
    border-color: var(--lux-primary);
}

.pdp-main-image-wrap {
    flex: 1;
    overflow: hidden;
    background: var(--lux-gray-100);
    cursor: zoom-in;
}

.pdp-main-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.size-selector input[type="radio"],
.color-selector input[type="radio"] {
    display: none;
}

.size-selector label {
    display: inline-block;
    border: 1px solid var(--lux-gray-200);
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.size-selector input[type="radio"]:checked+label {
    border-color: var(--lux-primary);
    background: var(--lux-primary);
    color: var(--lux-white);
}

.size-selector label.out-of-stock {
    color: var(--lux-gray-200);
    text-decoration: line-through;
    pointer-events: none;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--lux-gray-200);
    width: fit-content;
}

.qty-controls button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.qty-controls input {
    width: 50px;
    text-align: center;
    border: none;
    pointer-events: none;
}

/* Cart / Checkout */
.cart-table {
    width: 100%;
}

.cart-table th {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--lux-gray-400);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--lux-gray-200);
}

.cart-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--lux-gray-200);
    vertical-align: middle;
}

.cart-summary {
    background: var(--lux-gray-100);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--lux-gray-200);
    z-index: 1;
}

.step-item {
    background: var(--lux-white);
    padding: 0 1rem;
    z-index: 2;
    color: var(--lux-gray-400);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.step-item.active {
    color: var(--lux-primary);
}

.step-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Sidebar Filters */
.filter-group-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--lux-gray-200);
}

.filter-item {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.lux-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--lux-gray-400);
    margin-right: 10px;
    position: relative;
    cursor: pointer;
}

.lux-checkbox:checked {
    background: var(--lux-primary);
    border-color: var(--lux-primary);
}

.lux-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}

/* Utilities */
.object-cover {
    object-fit: cover;
}

.letter-spacing-sm {
    letter-spacing: 0.5px;
}

.letter-spacing-lg {
    letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .lans-navbar .nav-link-luxury {
        margin-bottom: 10px;
    }

    .hero-image-wrap {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .pdp-gallery-wrap {
        flex-direction: column-reverse;
    }

    .pdp-thumbnails {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .pdp-thumbnails img {
        width: 60px;
        height: 80px;
    }
}

/* ==========================================================================
   3D Animated Product Card (Nike Style Overlay)
   ========================================================================== */
.lans-3d-card {
  position: relative;
  width: 100%;
  height: 480px;
  background: var(--lux-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.5s ease;
}

.lans-3d-card:hover {
  box-shadow: var(--shadow-hover);
}

.lans-3d-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-border);
  clip-path: circle(120px at 80% 20%);
  transition: 0.6s ease-in-out;
  z-index: 1;
}

.lans-3d-card:hover:before {
  clip-path: circle(350px at 80% -20%);
}

.lans-3d-card:after {
  content: attr(data-bg-text);
  position: absolute;
  top: 25%;
  left: -5%;
  font-size: 6em;
  font-weight: 800;
  font-family: var(--font-heading);
  font-style: italic;
  color: rgba(0,0,0,0.03);
  z-index: 2;
  white-space: nowrap;
}

.lans-3d-card .imgBx {
  position: absolute;
  top: 45%;
  left: 0;
  width: 100%;
  height: 220px;
  transform: translateY(-50%);
  z-index: 10;
  transition: 0.6s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lans-3d-card:hover .imgBx {
  top: 25%;
}

.lans-3d-card .imgBx img {
  width: 75%;
  height: 100%;
  object-fit: contain;
  transition: 0.6s ease;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,0.1));
}

.lans-3d-card:hover .imgBx img {
  transform: scale(1.05);
  filter: drop-shadow(0 25px 20px rgba(0,0,0,0.2));
}

.lans-3d-card .contentBx {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  text-align: center;
  transition: 0.6s ease-in-out;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 25px;
}

.lans-3d-card:hover .contentBx {
  height: 230px;
}

.lans-3d-card .contentBx h3.product-title {
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--lux-primary);
  margin: 0 10px 5px 10px;
}

.lans-3d-card .contentBx .price-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
  transform: translateY(20px);
}

.lans-3d-card:hover .contentBx .price-area {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.lans-3d-card .contentBx .price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lux-primary);
}

.lans-3d-card .contentBx .price-old {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--lux-text-light);
}

.lans-3d-card .contentBx a.buy-btn {
  display: inline-block;
  padding: 10px 25px;
  background: var(--lux-primary);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--lux-white);
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(30px);
  transition: 0.5s;
  margin: 15px auto 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.lans-3d-card:hover .contentBx a.buy-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.lans-3d-card .contentBx a.buy-btn:hover {
  background: var(--color-accent);
  color: var(--lux-white);
}

.lans-3d-card .wishlist-btn-float {
  background: var(--lux-white);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-soft);
  color: var(--lux-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lans-3d-card .wishlist-btn-float:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.lans-3d-card .product-badges {
  pointer-events: none;
}

/* ==========================================================================
   Conveyor Pack: Animated Add To Cart Button (acp-)
   ========================================================================== */

.acp-wrap {
  position: relative;
  display: inline-block;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  width: 100%;
}

.acp-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.acp-btn {
  position: relative;
  width: 100%;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, var(--lux-primary), #111111);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.16s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.2s ease, box-shadow 0.25s ease;
}

.acp-btn.disabled,
.acp-btn:disabled {
  background: var(--bg-tertiary);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.acp-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.acp-btn:hover:not(.is-playing):not(.is-rm-done):not(:disabled) {
  transform: translateY(-1px);
}

.acp-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.acp-idle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--lux-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 1;
  transform: none;
  transition: opacity 0.24s ease, transform 0.26s ease;
}

.acp-idle svg {
  display: block;
  opacity: 0.9;
}

.is-playing .acp-idle,
.is-rm-done .acp-idle {
  opacity: 0;
  transform: translateY(-9px);
  transition: opacity 0.2s ease, transform 0.26s ease;
}

.acp-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.is-playing .acp-scene {
  opacity: 1;
  transition: opacity 0.2s ease 0.08s;
}

.acp-belt {
  position: absolute;
  left: 12px;
  right: 58px;
  bottom: 8px;
  height: 7px;
  border-radius: 4px;
  background: #0b0e14;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 3px 6px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
}

.acp-belt::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.55));
}

.s-enter .acp-belt {
  opacity: 1;
  transform: none;
  transition: opacity 0.26s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.acp-tread {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 200%;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.16) 9px 12px);
  will-change: transform;
  animation: acp-roll 0.16s linear infinite;
  animation-play-state: paused;
}

.belt-run .acp-tread {
  animation-play-state: running;
}

@keyframes acp-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-12px); }
}

.acp-scanner {
  position: absolute;
  left: 50%;
  top: 0;
  width: 30px;
  height: 20px;
  z-index: 4;
  opacity: 0;
  transform: translateY(-16px);
}

.s-enter .acp-scanner {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease 0.12s, transform 0.42s cubic-bezier(0.34, 1.3, 0.64, 1) 0.12s;
}

.acp-scan-mount {
  position: absolute;
  top: 0;
  left: 12px;
  width: 6px;
  height: 5px;
  background: #2c3442;
  border-radius: 0 0 2px 2px;
}

.acp-scan-head {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 26px;
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(180deg, #39424f, #232a35);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.s-scan .acp-scan-head {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45), 0 5px 12px rgba(255, 86, 96, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.acp-scan-led {
  position: absolute;
  top: 7px;
  left: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffb454;
  opacity: 0.85;
}

.acp-blink {
  position: absolute;
  top: 7px;
  right: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3a4453;
}

.s-scan .acp-blink {
  animation: acp-blink 0.4s ease 0.46s both;
}

@keyframes acp-blink {
  0%, 100% { background: #3a4453; box-shadow: none; }
  40% { background: #5adf9e; box-shadow: 0 0 6px rgba(90, 223, 158, 0.9); }
}

.acp-laser {
  position: absolute;
  left: calc(50% + 6px);
  top: 13px;
  width: 2px;
  height: 29px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(255, 86, 96, 0.95), rgba(255, 86, 96, 0.35));
  box-shadow: 0 0 6px rgba(255, 86, 96, 0.8);
  opacity: 0;
  z-index: 3;
}

.s-scan .acp-laser {
  animation: acp-sweep 0.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
}

@keyframes acp-sweep {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(18px); opacity: 0; }
}

.acp-box {
  position: absolute;
  left: 0;
  bottom: 15px;
  width: 24px;
  height: 19px;
  z-index: 2;
  transform: translateX(-34px);
  will-change: transform;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35));
}

.s-enter .acp-box {
  transform: translateX(45vw); /* Responsive move */
  transition: transform 1.02s cubic-bezier(0.3, 0.5, 0.25, 1) 0.18s;
}
@media (min-width: 992px) {
  .s-enter .acp-box {
      transform: translateX(120px) !important;
  }
}

.s-ship .acp-box {
  animation: acp-ship 0.8s forwards;
}

@keyframes acp-ship {
  0% { transform: translateX(120px) rotate(0deg); animation-timing-function: cubic-bezier(0.35, 0.12, 0.65, 0.88); }
  56% { transform: translateX(200px) rotate(0deg); animation-timing-function: ease-in; }
  100% { transform: translate(300px, 16px) rotate(18deg); opacity: 0; }
}

.acp-face {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #cf9a60, #b5824c);
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.14);
}

.acp-barcode {
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 11px;
  height: 7px;
  border-radius: 1px;
  background: #e9dfcf;
  overflow: hidden;
}

.acp-barcode::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: repeating-linear-gradient(90deg, #33261a 0 1px, transparent 1px 2.6px);
}

.acp-flap {
  position: absolute;
  top: -3px;
  width: 12px;
  height: 3px;
  background: linear-gradient(180deg, #dca86c, #c08b52);
  border-radius: 1px;
}
.acp-flap-l { left: 0; transform-origin: 0 100%; transform: rotate(-64deg); }
.acp-flap-r { right: 0; transform-origin: 100% 100%; transform: rotate(64deg); }

.s-fold .acp-flap-l,
.s-fold .acp-flap-r {
  transform: rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) 0.05s;
}

.acp-tape {
  position: absolute;
  top: -4px;
  left: 1px;
  right: 1px;
  height: 4px;
  background: linear-gradient(180deg, #ffc06a, #f2a94e);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.s-fold .acp-tape {
  transform: scaleX(1);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.3, 1) 0.52s;
}

.acp-slabel {
  position: absolute;
  top: 5px;
  right: 3px;
  width: 8px;
  height: 6px;
  background: #f2f4f7;
  transform: scale(0);
}

.s-fold .acp-slabel {
  transform: scale(1);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) 0.74s;
}

.acp-cart {
  position: absolute;
  right: 12px;
  bottom: 0px;
  width: 40px;
  height: 38px;
  z-index: 5;
  transform: translateX(58px);
}

.acp-cart svg { display: block; }

.s-fold .acp-cart {
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(0.22, 1.3, 0.36, 1) 0.3s;
}

.s-ship .acp-cart {
  animation: acp-bump 0.42s cubic-bezier(0.36, 0.07, 0.3, 1) 0.66s both;
}

@keyframes acp-bump {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  32% { transform: translateX(0) translateY(3px) rotate(2deg); }
  65% { transform: translateX(0) translateY(-1px) rotate(-0.6deg); }
  100% { transform: translateX(0); }
}

.acp-badge {
  position: absolute;
  right: 8px;
  bottom: 44px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 9px;
  background: var(--lux-accent);
  color: var(--lux-white);
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  z-index: 6;
  transform: scale(0);
}

.s-ship .acp-badge {
  animation: acp-badge 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.82s forwards;
}

@keyframes acp-badge {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.acp-done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--lux-white);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.acp-check {
  width: 22px;
  height: 22px;
}

.acp-check-ring {
  stroke: var(--lux-accent);
  opacity: 0.35;
}

.acp-check-path {
  stroke: var(--lux-accent);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.s-done .acp-done,
.is-rm-done .acp-done {
  opacity: 1;
  transform: none;
  transition: opacity 0.28s ease 0.18s, transform 0.34s cubic-bezier(0.34, 1.3, 0.64, 1) 0.18s;
}

.s-done .acp-check-path {
  animation: acp-draw 0.32s cubic-bezier(0.25, 0.8, 0.3, 1) 0.4s forwards;
}

.is-rm-done .acp-check-path { stroke-dashoffset: 0; }
.s-done .acp-scene { opacity: 0; transition: opacity 0.24s ease; }

.s-reset .acp-done {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.s-reset .acp-idle {
  opacity: 1;
  transform: none;
  transition: opacity 0.26s ease 0.12s, transform 0.3s ease 0.12s;
}

/* ==========================================================================
   Interactive Logout Button
   ========================================================================== */
.logoutButton {
  --figure-duration: 100ms;
  --transform-figure: none;
  --walking-duration: 100ms;
  --transform-arm1: none;
  --transform-wrist1: none;
  --transform-arm2: none;
  --transform-wrist2: none;
  --transform-leg1: none;
  --transform-calf1: none;
  --transform-leg2: none;
  --transform-calf2: none;
  background: none;
  border: 0;
  color: var(--lux-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  height: 48px;
  outline: none;
  padding: 0 0 0 20px;
  perspective: 100px;
  position: relative;
  text-align: left;
  width: 140px;
  -webkit-tap-highlight-color: transparent;
  margin: 10px 0;
}

.logoutButton::before {
  background-color: var(--lux-primary);
  border-radius: var(--radius-sm);
  content: "";
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: none;
  transition: transform 50ms ease;
  width: 100%;
  z-index: 2;
}
.logoutButton:hover .door { transform: rotateY(20deg); }
.logoutButton:active::before { transform: scale(0.96); }
.logoutButton:active .door { transform: rotateY(28deg); }
.logoutButton.clicked::before { transform: none; }
.logoutButton.clicked .door { transform: rotateY(35deg); }
.logoutButton.door-slammed .door {
  transform: none;
  transition: transform 100ms ease-in 250ms;
}
.logoutButton.falling { animation: shake 200ms linear; }
.logoutButton.falling .bang { animation: flash 300ms linear; }
.logoutButton.falling .figure {
  animation: spin 1000ms infinite linear;
  bottom: -1080px;
  opacity: 0;
  right: 1px;
  transition: transform calc(var(--figure-duration) * 1ms) linear, bottom calc(var(--figure-duration) * 1ms) cubic-bezier(0.7, 0.1, 1, 1) 100ms, opacity calc(var(--figure-duration) * 0.25ms) linear calc(var(--figure-duration) * 0.75ms);
  z-index: 1;
}

.logoutButton .button-text {
  color: var(--lux-white);
  font-weight: 500;
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.logoutButton svg {
  display: block;
  position: absolute;
}

.logoutButton .figure {
  bottom: 9px;
  fill: var(--lux-accent);
  right: 18px;
  transform: var(--transform-figure);
  transition: transform calc(var(--figure-duration) * 1ms) cubic-bezier(0.2, 0.1, 0.8, 0.9);
  width: 30px;
  z-index: 4;
}

.logoutButton .door,
.logoutButton .doorway {
  bottom: 8px;
  fill: var(--lux-white);
  right: 12px;
  width: 32px;
}

.logoutButton .door {
  transform: rotateY(20deg);
  transform-origin: 100% 50%;
  transform-style: preserve-3d;
  transition: transform 200ms ease;
  z-index: 5;
}
.logoutButton .door path {
  fill: var(--lux-accent);
  stroke: var(--lux-accent);
  stroke-width: 4;
}

.logoutButton .doorway { z-index: 3; }
.logoutButton .bang { opacity: 0; }

.logoutButton .arm1, .logoutButton .wrist1, .logoutButton .arm2, .logoutButton .wrist2, .logoutButton .leg1, .logoutButton .calf1, .logoutButton .leg2, .logoutButton .calf2 {
  transition: transform calc(var(--walking-duration) * 1ms) ease-in-out;
}

.logoutButton .arm1 { transform: var(--transform-arm1); transform-origin: 52% 45%; }
.logoutButton .wrist1 { transform: var(--transform-wrist1); transform-origin: 59% 55%; }
.logoutButton .arm2 { transform: var(--transform-arm2); transform-origin: 47% 43%; }
.logoutButton .wrist2 { transform: var(--transform-wrist2); transform-origin: 35% 47%; }
.logoutButton .leg1 { transform: var(--transform-leg1); transform-origin: 47% 64.5%; }
.logoutButton .calf1 { transform: var(--transform-calf1); transform-origin: 55.5% 71.5%; }
.logoutButton .leg2 { transform: var(--transform-leg2); transform-origin: 43% 63%; }
.logoutButton .calf2 { transform: var(--transform-calf2); transform-origin: 41.5% 73%; }

@keyframes spin { from { transform: rotate(0deg) scale(0.94); } to { transform: rotate(359deg) scale(0.94); } }
@keyframes shake { 0% { transform: rotate(-1deg); } 50% { transform: rotate(2deg); } 100% { transform: rotate(-1deg); } }
@keyframes flash { 0% { opacity: 0.4; } 100% { opacity: 0; } }