/* ===== Base / Reset ===== */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
body{
  background:radial-gradient(circle at top, #3b261a 0, #120b08 55%, #0a0604 100%);
  color:#f5eee6;
  line-height:1.6;
}
a{
  text-decoration:none;
  color:inherit;
}
img{
  max-width:100%;
  display:block;
}

/* ===== Layout ===== */
.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 1.2rem;
}
.site-main{
  padding-bottom:2rem;
}

/* ===== Header / Navigation ===== */
.site-header{
  background:rgba(10,6,4,0.95);
  border-bottom:1px solid rgba(212,169,107,0.3);
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(10px);
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0.7rem 0.3rem;
}
.logo a{
  display:flex;
  align-items:center;
  gap:0.6rem;
}
.logo img{
  height:44px;
  width:auto;
  object-fit:contain;
}
.logo-text{
  font-size:1.3rem;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:#f5eee6;
}
.main-nav{
  display:flex;
  align-items:center;
  gap:1rem;
  font-size:0.9rem;
}
.main-nav a{
  color:#f5eee6;
  padding:0.25rem 0.4rem;
  border-bottom:2px solid transparent;
  transition:border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover{
  color:#d4a96b;
  border-bottom-color:#d4a96b;
}
.cart-link{
  font-weight:600;
}
.cart-count{
  color:#d4a96b;
}

/* Mobile nav stacking */
@media(max-width:720px){
  .header-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:0.4rem;
  }
  .main-nav{
    flex-wrap:wrap;
    gap:0.7rem;
  }
}

/* ===== Buttons ===== */
.btn{
  display:inline-block;
  border-radius:999px;
  padding:0.6rem 1.25rem;
  font-size:0.9rem;
  cursor:pointer;
  border:none;
  text-align:center;
}
.btn-primary{
  background:#d4a96b;
  color:#1c130f;
  font-weight:600;
}
.btn-secondary{
  background:transparent;
  color:#f5eee6;
  border:1px solid rgba(245,238,230,0.6);
}
.btn-primary:hover{
  filter:brightness(1.08);
}
.btn-secondary:hover{
  border-color:#d4a96b;
  color:#d4a96b;
}
.btn-sm{
  padding:0.45rem 0.95rem;
  font-size:0.82rem;
}

/* ===== Hero (Homepage) ===== */
.hero{
  margin:1.3rem 0 1.6rem;
}
.hero-main{
  width:100%;
}
.hero-image-band{
  background:linear-gradient(145deg, rgba(0,0,0,0.7), rgba(0,0,0,0.15));
  border-radius:20px;
  padding:1rem;
  box-shadow:0 18px 40px rgba(0,0,0,0.7);
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1.6fr);
  gap:1.5rem;
}

/* hero image box */
.hero-photo{
  border-radius:16px;
  height:230px;
  overflow:hidden;
  border:1px solid rgba(212,169,107,0.4);
  box-shadow:0 18px 40px rgba(0,0,0,0.7);
}
.hero-photo .hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* hero text */
.hero-text-overlay{
  padding:0.2rem 0.4rem 0.5rem;
}
.hero-eyebrow{
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:0.76rem;
  color:rgba(245,238,230,0.7);
  margin-bottom:0.3rem;
}
.hero-text-overlay h1{
  font-size:1.9rem;
  margin-bottom:0.4rem;
}
.hero-subtitle{
  font-size:0.98rem;
  color:rgba(245,238,230,0.9);
  margin-bottom:0.75rem;
  max-width:540px;
}
.hero-bullets{
  list-style:none;
  margin:0 0 0.9rem 0;
  padding:0;
  font-size:0.86rem;
  color:rgba(245,238,230,0.85);
}
.hero-bullets li{
  margin-bottom:0.25rem;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
}

/* Mobile hero */
@media(max-width:800px){
  .hero-image-band{
    grid-template-columns:1fr;
  }
  .hero-photo{
    height:260px;
  }
}

/* ===== Sections ===== */
.page-section{
  margin-top:1.4rem;
  background:rgba(22,14,10,0.9);
  border-radius:14px;
  padding:1.3rem 1.4rem;
  box-shadow:0 12px 30px rgba(0,0,0,0.5);
  border:1px solid rgba(237,210,160,0.18);
}
.page-section-alt{
  background:rgba(32,22,16,0.95);
}
.page-section h1,
.page-section h2{
  color:#f5eee6;
  margin-bottom:0.5rem;
}
.section-intro{
  margin-top:0.3rem;
  margin-bottom:1rem;
  font-size:0.9rem;
  color:rgba(245,238,230,0.8);
}

