/* ==========================================
   SHOP PAGE – MINIMAL SELECTOR + SLIDE PANEL
   ========================================== */

/* ===== SHELL ===== */
.shop-shell {
  padding-top: 10px;
  padding-bottom: 40px;
}

/* Wrapper that changes from column -> 2-column after selection */
.shop-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: all 0.6s ease;
}

/* Selector in the middle at start */
.shop-selector {
  max-width: 540px;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    max-width 0.6s ease,
    text-align 0.6s ease,
    margin-left 0.6s ease;
}

/* Fade-in on load */
.shop-selector.ready {
  opacity: 1;
  transform: translateY(0);
}

.shop-question {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: #777;
  margin-bottom: 10px;
}

.shop-main-title {
  font-size: 40px;
  margin-bottom: 8px;
}

.shop-main-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 26px;
}

/* ===== CATEGORY BUTTONS ===== */
.shop-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shop-category-card {
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 14px 20px;
  cursor: pointer;
  font: 600 14px 'Montserrat', system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.25s ease;
}

.shop-category-card:hover {
  border-color: #111;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.shop-category-card.selected {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

/* When a category is chosen, layout becomes side-by-side */
.shop-layout.active {
  align-items: flex-start;
  gap: 40px;
  flex-direction: row;
}

/* Selector shifts left and shrinks a bit */
.shop-layout.active .shop-selector {
  max-width: 260px;
  text-align: left;
  margin-left: -40px;
}

/* ===== PRODUCTS PANEL (right side) ===== */
.shop-products {
  flex: 1;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease;
}

.shop-layout.active .shop-products {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  max-height: 4000px;
  margin-top: -20px; /* pull up */
}

.product-title {
  font-size: 24px;
  margin-bottom: 16px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Each card is same structure and similar height */
.product-card {
  border-radius: 14px;
  border: 1px solid #eee;
  background: #fff;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 540px; /* keeps rows visually even */
}

/* =======================================================
   FINAL DOOR IMAGE ALIGNMENT – CLEAN & CONSISTENT
   ======================================================= */

/* PERFECT UNIFORM DOOR IMAGES */
.product-image {
  width: 100%;
  aspect-ratio: 3 / 5;      /* SAME SHAPE FOR ALL DOORS */
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fit all images inside the frame with same alignment */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* NO CUTTING, NO STRETCHING */
  object-position: center;   /* CENTERED PERFECTLY */
}


/* ===== TEXT BELOW IMAGE ===== */
.product-name {
  font-size: 15px;
  font-weight: 600;
}

.product-meta {
  font-size: 12px;
  color: #777;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  font-weight: normal;
}

.new-price {
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

/* ===== START ORDER BUTTON ===== */
.product-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #111;
  color: #fff !important;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
}

.product-cta:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.product-cta:active {
  transform: scale(0.97);
}

/* Make the button take full width on mobile */
@media (max-width: 600px) {
  .product-cta {
    width: 100%;
  }

  .product-image {
    height: 360px; /* slightly shorter on small screens */
  }

  .product-card {
    min-height: 500px;
  }
}

/* ===== RESPONSIVE LAYOUT ===== */
@media (max-width: 900px) {
  .shop-layout.active {
    flex-direction: column;
  }

  .shop-layout.active .shop-selector {
    max-width: 100%;
    margin-left: 0;
  }
}

/* ===== ORDER MODAL ===== */
.order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.order-modal.show {
  display: flex;
}

.order-modal-content {
  background: #fff;
  width: 95%;
  max-width: 480px;
  max-height: 85vh;
  padding: 20px;
  border-radius: 16px;
  overflow-y: auto;
  animation: fadeIn 0.25s ease;
}

.order-close {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  font-size: 26px;
  cursor: pointer;
  background: #fff;
  padding: 4px 8px;
  z-index: 10;
}

.order-title {
  margin-top: 10px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
}

/* compact clean layout */
.order-section {
  margin-bottom: 18px;
}

.order-section label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.order-value {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* Option grid */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.option-btn {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: #111;
}

.option-btn.selected {
  border-color: #111;
  background: #111;
  color: #fff;
}

.option-btn.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.order-section input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
}

/* Submit button */
.order-submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: 0.2s ease;
}

.order-submit-btn:hover {
  background: #333;
}
/* =======================================
   SLIM DARK FOOTER (Clean + Premium)
======================================= */

.slim-footer {
  background: #222;              /* dark grey */
  color: #ddd;
  padding: 30px 0 25px;          /* THIN FOOTER */
  font-family: 'Montserrat', sans-serif;
}

.slim-footer .footer-columns {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.slim-footer .footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 0.5px;
}

.slim-footer .footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #ccc;
  margin: 4px 0;
  text-decoration: none;
  transition: 0.2s ease;
}

