
.wc-proceed-to-checkout {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  text-align: center;
}

.wc-proceed-to-checkout .checkout-button.button.alt.wc-forward {
  background: var(--wilddragon-secondary-dark) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: clamp(14px, 1.5vw, 18px); /* Responsive font */
  padding: 0.6em 1.2em; /* Scales with font */
  font-weight: 900;
  letter-spacing: 0.5px;
  border: 3px solid black !important;
  border-radius: 0.5em;
  box-shadow:
    0.1em 0.1em 0 black,
    0 4px 12px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  background-clip: padding-box;
  outline: none;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  text-transform: uppercase;
  overflow: hidden;
  text-align: center;
}


/* Hover Effect */
.wc-proceed-to-checkout .checkout-button.button.alt.wc-forward:hover {
  background: var(--wilddragon-secondary-hover) !important;
  transform: translate(-0.05em, -0.05em);
  box-shadow:
    0.15em 0.15em 0 black,
    0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Active (Pressed) Effect */
.wc-proceed-to-checkout .checkout-button.button.alt.wc-forward:active {
  transform: translate(0.05em, 0.05em);
  box-shadow:
    0.05em 0.05em 0 black,
    0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Shine Effect */
.wc-proceed-to-checkout .checkout-button.button.alt.wc-forward::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.5s ease;
  border-radius: inherit;
  z-index: 1;
}

/* Shine Animation on Hover */
.wc-proceed-to-checkout .checkout-button.button.alt.wc-forward:hover::after {
  left: 125%;
}





/* ===== CORE VARIABLES & BASE STYLES ===== */
:root {
  /* Color Palette */
  --color-primary: #d00;
  --color-primary-hover: #d00;
  --color-text: #333;
  --color-border: #dedede;
  --color-light-bg: #fafafa;
  --color-light-gray: #f1f1f1;
  --color-table-border: #ececec;
  
  /* Spacing System */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 15px;
  --space-lg: 30px;
  
  /* Typography */
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  
  /* Borders */
  --radius-none: 0;
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 30px;
  
  /* Transitions */
  --transition: all 0.2s ease;
}

/* ===== GLOBAL RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.4;
}

body {
  font-family: inherit;
  color: var(--color-text);
  background-color: white;
}

/* Example: Makes images responsive by default */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* Example: Link styling with smooth color transition */
a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
  
  &:hover {
    color: var(--color-primary);
  }
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Example: Flexbox row with negative margins for gutters */
body.woocommerce-cart main#main-content .row {
  
    display: flex !important;
    flex-wrap: wrap !important;
}

.col {
  padding: 0 var(--space-sm);
  width: 100%;
}

/* ===== RESPONSIVE GRID SYSTEM ===== */
@media (min-width: 768px) {
  /* Example: Column widths for medium screens */
  .col-md-5 { width: 41.666667%; }
  .col-md-7 { width: 58.333333%; }
  .col-md-8 { width: 66.666667%; }
  
  /* Example: Desktop-specific spacing */
  .desktop-mt-30 { margin-top: var(--space-lg) !important; }
  .desktop-pr-30 { padding-right: var(--space-lg) !important; }
}

/* ===== FORM ELEMENTS ===== */
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 0.5em;
  border: 1px solid var(--color-border);
  font-size: var(--text-base);
  height: 42px;
  transition: var(--transition);
  
  &:focus {
    background: var(--color-light-bg);
    outline: none;
  }
}

/* Example: Custom select dropdown */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
  
  &:hover {
    cursor: pointer;
  }
}

/* ===== BUTTON COMPONENT ===== */
.btn {
  /* Example: Button base styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
  height: 42px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: white;
  border-radius: var(--radius-none);
  cursor: pointer;
  transition: var(--transition);
  
  /* Example: Hover state */
  &:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
  }
  
  /* Example: Loading state */
  &--loading {
    position: relative;
    color: transparent;
    
    &::after {
      content: "";
      position: absolute;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255,255,255,0.3);
      border-radius: 50%;
      border-top-color: white;
      animation: spin 1s linear infinite;
    }
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== TABLE COMPONENTS ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  
  thead {
    text-transform: uppercase;
    color: #222;
    
    tr {
      border-bottom: 2px solid var(--color-table-border);
    }
  }
  
  th, td {
    padding: 0.62em 0;
    font-size: var(--text-lg);
    text-align: left;
  }
  
  td {
    padding: 0 var(--space-sm) var(--space-md);
  }
  
  tr {
    border-bottom: 1px solid var(--color-table-border);
    
    &:last-child {
      border-bottom: none;
    }
  }
}