/* ===== Grid / Cards ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1rem;
  margin-top:0.7rem;
}
.grid-3{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.card{
  background:rgba(18,11,8,0.95);
  border-radius:12px;
  padding:0.9rem 1rem;
  box-shadow:0 10px 25px rgba(0,0,0,0.45);
  border:1px solid rgba(237,210,160,0.14);
}
.card.small p{
  font-size:0.9rem;
  color:rgba(245,238,230,0.9);
}

/* seat type cards */
.seat-type-card h3{
  margin-bottom:0.3rem;
}
.seat-type-card p{
  font-size:0.9rem;
  color:rgba(245,238,230,0.9);
  margin-bottom:0.45rem;
}

/* ===== Product cards & grids ===== */
.grid-products{
  margin-top:0.8rem;
}
.product-card{
  display:flex;
  flex-direction:column;
}
.product-card img{
  border-radius:10px;
  margin-bottom:0.55rem;
}
.product-name{
  font-size:1rem;
  margin-bottom:0.18rem;
}
.product-name a{
  color:#f5eee6;
}
.product-name a:hover{
  color:#d4a96b;
}
.product-snippet{
  font-size:0.88rem;
  color:rgba(245,238,230,0.78);
  margin-bottom:0.45rem;
}
.price{
  font-weight:600;
  margin:0.25rem 0 0.45rem;
  color:#d4a96b;
}
.product-actions{
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem;
  align-items:center;
}
.inline-form{
  display:inline-block;
}

/* ===== About / highlights on home ===== */
.about-home-layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1.2fr);
  gap:1.8rem;
  align-items:flex-start;
}
.about-home-layout p{
  margin-bottom:0.7rem;
}
.about-highlights{
  display:grid;
  grid-template-columns:1fr;
  gap:0.7rem;
}
.text-link{
  display:inline-block;
  margin-top:0.2rem;
  font-size:0.9rem;
  color:#d4a96b;
}
.text-link:hover{
  text-decoration:underline;
}

/* ===== Steps section ===== */
.steps-grid .card small{
  font-size:0.88rem;
}

/* ===== Footer ===== */
.site-footer{
  background:#050302;
  border-top:1px solid rgba(237,210,160,0.15);
  margin-top:2rem;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0.9rem 1.2rem 1.1rem;
  font-size:0.8rem;
  color:rgba(245,238,230,0.7);
}
.footer-links{
  display:flex;
  gap:0.8rem;
}
.footer-links a{
  color:rgba(245,238,230,0.8);
}
.footer-links a:hover{
  color:#d4a96b;
}

/* ===== Utility ===== */
.small{
  font-size:0.82rem;
}

/* ===== Responsive tweaks ===== */
@media(max-width:900px){
  .about-home-layout{
    grid-template-columns:1fr;
  }
}
@media(max-width:600px){
  .page-section{
    padding:1rem 0.9rem;
  }
}
/* ===== Contact page layout ===== */

.contact-layout{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr);
  gap:2rem;
  align-items:flex-start;
  margin-top:1.2rem;
}

.contact-info-block p{
  margin-bottom:0.8rem;
}

.contact-info-card{
  background:rgba(18,11,8,0.96);
  border-radius:10px;
  padding:1rem 1.1rem;
  border:1px solid rgba(237,210,160,0.18);
  font-size:0.9rem;
  color:rgba(245,238,230,0.9);
}

.contact-info-card h3{
  font-size:1rem;
  margin-bottom:0.2rem;
}

/* Contact form container */
.contact-form-card{
  background:rgba(18,11,8,0.98);
  border-radius:12px;
  padding:1.2rem 1.3rem;
  box-shadow:0 10px 26px rgba(0,0,0,0.55);
  border:1px solid rgba(237,210,160,0.2);
}

.contact-form-card h2{
  margin-bottom:0.5rem;
}

/* Form fields */
.contact-form label{
  display:block;
  font-size:0.9rem;
  font-weight:600;
  margin-top:0.6rem;
  margin-bottom:0.15rem;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:0.5rem 0.6rem;
  border-radius:6px;
  border:1px solid rgba(180,150,115,0.85);
  font-size:0.9rem;
  background:rgba(10,6,4,0.95);
  color:#f5eee6;
}

.contact-form textarea{
  resize:vertical;
  min-height:140px;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#d4a96b;
}

