/* =========================
   ROOT VARIABLES
========================= */
:root {
  --primary: #ff6a00;
  --primary-dark: #e85d00;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #222;
  --muted: #777;
  --border: #e0e0e0;
}

/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* =========================
   HEADER
========================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header h2 {
  font-size: 1.4rem;
}

header strong {
  font-size: 0.95rem;
}

/* =========================
   TABS / CATEGORIES
========================= */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  border: none;
  background: #eaeaea;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  background: #dcdcdc;
}

.tab.active {
  background: var(--primary);
  color: #fff;
}

/* =========================
   PRODUCT GRID
========================= */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  padding: 1.5rem 2rem;
}

/* =========================
   PRODUCT CARD
========================= */
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
    justify-content: space-between;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* =========================
   PRODUCT IMAGE
========================= */
.card img {
 width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f5f7fa;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;

}

/* Slightly larger screens */
@media (min-width: 1024px) {
  .card img {
    height: 260px;
  }
}

.card img:hover {
  transform: scale(1.02);
  transition: 0.3s ease;
}


.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-modal img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  background: white;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}


/* =========================
   PRODUCT TEXT
========================= */
.card h3 {
  font-size: 1.05rem;
  margin: 0.4rem 0;
}

.price {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.card small {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

/* =========================
   SIZE SELECT
========================= */
.card select {
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
  cursor: pointer;
}

/* =========================
   BUTTONS
========================= */
button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.55rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

/* =========================
   CART / CHECKOUT SECTION
========================= */
.cart {
  background: #fff;
  margin: 2rem;
  padding: 1.5rem 2rem;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.cart h3 {
  margin-bottom: 0.8rem;
}

#cartItems p {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}


/* =========================
   CART ITEM ROW
========================= */
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

/* =========================
   QUANTITY CONTROLS
========================= */
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  background: #f0f0f0;
  color: var(--text);
  border: none;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
}

.qty-control button:hover {
  background: #e0e0e0;
}

.qty-control span {
  width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* =========================
   REMOVE ITEM BUTTON
========================= */
.remove-btn {
  background: transparent;
  border: none;
  color: crimson;
  font-size: 0.8rem;
  cursor: pointer;
}

.remove-btn:hover {
  text-decoration: underline;
}

/* =========================
   CART TOTALS
========================= */
.cart-totals {
  margin-top: 1rem;
  border-top: 2px dashed #eee;
  padding-top: 0.8rem;
  font-size: 0.95rem;
}

.cart-totals div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.cart-totals .total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

/* =========================
   STICKY CHECKOUT BUTTON
========================= */
.checkout-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 0.6rem 1rem;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-bar span {
  font-weight: 600;
}

.checkout-bar button {
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-form input,
.checkout-form select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.checkout-form button {
  margin-top: 8px;
  padding: 12px;
  border-radius: 25px;
  background: #e85d00;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Mobile fallback */
@media (max-width: 600px) {
  .checkout-row {
    grid-template-columns: 1fr;
  }
}






/* =========================
   SCROLL TO TOP BUTTON
========================= */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* =========================
   SHOW SCROLL BUTTON (JS TOGGLES)
========================= */
.scroll-top.show {
  display: flex;
}

/* =========================
   MOBILE REFINEMENTS
========================= */
@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 1fr auto;
    row-gap: 0.4rem;
  }

  .remove-btn {
    grid-column: span 2;
    text-align: right;
  }

  .checkout-bar {
    flex-direction: column;
    gap: 0.4rem;
  }
}


/* =========================
   CHECKOUT FORM
========================= */
form {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

input {
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

form button {
  margin-top: 0.5rem;
}

#checkoutBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #777;
}


.contact-section {
  background: #f5f7fa;
  padding: 40px 20px;
}

.contact-container {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.contact-info {
  padding: 40px;
}

.contact-info h3 {
  margin-bottom: 10px;
}

.contact-info p {
  color: #555;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.info-item span {
  font-size: 22px;
  color: #e85d00;
}

.contact-form {
  padding: 40px;
  background: #fff;
}

.contact-form h3 {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.contact-form textarea {
  resize: none;
  height: 100px;
  margin-bottom: 20px;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: #e85d00;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #cf4f00;
}

.info-item i {
  font-size: 20px;
  color: #e85d00;
  min-width: 30px;
}


.info-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.info-item i {
  font-size: 20px;
  color: #e85d00;
  transition: transform 0.3s ease;
}

.info-item:hover {
  background: #f5f7fa;
  transform: translateY(-3px);
}

.info-item:hover i {
  transform: scale(1.2);
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}


.form-status {
  margin-top: 12px;
  font-size: 14px;
}

.form-status.success {
  color: green;
}

.form-status.error {
  color: red;
}

.map-box {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

 footer {
      text-align: center;
      padding: 30px;
      font-size: 13px;
      color: var(--gray);
    }



/* button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
} */

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .card img {
    height: auto;
    max-height: 260px;
    object-fit: contain;
    background: #f5f7fa;
  }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .products {
    padding: 1rem;
  }

  .cart {
    margin: 1rem;
    padding: 1.2rem;
  }
}
