/* Fibonacci Spacing Scale */
:root {
  /* Spacing values (Fibonacci sequence) */
  --space-xs: 8px;
  --space-sm: 13px;
  --space-base: 21px;
  --space-md: 34px;
  --space-lg: 55px;
  --space-xl: 89px;
  --space-2xl: 144px;

  /* Typography */
  --body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-tiny: 12px;
  --font-size-h1: 32px;
  --font-size-h2: 24px;
  --font-size-h3: 20px;
  --font-size-h4: 16px;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-bg: #081c36;
  --color-surface: #ffffff;
  --color-surface-muted: rgba(255,255,255,0.08);
  --color-gray-50: #f5f7fb;
  --color-gray-100: #e8eef8;
  --color-gray-200: #cfd9eb;
  --color-gray-300: #a5b4d0;
  --color-gray-400: #7d90b5;
  --color-gray-500: #5e6e93;
  --color-gray-600: #4a5a7a;
  --color-gray-700: #364564;
  --color-gray-800: #243252;
  --color-gray-900: #131d31;
  --color-text: #f5f7fa;
  --color-text-secondary: #c8d1e6;
  --color-text-tertiary: #98a7c0;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-bg-secondary: rgba(255, 255, 255, 0.05);

  /* Brand accent */
  --color-primary: #ed5f74;
  --color-primary-dark: #d94560;

  /* UI Elements */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --touch-target: 44px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-base);
}

h3 {
  font-size: var(--font-size-h3);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

p {
  margin: 0 0 var(--space-base) 0;
  line-height: var(--line-height-relaxed);
}

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

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

button {
  font-family: var(--body-font-family);
  transition: all var(--transition-fast);
}

/* Brand label */
.brand-label {
  font-size: 48px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin: 0 0 var(--space-base) 0;
  font-weight: 700;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-base);
  width: 100%;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hero-logo__mark {
  /* Increased to 1.5x to better fill space */
  width: 360px;
  height: 360px;
  color: var(--color-text);
  filter: invert(1);
}

/* Make the hero logo afford clicking as Home */
.hero-logo__mark {
  cursor: pointer;
}

.hero-logo__title {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 800;
}

.hero-copy {
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
}

.category-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  width: min(100%, 320px);
}

.category-nav .category-options,
.category-nav .category-select {
  width: 100%;
}

.category-select {
  max-width: 280px;
}

@media (max-width: 900px) {
  .hero-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-nav {
    align-items: flex-start;
    width: 100%;
  }
}

/* Main Container - Mobile-First */
.sr-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding: var(--space-base);
  background-color: transparent;
}

.sr-main {
  width: 100%;
  flex: 1;
}

.container {
  width: 100%;
}

/* Product Grid - Mobile-First */
.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  width: 100%;
}

/* Product Card - Premium & Mobile-First */
.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-base);
  cursor: pointer;
  min-height: 400px;
}

.product-card:hover {
  border-color: var(--color-text-secondary);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
  background-color: var(--color-bg-secondary);
}

.product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card__thumb-row {
  display: flex;
  gap: 8px;
  margin-top: var(--space-sm);
  justify-content: center;
}

.product-card__thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
  cursor: pointer;
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.product-card__thumb.active,
.product-card__thumb:hover {
  opacity: 1;
  border-color: #ffc107;
}

.product-card__title {
  display: block;
  font-size: var(--font-size-h3);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-sm) 0;
  line-height: var(--line-height-tight);
  flex-grow: 1;
}

.product-card__description {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  margin: 0 0 var(--space-md) 0;
  line-height: 1.5;
}

.product-card__price {
  display: block;
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: #ffc107;
  margin: 0 0 var(--space-md) 0;
}

/* Quantity Controls - Touch Friendly */
.product-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
}

.increment-btn {
  width: var(--touch-target);
  height: var(--touch-target);
  min-width: unset;
  padding: 0;
  border: none;
  background-color: #ffc107;
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-h3);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.increment-btn:hover {
  background-color: #ffb300;
}

.increment-btn:active {
  transform: scale(0.95);
}

.product-quantity-input {
  flex: 1;
  height: var(--touch-target);
  border: none;
  background: transparent;
  text-align: center;
  font-size: var(--font-size-body);
  font-weight: 600;
  color: #000000;
}

.product-quantity-input:focus {
  outline: none;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  height: var(--touch-target);
  background-color: #ffc107;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-body);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin: var(--space-md) 0 0 0;
}