.contact-form button{
  margin-top:0.85rem;
}

/* Mobile: stack columns */
@media(max-width:900px){
  .contact-layout{
    grid-template-columns:1fr;
  }
}

/* === PRODUCT DETAIL LAYOUT & FORM STYLING === */

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
}

/* Left column: image */
.product-image {
  flex: 0 0 360px;      /* fixed-ish width */
  max-width: 360px;
}

/* Make sure image scales inside that box */
.product-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Right column: text + form */
.product-info {
  flex: 1 1 260px;
  min-width: 260px;
}

/* On mobiles: stack image above info */
@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
  }
  .product-image,
  .product-info {
    max-width: 100%;
  }
}

/* FORM GROUPS ON PRODUCT PAGE */
.product-info form {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 1.5rem;
}

/* Make long fields span full width (seat combo + description fields) */
.product-info .form-group {
  margin-bottom: 0;
}

.product-info .form-group:nth-child(1),
.product-info .form-group:nth-child(3) {
  grid-column: 1 / -1;  /* seat combination and reg year on full width rows */
}

.product-info label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.product-info select,
.product-info input[type="text"],
.product-info input[type="number"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(212,169,107,0.6);
  background: #140d09;
  color: #f5eee6;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.product-info .small {
  font-size: 0.8rem;
  color: rgba(245,238,230,0.8);
  margin-top: 0.25rem;
}

/* Button spans full width row but stays left */
.product-info .btn.btn-primary {
  margin-top: 0.6rem;
  grid-column: 1 / -1;
  justify-self: flex-start;
}

/* On small screens, form becomes single column */
@media (max-width: 600px) {
  .product-info form {
    grid-template-columns: 1fr;
  }
}
/* FINAL OVERRIDE FOR PRODUCT IMAGE SIZE */
.product-detail .product-image img {
  max-width: 360px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}
/* === SHOP GRID LAYOUT & THUMBNAILS === */

/* Make shop grid behave like tiles, not full-width cards */
.site-main.wrap > .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Each product card: fixed-ish width, like a normal product tile */
.site-main.wrap > .grid .card {
  flex: 0 0 260px;   /* base width */
  max-width: 260px;
}

