/* Rabtika Enhanced Styles - Mobile App-like + Checkout */

/* Mobile bottom navigation */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    z-index: 50;
    padding: 8px 0 env(safe-area-inset-bottom);
    justify-content: space-around;
    align-items: center;
  }

  body {
    padding-bottom: 70px;
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
    gap: 2px;
    padding: 6px 12px;
    border-radius: 12px;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: var(--accent);
    background: var(--bg-secondary);
  }

  /* Larger touch targets */
  .single_add_to_cart_button,
  .add_to_cart_button,
  button[type="submit"] {
    min-height: 48px;
    border-radius: 9999px !important;
    font-weight: 600;
  }

  /* App-like product cards */
  .card {
    border-radius: 16px;
  }
}

/* Quantity +/- buttons */
.quantity {
  display: inline-flex !important;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9999px;
  overflow: hidden;
}

.quantity input.qty {
  border: none !important;
  width: 50px !important;
  text-align: center;
  background: transparent !important;
  -moz-appearance: textfield;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity .minus,
.quantity .plus {
  background: var(--bg-secondary);
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-primary);
}

/* Side Cart Drawer */
#side-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#side-cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#side-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg-primary);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

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

/* Free shipping progress */
.free-shipping-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.free-shipping-bar .progress {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.4s ease;
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-primary) !important;
  padding: 12px 16px !important;
}

.woocommerce-checkout #place_order {
  width: 100%;
  border-radius: 9999px !important;
  padding: 16px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  background: var(--accent) !important;
}

/* Gallery improvements */
.woocommerce-product-gallery {
  border-radius: 16px;
  overflow: hidden;
}

.woocommerce-product-gallery__image img {
  border-radius: 12px;
}
