* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

:root {
  --ticker-item-time: 15s; /* how long each <p> should take */
  --ticker-items: 3; /* number of <p> messages */
}

img {
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
  margin: 0;
  padding: 20px;
}

/* header */
.site-header {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  /* background with overlay */
  background: linear-gradient(
      rgba(0, 0, 0, 0.6),
      /* top overlay */ rgba(0, 0, 0, 0.6) /* bottom overlay */
    ),
    url(./background.jpg);

  background-size: cover; /* fills container */
  background-position: center; /* centers image */
  background-repeat: no-repeat;

  padding: 1rem 2rem;
  border-bottom: 2px solid #eee;
  color: #fff; /* make sure text is readable */
}

.logo img {
  height: 50px;
}

/* Promo Banner */
.promo-banner {
  flex: 1;
  margin-left: 2rem;
  text-align: center;
}

/* Intro text */
.promo-banner .intro {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Sales Alert */
.sales-alert h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: transparent; /* make fill invisible */
  -webkit-text-stroke: 1px #fff; /* outline color */
  text-stroke: 1px #fff; /* fallback for some browsers */

  text-shadow: 0 0 1px hsl(19, 52%, 44%), 0 0 2px hsl(19, 52%, 54%),
    0 0 3px hsl(19, 52%, 64%), 0 0 4px hsl(19, 52%, 74%); /* glowing layers */
}

/* Ticker effect */
.ticker {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to right,
    transparent,
    transparent,
    #5c4033,
    #5c4033,
    #5c4033,
    transparent,
    transparent
  );
  border-radius: 6px;
  padding: 0.5rem;
  width: 95%;
  max-width: 900px;
  margin: 0 auto;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText calc(var(--ticker-item-time) * var(--ticker-items))
    linear infinite;
  padding-right: 4rem;
}

.ticker-content::after {
  content: attr(data-text); /* duplicate text via attribute */
  padding-left: 4rem;
}