/* Thumbnail image inside product cards */
.site-main.wrap > .grid .card img {
  width: 100%;
  height: 220px;
  object-fit: contain;  /* show full image, no cutting */
  background: #000;     /* optional, fill space behind image */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}


/* On small screens, let cards stretch full width */
@media (max-width: 600px) {
  .site-main.wrap > .grid .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* === HOMEPAGE HOT PRODUCTS – MAKE CARDS NARROW TILES === */
.page-section .grid.grid-products {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;        /* centre the tiles in the section */
}

/* Each hot product card becomes a tile (like on shop.php) */
.page-section .grid.grid-products .product-card {
  flex: 0 0 260px !important;     /* fixed tile width */
  max-width: 260px !important;
}

/* On small screens, let each tile go full width */
@media (max-width: 600px) {
  .page-section .grid.grid-products .product-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

/* === HOMEPAGE HOT PRODUCTS CARD WIDTH === */
/* Only affects the hot products grid on index.php */

.grid.grid-products {
  justify-items: center;              /* centre items inside the grid */
}

.grid.grid-products .product-card {
  max-width: 260px;                   /* narrow card like shop tiles */
  width: 100%;
  justify-self: center;               /* centre the card in its grid track */
}


/* === HOME PAGE HOT PRODUCTS CARD WIDTH FIX === */
/* Only affects the "Hot selling seat covers" section on index.php */

.hot-products-section .grid.grid-products {
  justify-items: center;
}

.hot-products-section .product-card {
  width: 260px;           /* make the card narrow like a tile */
  max-width: 100%;
  margin: 0 auto;         /* centre the card inside the big brown box */
  align-self: center;
  justify-self: center;
}

/* === HOME PAGE HOT PRODUCTS FIX === */
/* Only affects the "Hot selling seat covers" section, not shop.php */

.hot-products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
  justify-content: center;
  gap: 1.2rem;
}

.product-card-home {
  width: 260px;
  max-width: 260px;
  margin: 0 auto;
}

/* Thumbnail inside those cards */
.product-card-home .home-product-thumb {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 10px;
}

/* === HOME PAGE HOT PRODUCTS LAYOUT (ONLY INDEX.PHP) === */

.hot-products-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* Each card is a neat tile */
.hot-product-card {
  width: 260px;
  max-width: 260px;
}

/* Thumbnail inside that tile */
.hot-product-card .hot-product-img {
  width: 100%;
  height: 220px;
  object-fit: contain;   /* show full image, no cropping */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* === FIX HOMEPAGE HOT PRODUCT IMAGE SIZE === */

.hot-products-section .grid-products {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    justify-items: center;
}

.hot-products-section .product-card {
    max-width: 260px !important;
    width: 100%;
}

.hot-products-section .product-card img {
    height: 220px !important;
    width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto;
    background: #000;
    border-radius: 10px;
}

/* === HOMEPAGE HOT PRODUCTS – MATCH SHOP TILE LAYOUT === */

.hot-products-section .grid-products{
  /* behave like the shop.php grid */
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
}

.hot-products-section .grid-products .card{
  /* same size as shop tiles */
  flex:0 0 260px;
  max-width:260px;
}

.hot-products-section .grid-products .card img{
  width:100%;
  height:220px;
  object-fit:contain;
  background:#000;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(0,0,0,0.4);
  margin-bottom:0.5rem;
}

/* === HOMEPAGE HOT PRODUCTS ROW === */

.hot-products-row{
  display:flex;
  flex-wrap:wrap;
  gap:1.4rem;
}

/* each hot product card behaves like a tile, not full-width */
.hot-product-card{
  width:230px;
  max-width:100%;
}

/* thumbnail inside the hot card */
.hot-product-thumb{
  width:100%;
  height:220px;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(0,0,0,0.4);
  background:#000;
  margin-bottom:0.5rem;
}

/* on mobiles let them stretch nicely */
@media (max-width: 600px){
  .hot-product-card{
    width:100%;
  }
}

/* === HOMEPAGE HOT PRODUCTS – MAKE CARDS LIKE SHOP TILES === */

/* Use flex row for the hot products on index only */
.hot-products-section .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Each hot product card: fixed tile width */
.hot-products-section .card.product-card {
  flex: 0 0 260px;
  max-width: 260px;
}

/* Thumbnail inside those cards */
.hot-products-section .card.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;      /* or 'contain' if you prefer no cropping */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}

/* On mobiles, allow full width */
@media (max-width: 600px) {
  .hot-products-section .card.product-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* === CHECKOUT LAYOUT === */
.checkout-layout{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); /* left form a bit wider */
  gap:1.5rem;
  margin-top:1rem;
}

@media (max-width:900px){
  .checkout-layout{
    grid-template-columns:1fr;
  }
}

/* LEFT SIDE: reuse contact form styling */
.checkout-form.contact-form textarea{
  min-height:80px;
}

/* === ORDER SUMMARY TABLE === */
.checkout-summary-table{
  width:100%;
  border-collapse:collapse;
  font-size:0.9rem;
}

/* header row */
.checkout-summary-table thead th{
  padding:0.45rem 0;
  text-align:left;
  border-bottom:1px solid rgba(237,210,160,0.35);
  font-weight:600;
}

/* body cells */
.checkout-summary-table tbody td{
  padding:0.35rem 0;
  vertical-align:top;
  border-bottom:1px solid rgba(237,210,160,0.12);
}

/* footer (totals) */
.checkout-summary-table tfoot td{
  padding:0.35rem 0;
}

.checkout-summary-table tfoot tr:first-child td{
  padding-top:0.6rem;
  border-top:1px solid rgba(237,210,160,0.25);
}

.checkout-summary-table tfoot tr:last-child td{
  padding-top:0.4rem;
  font-size:1rem;
}

/* right-aligned numbers */
.checkout-summary-table .align-right{
  text-align:right;
  white-space:nowrap;
}

/* make item name column breathe a bit */
.checkout-summary-table td:first-child{
  padding-right:0.8rem;
}

/* === PayPal style checkout buttons on checkout.php === */

.paypal-buttons {
  margin-top: 1.2rem;
}

.paypal-btn {
  width: 100%;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

.paypal-primary {
  background: #ffc439;         /* classic PayPal yellow */
  color: #111111;
}

.paypal-secondary {
  background: #f2b200;         /* slightly darker for Pay Later */
  color: #111111;
}

.paypal-btn:hover {
  filter: brightness(1.05);
}

/* fake PayPal logo text */
.paypal-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
  font-weight: 700;
}

.paypal-logo-pay {
  color: #003087;
}

.paypal-logo-pal {
  color: #009cde;
}

/* small blue P icon on Pay Later */
.paypal-p-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background:#003087;
  color:#ffffff;
  font-weight:700;
}

/* Secure checkout text */
.secure-checkout {
  margin-top: 0.3rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245,238,230,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.secure-checkout .lock-icon {
  font-size: 1rem;
}

/* ===== Image Zoom (click to enlarge) ===== */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.zoom-overlay.is-open { display: flex; }

.zoom-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.zoomable {
  cursor: zoom-in;
}

.zoom-overlay .zoom-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}



/* ===== Image zoom / lightbox ===== */
.zoomable { cursor: zoom-in; }

.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.img-lightbox.open { display: flex; }

.img-lightbox img {
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.img-lightbox .close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.zoom-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  cursor: zoom-out;
}

.zoom-overlay-img{
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* === FINAL GRID FIX (wins over earlier rules) === */
.grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap:1rem !important;
}

.grid.grid-products{
  display:grid !important;
}

/* Keep product thumbnails sensible */
.product-card img,
.card img{
  width:100%;
  height:auto;
  object-fit:cover;
}

/* Cart page layout fix */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  vertical-align: top;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cart-footer .cart-summary {
  text-align: right;
  margin-left: auto;
}

.cart-footer .cart-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cart-footer .cart-actions .btn {
  white-space: nowrap;
}


/* =========================
   CART TABLE ALIGN FIX
   (paste at very bottom)
========================= */

.cart-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;              /* IMPORTANT: stops columns stretching */
}