.add-to-cart-btn:hover:not(:disabled) {
  background-color: #ffb300;
  box-shadow: var(--shadow-md);
}

.add-to-cart-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Layout */
.sr-root {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  padding: 24px;
  align-content: center;
  justify-content: center;
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
}
.sr-header {
  margin-bottom: 32px;
}
.sr-payment-summary {
  margin-bottom: 20px;
}
.sr-main,
.sr-content {
  display: flex;
  justify-content: center;
  height: 100%;
  align-self: center;
}
.sr-main {
  width: 100%;
}
.sr-content {
  padding-left: 48px;
}
.sr-header__logo {
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
}
.sr-legal-text {
  color: var(--gray-light);
  text-align: center;
  font-size: 13px;
  line-height: 17px;
  margin-top: 12px;
}

.warning {
  border: 1px solid #f4a8a8;
  background: #fff1f1;
  color: #9a1717;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.hidden {
  display: none;
}
.sr-field-error {
  color: var(--accent-color);
  text-align: left;
  font-size: 13px;
  line-height: 17px;
  margin-top: 12px;
}

/* Form */
.sr-form-row {
  margin: 16px 0;
}
label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  display: inline-block;
}

/* Inputs */
.sr-input,
.sr-select,
input[type="text"],
input[type="number"] {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 5px 12px;
  height: 44px;
  width: 100%;
  transition: box-shadow 0.2s ease;
  background: white;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  color: #32325d;
}
.sr-input:focus,
input[type="text"]:focus,
button:focus,
.focused {
  box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07),
  0 0 0 4px rgba(50, 151, 211, 0.3);
  outline: none;
  z-index: 9;
}
.sr-input::placeholder,
input[type="text"]::placeholder,
input[type="number"]::placeholder {
  color: var(--gray-light);
}

/* Checkbox */
.sr-checkbox-label {
  position: relative;
  cursor: pointer;
}

.sr-checkbox-label input {
  opacity: 0;
  margin-right: 6px;
}

.sr-checkbox-label .sr-checkbox-check {
  position: absolute;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: white;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sr-checkbox-label input:focus ~ .sr-checkbox-check {
  box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07),
  0 0 0 4px rgba(50, 151, 211, 0.3);
  outline: none;
}

.sr-checkbox-label input:checked ~ .sr-checkbox-check {
  background-color: var(--accent-color);
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: -1px -1px;
}

/* Select */
.sr-select {
  display: block;
  height: 44px;
  margin: 0;
  background-repeat: no-repeat, repeat;
  background-position: right 12px top 50%, 0 0;
  background-size: 0.65em auto, 100%;
}
.sr-select:after {
}
.sr-select::-ms-expand {
  display: none;
}
.sr-select:hover {
  cursor: pointer;
}
.sr-select:focus {
  box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07),
  0 0 0 4px rgba(50, 151, 211, 0.3);
  outline: none;
}
.sr-select option {
  font-weight: 400;
}
.sr-select:invalid {
  color: var(--gray-light);
  background-opacity: 0.4;
}

/* Combo inputs */
.sr-combo-inputs {
  display: flex;
  flex-direction: column;
}
.sr-combo-inputs input,
.sr-combo-inputs .sr-select {
  border-radius: 0;
  border-bottom: 0;
}
.sr-combo-inputs > input:first-child,
.sr-combo-inputs > .sr-select:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}
.sr-combo-inputs > input:last-child,
.sr-combo-inputs > .sr-select:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: 1px solid var(--gray-border);
}
.sr-combo-inputs > .sr-combo-inputs-row:last-child input:first-child {
  border-radius: 0 0 0 var(--radius);
  border-bottom: 1px solid var(--gray-border);
}
.sr-combo-inputs > .sr-combo-inputs-row:last-child input:last-child {
  border-radius: 0 0 var(--radius) 0;
  border-bottom: 1px solid var(--gray-border);
}
.sr-combo-inputs > .sr-combo-inputs-row:first-child input:first-child {
  border-radius: var(--radius) 0 0 0;
}
.sr-combo-inputs > .sr-combo-inputs-row:first-child input:last-child {
  border-radius: 0 var(--radius) 0 0;
}
.sr-combo-inputs > .sr-combo-inputs-row:first-child input:only-child {
  border-radius: var(--radius) var(--radius) 0 0;
}
.sr-combo-inputs-row {
  width: 100%;
  display: flex;
}