.slim-footer .footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}

/* bottom area */
.slim-footer .footer-bottom {
  text-align: center;
  margin-top: 20px;
}

.slim-footer .footer-bottom p {
  font-size: 0.8rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

/* payment icons */
.slim-footer .payment-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.slim-footer .payment-icons img {
  height: 22px;
  opacity: 0.85;
  transition: 0.2s;
}

.slim-footer .payment-icons img:hover {
  opacity: 1;
}

.option-btn {
  background: #f2f2f2;
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.25s ease;
}

.option-btn:hover {
  background: #e8e8e8;
}

.option-btn.active {
  background: #1e4db7;
  color: #fff;
  border-color: #1e4db7;
  transform: scale(1.05);
}

.verify-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 8px;
  margin: 20px 0;
}

.verify-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

/* ===== APPLE-STYLE MODAL STYLES ===== */
.apple-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.apple-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.apple-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}

.apple-next, .apple-submit {
  width: 100%;
  padding: 14px;
  background: #007AFF;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
}

.apple-next:hover, .apple-submit:hover {
  background: #0056CC;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.verify-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  font-size: 14px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}
/* ===== PREMIUM APPLE MODAL – COMPACT VERSION ===== */

.order-modal.show .order-modal-content {
  opacity: 1;
  transform: translateY(0);
}

.order-modal .order-modal-content {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Glass dim background */
.order-modal {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

/* ===== CORE MODAL SIZE (SMALLER + CENTERED) ===== */
.order-modal-content {
  max-width: 620px !important;        /* narrower */
  max-height: 86vh !important;        /* a bit shorter */
  overflow: hidden !important;        /* no scroll by default */
  padding: 22px 26px 38px !important; /* tighter padding */
  border-radius: 18px !important;
  box-sizing: border-box !important;
}

/* ===== BUTTON GRID SPACING (MORE COMPACT) ===== */
.option-grid {
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.option-btn,
.option-grid button {
  padding: 10px 12px !important;
  font-size: 13px !important;        /* smaller text */
  border-radius: 9px !important;
}

/* ACTIVE BUTTON (APPLE STYLE) */
.option-btn.active,
.option-grid button.active {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  transition: all 0.18s ease;
}

/* ===== TITLE + SUBTITLE (COMPACT) ===== */
.apple-title {
  font-size: 20px !important;
  line-height: 1.15 !important;
  margin-bottom: 4px !important;
}

.apple-sub {
  margin-bottom: 12px !important;
  font-size: 12px !important;
  opacity: 0.75;
}

/* ===== NEXT / SUBMIT BUTTON ===== */
.apple-next,
.apple-submit {
  font-size: 15px !important;
  border-radius: 11px !important;
  padding: 12px 0 !important;
  margin-top: 16px !important;
  background: #007AFF;
  font-weight: 600 !important;
}

.apple-next:hover,
.apple-submit:hover {
  background: #006ae6;
}

/* ============================================================
   CREATE-YOUR-OWN SCROLL FIX (ONLY WHEN NEEDED)
   ============================================================ */
.order-modal-content[data-custom="true"] {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 16px !important;
  scroll-behavior: smooth;
}

/* Smooth scrollbar for custom modal */
.order-modal-content[data-custom="true"]::-webkit-scrollbar {
  width: 6px;
}

.order-modal-content[data-custom="true"]::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}