.cart-table th,
.cart-table td{
  padding:0.6rem 0.5rem;
  vertical-align:top;
}

.cart-table thead th{
  white-space:nowrap;              /* keep headings tidy */
}

/* Column widths (match your table order) */
.cart-table th:nth-child(1),
.cart-table td:nth-child(1){
  width:40%;
}

.cart-table th:nth-child(2),
.cart-table td:nth-child(2){
  width:26%;
}

.cart-table th:nth-child(3),
.cart-table td:nth-child(3){
  width:10%;
  text-align:center;
}

.cart-table th:nth-child(4),
.cart-table td:nth-child(4){
  width:12%;
  text-align:right;
  white-space:nowrap;
}

.cart-table th:nth-child(5),
.cart-table td:nth-child(5){
  width:12%;
  text-align:right;
  white-space:nowrap;
}

.cart-table th:nth-child(6),
.cart-table td:nth-child(6){
  width:90px;
  text-align:right;
  white-space:nowrap;
}

/* Make long product names wrap instead of pushing layout */
.cart-table td:nth-child(1) strong{
  display:block;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Options block wraps nicely too */
.cart-table td:nth-child(2){
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Qty input stays neat */
.cart-table input[type="number"]{
  max-width:80px;
}

/* Mobile: turn table into stacked rows */
@media (max-width: 820px){
  .cart-table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table th,
  .cart-table td,
  .cart-table tr{
    display:block;
    width:100%;
  }

  .cart-table thead{
    display:none;
  }

  .cart-table tr{
    border-bottom:1px solid rgba(237,210,160,0.18);
    padding:0.6rem 0;
  }

  .cart-table td{
    padding:0.35rem 0;
    text-align:left !important;
  }

  .cart-table td:nth-child(6){
    text-align:left !important;
  }
}


/* =========================
   CART TABLE ALIGN FIX
   Paste at END of style.css
   ========================= */

.cart-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;              /* <-- key fix */
}

.cart-table th,
.cart-table td{
  padding:0.6rem 0.6rem;
  vertical-align:top;
}

/* Make long product names wrap instead of pushing other columns */
.cart-table td:first-child,
.cart-table th:first-child{
  word-wrap:break-word;
  overflow-wrap:anywhere;
}

/* Lock column widths (match your HTML header widths + keep remove column tidy) */
.cart-table th:nth-child(2),
.cart-table td:nth-child(2){ width:220px; }   /* Options */

.cart-table th:nth-child(3),
.cart-table td:nth-child(3){ width:80px; }    /* Qty */

.cart-table th:nth-child(4),
.cart-table td:nth-child(4){ width:100px; }   /* Price */

.cart-table th:nth-child(5),
.cart-table td:nth-child(5){ width:120px; }   /* Line total */

.cart-table th:nth-child(6),
.cart-table td:nth-child(6){ width:90px; text-align:right; } /* Remove */

/* Keep qty input from expanding or looking weird */
.cart-table input[type="number"]{
  max-width:70px;
}

/* Make totals area sit nicely on the right */
.cart-table + div{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:12px;
}