/* ===== SHOPPING CART SPECIFIC ===== */
/* ===== 3D SHOPPING CART TOTALS ===== */
.cart_totals {
  border: 2px solid var(--color-table-border);
  border-bottom: 3px solid #000; /* Dark black bottom outline */
  border-radius: 10px; /* Matching your 3D style */
  padding: var(--space-lg);
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  
  &:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  table { 
    margin-bottom: 0;
    width: 100%;
  }
  
  tr {
    border-bottom: 1px solid var(--color-table-border);
    
    &:last-child {
      border-bottom: none;
    }
    
    &.cart-subtotal {
      font-weight: 700;
      
      th { 
        vertical-align: middle;
        color: #333; /* Dark text for emphasis */
      }
      
      td {
        font-size: 1.1em; /* Slightly larger text */
      }
    }
    
    &.order-total {
      th, td {
        font-size: 1.2em;
        font-weight: bold;
        color: #000; /* Dark black for total */
      }
    }
  }
  
  td {
    text-align: end;
    padding: var(--space-md) 0;
    vertical-align: top;
    line-height: 1.5;
    font-weight: 500;
  }
  
  th {
    padding-right: var(--space-sm);
    padding: var(--space-md) 0;
    letter-spacing: normal;
    vertical-align: top;
    line-height: 1.5;
    text-align: start;
    color: #555; /* Slightly darker than default */
  }
}





/* Example: Proceed to checkouT input with button */





/* Example: Coupon input with button */
/* ===== 3D COUPON CODE COMPONENT ===== */
.coupon {
  position: relative;
  margin-bottom: var(--space-md);
}

.coupon #coupon_code {
  width: 100%;
  padding: 12px 120px 12px 15px;
  margin: 0;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background-color: #fff;
  font-size: clamp(14px, 1.5vw, 16px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.coupon #coupon_code:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.coupon [name="apply_coupon"] {
  position: absolute;
  right: 4px;
  top: 4px;
  height: calc(100% - 8px);
  padding: 0 1.5em;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 900;
  color: #fff;
  background: var(--wilddragon-secondary-dark);
  border: 3px solid black;
  border-radius: 0.5em;
  box-shadow:
    0.1em 0.1em 0 black,
    0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  outline: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  background-clip: padding-box;
  position: absolute;
  overflow: hidden;
}

.coupon [name="apply_coupon"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.5s ease;
}

.coupon [name="apply_coupon"]:hover {
  background: var(--wilddragon-secondary-hover);
  transform: translate(-0.05em, -0.05em);
  box-shadow:
    0.15em 0.15em 0 black,
    0 6px 16px rgba(0, 0, 0, 0.3);
}

.coupon [name="apply_coupon"]:hover::after {
  left: 125%;
}

.coupon [name="apply_coupon"]:active {
  transform: translate(0.05em, 0.05em);
  box-shadow:
    0.05em 0.05em 0 black,
    0 2px 6px rgba(0, 0, 0, 0.2);
}


/* Example: Auto-update cart behavior */
.nasa-shopping-cart-form.qty-auto-update [name=update_cart] { 
  display: none; 
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {
  /* Example: Mobile-specific hiding */
  .hide-mobile {
    display: none;
  }
  
  /* Example: Mobile price display */
  .mobile-price {
    display: block;
    padding-top: var(--space-sm);
    color: var(--color-text);
  }
  
  /* Fixed: Mobile product thumbnails */
.product-thumbnail {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  padding: var(--space-sm) !important;
  
  img {
    width: 50px !important;
    height: auto !important;
    min-width: 50px !important;
    max-width: 50px !important;
    max-height: 70px !important;
    object-fit: contain !important;
    display: block;
  }
}
  
  /* Example: Larger quantity input */
  .quantity {
    width: 85px;
  }
  
  /* Example: Mobile spacing utilities */
  .mobile-mt-20 { margin-top: 20px !important; }
  .mobile-mb-30 { margin-bottom: var(--space-lg) !important; }
}
/* ===== PRODUCT ITEM COMPONENTS ===== */
.cart-item {
  border-bottom: 1px solid var(--color-table-border);
}

/* Fixed: Product thumbnail styling */
.product-thumbnail {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  padding: var(--space-md) var(--space-sm) !important;
  
  img {
    width: 60px !important;
    height: auto !important;
    min-width: 60px !important;
    max-width: 60px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    display: block;
  }
}

/* Example: Product name link styling */
.product-name {
  padding: var(--space-xs) var(--space-sm);
  width: auto;
  
  a:hover {
    color: #000;
  }
}

/* Example: Price displays */
.product-price,
.product-subtotal {
  font-weight: 600;
}

.product-subtotal {
  color: var(--color-primary);
  text-align: right;
}

/* ===== QUANTITY CONTROL COMPONENT ===== */
.quantity {
  width: 65px;
  position: relative;
  display: inline-block;
  
  /* Example: Hide number input spinners */
  &-input {
    width: 45px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--color-border);
    text-align: center;
    color: #666;
    border-radius: var(--radius-none);
    -moz-appearance: textfield;
    
    &::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
  }
  
  /* Example: Quantity buttons */
  &-btn {
    position: absolute;
    right: 0;
    width: 21px;
    height: 21px;
    border: 1px solid var(--color-light-gray);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    
    &:hover {
      background: var(--color-light-gray);
      color: #000;
    }
    
    svg {
      width: 13px;
      height: 20px;
      stroke-width: 2;
      fill: currentColor;
    }
    
    /* Example: Plus button positioning */
    &.plus {
      top: 0;
      border-radius: var(--radius-none);
    }
    
    /* Example: Minus button positioning */
    &.minus {
      bottom: 0;
      border-top: none;
      border-radius: var(--radius-none);
    }
  }
}