.sr-combo-inputs-row > input {
  width: 100%;
  border-radius: 0;
}

.sr-combo-inputs-row > input:first-child:not(:only-child) {
  border-right: 0;
}

.sr-combo-inputs-row:not(:first-of-type) .sr-input {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Buttons and links */
button {
  background: var(--accent-color);
  border-radius: var(--radius);
  color: white;
  border: 0;
  padding: 12px 16px;
  margin-top: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
}
button:hover {
  filter: contrast(115%);
}
button:active {
  transform: translateY(0px) scale(0.98);
  filter: brightness(0.9);
}
button:disabled {
  opacity: 0.5;
  cursor: none;
}

.sr-payment-form button,
.fullwidth {
  width: 100%;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  filter: brightness(0.8);
}

a:active {
  filter: brightness(0.5);
}

/* Code block */
.sr-callout {
  background: var(--gray-offset);
  padding: 12px;
  border-radius: var(--radius);
  max-height: 200px;
  overflow: auto;
}
code,
pre {
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  font-size: 12px;
}

/* Stripe Element placeholder */
.sr-card-element {
  padding-top: 12px;
}

/* Responsiveness */
/* Responsive Design - Mobile First */

/* Small screens (640px and up) */
@media (min-width: 640px) {
  .sr-root {
    padding: var(--space-lg);
  }

  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .cart-panel {
    width: 90vw;
    max-width: 480px;
    height: auto;
    max-height: 85vh;
  }
}

/* Medium screens (768px and up) */
@media (min-width: 768px) {
  .sr-root {
    padding: var(--space-xl);
  }

  h1 {
    font-size: 40px;
  }

  .product-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .product-card {
    min-height: 480px;
  }

  .cart-icon {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 64px;
    height: 64px;
  }

  .cart-panel {
    width: 420px;
    max-height: 100vh;
    bottom: auto;
    top: 0;
    left: auto;
    right: 0;
    border-radius: 0;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
  }

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

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
  .sr-root {
    max-width: 1600px;
    margin: 0 auto;
  }

  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
  }

  .product-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--color-text-secondary);
  }
}

/* Extra large screens (1280px and up) */
@media (min-width: 1280px) {
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* Overlay when cart is open */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Scrolling behavior */
body.cart-open {
  overflow: hidden;
}

/* Smooth scrolling in cart */
.cart-items-container {
  scroll-behavior: smooth;
}

/* Touch-friendly adjustments */
@media (hover: none) {
  .increment-btn:hover,
  .add-to-cart-btn:hover:not(:disabled),
  .checkout-btn:hover:not(:disabled) {
    /* Disable hover effects on touch devices */
  }

  .increment-btn:active,
  .add-to-cart-btn:active:not(:disabled),
  .checkout-btn:active:not(:disabled) {
    background-color: var(--color-primary-dark);
  }
}

/* Legacy utility classes */
.pasha-image-stack {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: auto auto;
}

.pasha-image-stack img,
.pasha-image img {
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-secondary);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow);
}
  transition: all 0.8s ease;
  opacity: 0;
}

.pasha-image {
  text-align: center;
  margin-top: 20px;
}

.pasha-image img {
  opacity: 1;
}

.pasha-image-stack img:nth-child(1) {
  transform: translate(30px, 15px);
  opacity: 1;
}
.pasha-image-stack img:nth-child(2) {
  transform: translate(-28px, 0px);
  opacity: 1;
}
.pasha-image-stack img:nth-child(3) {
  transform: translate(64px, -50px);
  opacity: 1;
}

/* todo: spinner/processing state, errors, animations */