.ticker-content p {
  display: inline-block;
  margin: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Searchbar */
.input-container {
  margin: 2rem 0;
  display: flex;
  align-items: center;
  background: rgba(216, 214, 214, 0.493);
  max-width: 90rem;
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(216, 214, 214, 0.493);
}
.input-container .search-bar {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.9rem;
  outline: none;
  border: none;
  background: transparent;
  color: #777;
  border-radius: inherit;
}
.input-container .search-bar::placeholder {
  color: #777;
}
.input-container .search-icon {
  font-size: 2.5rem;
  padding: 0 2rem;
  cursor: pointer;
}
.title {
  text-align: start;
  margin-bottom: 20px;
}

.wrapper {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 2rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; /* stick to top */
  right: 0; /* stick to right (or left: 0 for left sidebar) */
  width: 7rem;
  height: 100vh; /* full viewport height */
  transition: width 0.4s ease, min-height 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start; /* start items from top */
  gap: 0.8rem;
  padding: 1rem; /* optional, spacing inside sidebar */
  z-index: 1000; /* stay on top of content */
  overflow-y: auto; /* scroll if content exceeds height */
}

.sidebar-icons {
  background: #e4e2e2;
  width: 100%;
  padding: 0 0.2rem;
  margin: 0;
  border: 1px solid rgba(216, 214, 214, 0.493);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-radius: 2rem;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Sidebar items */
.sidebar-icon {
  display: flex;
  align-self: flex-start;
  width: 100%;
}

.sidebar-icon a,
.sidebar-arrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  margin: 0.8rem 0;
  border-radius: 0.5rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  width: 100%;
}

.sidebar-icon a:hover,
.sidebar-icon a.active {
  border-left: 3px solid #5c4033;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar-icon a:hover .ph,
.sidebar-icon a.active .ph,
.sidebar-icon a:hover .sidebar-icon-name,
.sidebar-icon a.active .sidebar-icon-name {
  color: #5c4033;
}

.sidebar-icon-name {
  color: #333;
  font-weight: 600;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.4s ease, color 0.3s ease;
}

.sidebar.show-names {
  width: 15rem;
}

.sidebar.show-names .sidebar-icon-name {
  opacity: 1;
}

.sidebar .ph {
  font-size: 2.5rem;
  color: #333;
  transition: color 0.3s ease;
}

/* Cart badge */
.sidebar-icon .cart-badge {
  position: absolute;
  top: 0;
  right: 20px;
  background: #5c4033;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  min-width: 20px;
  min-height: 20px;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

/* Arrow toggle */
.sidebar-arrow {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ececec;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.sidebar-arrow i {
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Cart product list */
.cart-product-list {
  position: fixed;
  top: 2.5rem;
  right: 8.5rem;
  width: 30rem;
  height: 54rem;
  padding: 2rem 1rem;
  border-radius: 1.5rem;
  background: white; /* base overlay */
  overflow: hidden; /* so pseudo doesn’t leak out */
  display: none;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
  outline: 2px solid #5c40338a;
}

.cart-product-list::before {
  content: "";
  position: absolute;
  inset: 0; /* covers the container */
  background: url(./logo.jpg) top/cover no-repeat;
  opacity: 0.08; /* control faintness here */
  z-index: -1; /* keep it behind the content */
}

.cart-product-list h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  text-align: center;
}

.customer-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.customer-info input,
.customer-info textarea,
.customer-info select {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.customer-info textarea {
  resize: vertical;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.3rem;
  border-bottom: 1px solid #ccc;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cart-item-info {
  flex: 1;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.quantity-controls button {
  width: 25px;
  height: 25px;
  border: none;
  background: #5c4033;
  color: white;
  border-radius: 0.3rem;
  cursor: pointer;
}

.cart-product-list.open {
  display: flex;
}

.cart-product-list .list-of-product {
  flex: 1;
  overflow-y: auto;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

.cart-product-list .list-of-product::-webkit-scrollbar {
  width: 6px;
}

.cart-product-list .list-of-product::-webkit-scrollbar-thumb {
  background: rgba(92, 64, 51, 0.6);
  border-radius: 3px;
}

.cart-product-list .list-of-product::-webkit-scrollbar-track {
  background: transparent;
}

.icon-cart-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
}

/* Calculate / Checkout */
.calculate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.cart-discount {
  color: green;
  font-weight: bold;
  font-size: 0.8rem;
}

.total-price {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
}
.cart-buttons {
  display: flex;
  position: absolute;
  bottom: 0.5rem;
  right: 1.5em;
  gap: 1rem;
}

.btn-clear-cart {
  background: #c0392b;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn-clear-cart:hover {
  background: #e74c3c;
}

.btn-checkout {
  background: hsl(120, 100%, 15%);
  color: #fff;
  padding: 0.5rem 1.6rem;
  border-radius: 1rem;
  border: 0;
  outline: 0;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.3s ease;
}

.btn-checkout:disabled {
  background: hsla(120, 100%, 25%, 0.425);
  cursor: not-allowed;
}
/* error */
.no-products-found {
  display: flex;
  height: 30rem;
  align-items: center;
  justify-content: center;
}
.cart-error {
  position: fixed;
  padding: 1rem 2.5rem;
  top: 2rem;
  left: 5rem;
  /* display: none; */
}
.cart-error.error {
  display: block;
  z-index: 100;
  background: red;
  color: white;
  top: 2rem;
  left: 5rem;
}

/* Product cards */
.product-grid {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  width: 100%;
  margin: auto;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: contain;
  border-radius: 6px;
}

.product-name {
  margin: 10px 0 5px;
  font-size: 16px;
}

.product-price {
  color: #333;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Container for the controls */
.variant-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* Arrow buttons */
.variant-btn {
  background: #8b4513; /* deep brown like leather */
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}

/* Hover effect */
.variant-btn:hover {
  background: #5e3010; /* darker shade of brown */
  transform: scale(1.05);
}

/* Optional: focus outline for accessibility */
.variant-btn:focus {
  outline: 2px solid #ccc;
}

/* Disabled state */
.variant-btn:disabled {
  background: #ccc; /* light gray */
  color: #666; /* darker gray text */
  cursor: not-allowed; /* show it's unclickable */
  opacity: 0.6; /* make it look faded */
  transform: none; /* remove hover scale effect */
}

/* Optional: prevent hover effects when disabled */
.variant-btn:disabled:hover {
  background: #ccc;
  color: #666;
  transform: none;
}

/* Product card size dropdown */
.size-select {
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s ease;
}

.size-select:hover {
  border-color: #8b4513; /* highlight color */
}

.size-select:focus {
  outline: none;
  border-color: #444;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.product-card .add-to-cart {
  margin-top: 1rem;
  display: inline-block;
  background: #5c4033; /* your site’s brown tone */
  color: #fff; /* white text for contrast */
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-card .add-to-cart:hover {
  background: #744f3f; /* lighter brown on hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.product-card .add-to-cart:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ========== footer ============ */
.site-footer {
  background: linear-gradient(to right, #2c2c2c, #1a1a1a);
  color: #fff;
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
}
.site-footer p {
  font-size: 1rem;
  font-weight: 600;
  color: #ccc;
  line-height: 1.5;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content h3,
.footer-content h4 {
  margin-bottom: 0.8rem;
  color: #dfb09b; /* matches sales alert color */
}

/* Quick Links */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 0.4rem 0;
}

.footer-links ul li a {
  color: #ccc;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #dfb09b;
}

/* Contact Section */
.footer-contact {
  flex: 1;
}

.footer-contact .address {
  margin-bottom: 1rem;
}

/* Contact Icons */
.contact-icons {
  gap: 1.5rem;
}

.contact-icons .contact-link {
  font-size: 2rem; /* bigger icons */
  color: #dfb09b;
  transition: color 0.3s, transform 0.3s;
}

.contact-icons .contact-link:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #aaa;
}

/* ========= CHECKOUT PAGE ========= */
.checkout-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.checkout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b4513; /* brown */
}
.checkout-header h2 {
  margin: 0;
}
.checkout-header .tick {
  color: green;
  font-size: 1.5rem;
}
.checkout-container p {
  margin: 15px 0;
  font-size: 1rem;
}

.checkout-container h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: hsl(19, 52%, 44%);
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
table,
th,
td {
  border: 1px solid #ccc;
}
th,
td {
  padding: 12px;
  text-align: left;
}
th {
  background: #f5f5f5;
}
.total-row {
  font-weight: bold;
}

.whatsapp-order-btn {
  display: inline-flex;
  align-items: center;
  background-color: #25d366; /* WhatsApp green */
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.whatsapp-order-btn:hover {
  background-color: #1ebe57;
}
/* See More Button */
.see-more-btn {
  display: inline-block;
  margin: 1rem auto;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #8b4513; /* Brown shade (matches your theme) */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.see-more-btn:hover {
  background: #6f3510; /* Darker brown on hover */
  transform: translateY(-2px);
}

.see-more-btn:active {
  transform: scale(0.98);
}

/* ========== DARK MODE ========== */
body.darkmode {
  background: #1e1e1e;
  color: #f7f7f7;
}

body.darkmode .input-container .search-bar,
body.darkmode .input-container .search-bar::placeholder {
  color: white;
}

body.darkmode .sidebar-icons {
  background: #2c2c2c;
  border-color: #444;
}
body.darkmode .cart-product-list {
  color: #555;
}
body.darkmode .product-name {
  color: #555;
}

body.darkmode .sidebar .ph,
body.darkmode .sidebar-icon-name {
  color: #f7f7f7;
}

body.darkmode .sidebar-icon a:hover,
body.darkmode .sidebar-icon a.active {
  border-left: 3px solid #ffcdb2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

body.darkmode .sidebar-icon a:hover .ph,
body.darkmode .sidebar-icon a.active .ph,
body.darkmode .sidebar-icon a:hover .sidebar-icon-name,
body.darkmode .sidebar-icon a.active .sidebar-icon-name {
  color: #ffcdb2;
}

body.darkmode .sidebar-arrow {
  background: #3a3a3a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

body.darkmode .sidebar-arrow i {
  color: #ffcdb2;
  transition: color 0.3s ease, transform 0.3s ease;
}

body.darkmode .sidebar-arrow:hover i {
  color: #fff;
}

body.darkmode main {
  color: #555;
}

/* ======= Tablets ======= */
@media screen and (max-width: 768.2px) {
  body {
    padding: 20px 0 0;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4.5rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border-radius: 0;
    z-index: 1000;
    overflow: hidden;
    background: #f7f7f7;
    border-top: 1px solid #ccc;
  }

  .sidebar-icons {
    flex-direction: row;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar-icon {
    justify-content: center;
    margin: 0;
    margin-right: 20px;
  }

  .sidebar-icon a {
    justify-content: center;
    padding: 0;
    width: 70%;
  }

  .sidebar-icon-name,
  .sidebar-arrow {
    display: none;
  }

  .sidebar .cart-badge {
    top: -6px;
    right: -6px;
    font-size: 0.75rem;
    min-width: 18px;
    min-height: 18px;
    padding: 4px;
  }

  body.darkmode .sidebar {
    background: #2c2c2c;
    border-top: 1px solid #444;
  }
  /* ========= site header ========= */
  .site-header {
    padding: 1 0;
    margin-top: 2rem;
    height: 40vh;
    max-width: 100%;
    align-items: center;
    justify-content: flex-start;
  }

  /* Adjust text/logo inside header */

  .promo-banner {
    max-width: 100%;
    margin-left: 0;
    text-align: start;
  }
  .site-header .intro {
    line-height: 1.3;
    font-size: 1.3rem;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
  }
  .site-header h2 {
    width: 100%;
    color: hsl(19, 52%, 44%);
    font-size: 3rem;
    text-align: center;
    text-shadow: 0 0 0.3px hsl #ab5b36 (19, 52%, 44%),
      0 0 0.4px hsl(19, 52%, 54%), 0 0 0.5px hsl(19, 52%, 64%),
      0 0 0.6px hsl(19, 52%, 74%);
  }
  .ticker {
    margin-top: 2rem;
  }

  .input-container {
    max-width: 80%;
    margin: 1rem;
  }
  .input-container .search-bar {
    width: 80%;
    padding: 1rem;
    font-size: 1.5rem;
  }
  .input-container .search-icon {
    font-size: 2.2rem;
  }
  .title {
    text-align: center;
  }

  .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cart-product-list.open {
    position: fixed;
    max-width: 90vw;
    max-height: 80%;
    top: 5rem;
    left: 3rem;
    outline: 2px solid #5c40338a;
  }
  .total-price {
    font-size: 1.3rem;
  }
  .footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body.darkmode .site-header {
    border-bottom: 1px solid #444;
  }

  body.darkmode .site-header .title {
    color: #fff;
  }
}

/* small screen */
@media screen and (max-width: 600px) {
  body {
    padding: 0;
  }
  .sidebar {
    max-width: 100%;
  }

  .site-header {
    height: 50vh;
    max-width: 100%;
    align-items: center;
    justify-content: center;
  }
  .intro {
    text-align: center;
  }
  .sales-alert {
    margin-top: 1.5rem;
  }
  .sales-alert h2 {
    font-size: 3rem;
    text-align: center;
  }
  .ticker {
    margin-top: 1rem;
  }

  .input-container {
    max-width: 80%;
    margin: 1rem;
  }
  .input-container .search-bar {
    width: 70%;
    padding: 0.7rem;
    font-size: 1.3rem;
  }
  .input-container .search-icon {
    font-size: 2rem;
  }
  .cart-product-list {
    outline: 2px solid #5c40338a;
  }

  .cart-product-list.open {
    max-width: 85vw;
    max-height: 80%;
  }
  .site-footer {
    max-width: 100%;
  }
  .footer-content {
    max-width: 400px;
  }
}