/* ===== REMOVE BUTTON COMPONENT ===== */
/* ===== 3D REMOVE BUTTON COMPONENT ===== */


td.product-remove.remove-product .remove.nasa-stclose {
  /* Override conflicting styles */
  font-size: 20px !important;
  color: var(--wilddragon-secondary-dark) !important;
  font-weight: 900;

  /* Make it flex to center × */
  display: flex !important;
  align-items: center;
  justify-content: center;

  /* Button visual */
  width: 36px;
  height: 36px;
  background-color: #fff;
  border: 2px solid var(--wilddragon-secondary-dark);
  border-radius: 50%;
  box-shadow:
    0.1em 0.1em 0 #000,
    0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Hover & active state */
td.product-remove.remove-product .remove.nasa-stclose:hover {
  background-color: var(--wilddragon-secondary-hover);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow:
    0.15em 0.15em 0 #000,
    0 6px 16px rgba(0, 0, 0, 0.3);
}

td.product-remove.remove-product .remove.nasa-stclose:active {
  transform: translateY(0);
  box-shadow:
    0.05em 0.05em 0 #000,
    0 2px 6px rgba(0, 0, 0, 0.2);
}







/* ===== CART ACTION AREAS ===== */
.cart-form {
  margin-bottom: 1em;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: var(--space-lg);
}

/* Example: Conditional update button */
.cart-update-btn {
  display: none; /* Hidden by default for auto-update */
  
  .qty-auto-update & {
    display: inline-block; /* Show when needed */
  }
}

/* ===== COUPON CODE SECTION ===== */
.woocommerce-remove-coupon {
  color: var(--color-text);
  display: flex;
  flex-wrap: wrap;
  transition: var(--transition);
  
  &:hover {
    color: #aaaaaa;
    
    .cp-code,
    .amount,
    svg {
      color: #aaaaaa;
    }
  }
  
  /* Example: Coupon code badge */
  .cp-code {
    border: 1px dashed #a3a3a3;
    background-color: #efefef;
    font-size: 11px;
    padding: 3px 8px 3px 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    word-break: break-all;
    border-radius: var(--radius-sm);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 135px;
  }
  
  svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }
}

/* ===== FORM ROW LAYOUT ===== */
.form-row {
  position: relative;
  margin-bottom: var(--space-md);
  
  /* Example: Full-width form rows */
  &.form-row-wide {
    clear: both;
  }
  
  /* Example: Floating labels pattern */
  label[for] {
    font-size: 100%;
    white-space: nowrap;
    position: absolute;
    line-height: 1;
    top: 50%;
    left: 10px;
    opacity: 0;
    font-weight: normal;
    transform: translateY(-50%);
  }
  
  input {
    padding: 0 var(--space-sm);
    height: 47px;
    line-height: 1;
    margin: 0;
  }
}

/* ===== CHECKOUT BUTTON ===== */
.checkout-button {
  /* Extends .btn styles */
  @extend .btn;
  
  /* Additional checkout-specific styles */
  color: var(--color-background);
  border-radius: var(--radius-sm);
}

/* ===== SHIPPING CALCULATOR ===== */
.shipping-calculator-button {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
  
  &:hover {
    color: var(--color-primary);
  }
}

/* ===== PRICE DISPLAY ===== */
.woocommerce-Price-amount {
  color: inherit;
  
  .woocommerce-Price-currencySymbol {
    margin-right: 2px;
  }
}

/* ===== UTILITY CLASSES ===== */
/* Example: Spacing utilities */
.mb-20 { margin-bottom: 20px !important; }
.mt-30 { margin-top: var(--space-lg) !important; }
.pt-15 { padding-top: var(--space-md) !important; }