.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}
.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: var(--accent-color);
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: var(--accent-color);
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}
@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Custom */
.container {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

/* Homepage override: keep hero container full width inside .sr-root */
.sr-root .container {
  max-width: min(1280px, 100%) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.container .pasha-image-stack {
  margin-top: 20px;
}

.container:first-of-type {
  margin-right: 0;
}

.quantity-setter {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.quantity-setter input {
  border-radius: 0;
  width: 50px;
  padding: 0;
  text-align: center;
}

.quantity-setter .increment-btn {
  margin-top: 0;
  border-radius: 0;
  border: 1px solid var(--accent-color);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Animated form */

.sr-root {
  animation: 0.4s form-in;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

.sr-payment-form .sr-form-row {
  animation: 0.4s field-in;
  animation-fill-mode: both;
  animation-timing-function: ease;
  transform-origin: 50% 0%;
}

/* need saas for loop :D  */
.sr-payment-form .sr-form-row:nth-child(1) {
  animation-delay: 0;
}
.sr-payment-form .sr-form-row:nth-child(2) {
  animation-delay: 60ms;
}
.sr-payment-form .sr-form-row:nth-child(3) {
  animation-delay: 120ms;
}
.sr-payment-form .sr-form-row:nth-child(4) {
  animation-delay: 180ms;
}
.sr-payment-form .sr-form-row:nth-child(5) {
  animation-delay: 240ms;
}
.sr-payment-form .sr-form-row:nth-child(6) {
  animation-delay: 300ms;
}
.hidden {
  display: none;
}

@keyframes field-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@keyframes form-in {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#submit {
  width: 100%;
}

/* Cart Icon & Panel - Mobile-First */
.cart-icon {
  position: fixed;
  bottom: var(--space-base);
  right: var(--space-base);
  width: 56px;
  height: 56px;
  background-color: #ffc107;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  z-index: 100;
  flex-shrink: 0;
}

.cart-icon:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.cart-icon:active {
  transform: scale(0.95);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: white;
  color: #ffc107;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-tiny);
  font-weight: 700;
  border: 2px solid #ffc107;
}

/* Cart Panel - Mobile Drawer */
.cart-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 85vh;
  background-color: rgba(8, 28, 54, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: transform var(--transition-base);
  z-index: 99;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
}

.cart-panel.open {
  transform: translateY(0);
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.cart-panel-header h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  margin: 0;
  color: var(--color-white);
}

.cart-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 24px;
  color: var(--color-white);
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cart-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.cart-empty-message {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-xl) var(--space-md);
  margin: 0;
  font-size: var(--font-size-body);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.cart-item:hover {
  box-shadow: var(--shadow-sm);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.06);
}

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

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-item-name {
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  font-size: var(--font-size-body);
  line-height: var(--line-height-tight);
}

.cart-item-price {
  color: #ffc107;
  font-weight: 700;
  font-size: var(--font-size-body);
  margin: 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.cart-item-qty-btn {
  background-color: #ffc107;
  border: 1px solid #ffc107;
  color: var(--color-black);
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-tiny);
  font-weight: 700;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-qty-btn:hover {
  background-color: #ffd54f;
  border-color: #ffd54f;
}

.cart-item-qty-btn:active {
  transform: scale(0.95);
}

.cart-item-qty-input {
  width: 40px;
  height: 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
  font-size: var(--font-size-small);
  margin: 0;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.cart-item-remove {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-tiny);
  font-weight: 700;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.cart-item-remove:active {
  transform: scale(0.95);
}

/* Cart Footer - Sticky */
.cart-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-md);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-base);
  background-color: rgba(255, 255, 255, 0.05);
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--color-white);
  font-size: var(--font-size-small);
}

.cart-total-price {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--color-white);
  font-size: var(--font-size-h2);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-total-price span {
  color: #ffc107;
}

.checkout-btn {
  width: 100%;
  height: var(--touch-target);
  margin: 0;
  padding: 0 var(--space-md);
  font-size: var(--font-size-body);
  font-weight: 700;
  background-color: #ffc107;
  color: var(--color-black);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkout-btn:hover:not(:disabled) {
  background-color: #ffd54f;
}

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

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Overlay when cart is open */
body.cart-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 98;
}

/* Footer Styles - Full Width Bottom */
.footer {
  width: 100%;
  background-color: #0e1b33;
  padding: 0;
  clear: both;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h3 {
  color: var(--color-white);
  font-size: var(--font-size-h2);
  font-weight: 700;
  margin: 0 0 var(--space-base) 0;
}

.footer-section h4 {
  color: var(--color-white);
  font-size: var(--font-size-h4);
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
}

.footer-section p {
  margin: 0 0 var(--space-sm) 0;
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a {
  color: #ffc107;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-section a:hover {
  text-decoration: underline;
  color: #e0a800;
}

.footer-section strong {
  color: var(--color-white);
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-tiny);
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #ffc107;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: #e0a800;
}

/* Responsive Footer */
@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-base);
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3 {
    font-size: var(--font-size-h3);
  }

  .footer-bottom {
    padding: var(--space-base) var(--space-base);
    font-size: var(--font-size-tiny);
  }
}