/* Example: Layout utilities */
.min-h-1 { min-height: 1px; }
.text-right { text-align: right; }

/* Example: RTL support */
[dir="rtl"] {
  .text-right { text-align: left; }
  .product-subtotal { text-align: left; }
  .quantity { float: right; }
}

/* ===== ACCESSIBILITY UTILITIES ===== */
.visually-hidden {
  /* Example: Hide element visually but keep for screen readers */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Example: Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== EMPTY STATES ===== */
.cart-empty {
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--color-light-bg);
  border-radius: var(--radius-sm);
}

/* Example: Hide empty paragraphs */
p:empty {
  display: none;
}

/* ===== PRINT STYLES ===== */
@media print {
  .no-print {
    display: none !important;
  }
  
  .cart-form {
    break-inside: avoid;
  }
  
  .checkout-button,
  .shipping-calculator-button {
    display: none !important;
  }
  
  .cart_totals {
    border: 0;
    padding: 0;
  }
}


/* ===== WOOCOMMERCE-SPECIFIC ENHANCEMENTS ===== */
.woocommerce-cart-form__contents {
  width: 100%;
  
  /* Example: Cart item styling */
  .woocommerce-cart-form__cart-item {
    border-bottom: 1px solid var(--color-table-border);
    
    &:last-child {
      border-bottom: none;
    }
  }
}

/* ===== TABLE OPTIMIZATIONS ===== */
.shop_table {
  margin-top: var(--space-sm);
  border-collapse: collapse;
  width: 100%;
  
  /* Example: Table header styling */
  th {
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: left;
  }
  
  /* Example: Consistent cell padding */
  td, th {
    padding: 0 var(--space-sm) var(--space-md);
  }
}

/* ===== LAYOUT ENHANCEMENTS ===== */
.cart-collaterals {
  position: relative;
  float: left;
  padding: 0 var(--space-sm);
}

/* Example: Right-to-left layout adjustment */
.rtl-left {
  direction: ltr; /* Reset for RTL support */
}

/* ===== HIDDEN ELEMENTS HANDLING ===== */
[style*="display:none"],
[style*="display: none"] {
  display: none !important;
}

/* ===== MARGIN UTILITIES ===== */
.mr-5 {
  margin-right: var(--space-xs) !important;
}

/* ===== MOBILE-FIRST ENHANCEMENTS ===== */
@media (max-width: 767px) {
  /* Example: Mobile cart totals adjustments */
  .cart_totals {
    padding: 20px;
    
    td, th {
      padding-top: var(--space-md);
      padding-bottom: var(--space-md);
    }
  }
  
  /* Example: Button sizing for mobile */
  .button, 
  .checkout-button {
    padding: 0 20px;
    font-size: 14px;
  }
  
  /* Example: Full-width columns on mobile */
  .large-4 {
    width: 100%;
    margin-bottom: var(--space-md);
    
    &:last-child {
      margin-bottom: 0;
    }
  }
}

/* ===== DESKTOP ENHANCEMENTS ===== */
@media (min-width: 1100px) {
  /* Example: Wider update button on large screens */
  .cart-update-btn {
    width: auto;
  }
}

/* ===== GRID SYSTEM ENHANCEMENTS ===== */
@media (min-width: 768px) {
  /* Example: Column system for desktop */
  :root {
    --col-4: 33.333333%;
    --col-5: 41.666666%;
    --col-7: 58.333333%;
    --col-8: 66.666666%;
  }
  
  .large-4 { width: var(--col-4); }
  .large-5 { width: var(--col-5); }
  .large-7 { width: var(--col-7); }
  .large-8 { width: var(--col-8); }
  
  /* Example: Clearfix for grid columns */
  .large-4:nth-of-type(n) {
    clear: none;
  }
  
  /* Example: Typography scaling */
  h2 {
    line-height: 1.4;
    font-size: 1.7931em;
  }
}

/* ===== FORM INPUT ENHANCEMENTS ===== */
@media (max-width: 767px) {
  /* Example: Larger tap targets on mobile */
  body input,
  body select {
    font-size: 16px;
  }
}

/* ===== ANIMATION UTILITIES ===== */
.animate {
  transition: var(--transition);
  
  /* Example: Fade-in effect */
  &--fadein {
    animation: fadeIn 0.3s ease-in;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* Example: Prevent layout shifts */
img {
  aspect-ratio: attr(width) / attr(height);
}

/* Example: Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Example: Will-change for elements that will animate */


/* Example: Containment for complex components */
.cart_totals {
  contain: layout paint style;
}

/* ===== FALLBACKS ===== */
@supports not (aspect-ratio: 1/1) {
  img {
    height: auto;
    max-width: 100%;
  }
}
