:root {
  --brand-orange: #f85606; /* Daraz-ish */
  --brand-dark: #222;
  --brand-light: #fff;
  --radius: 8px;
  --gap: 1rem;
  --max-width: 1200px;
}
/* Global Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f85606;
  padding: 10px 20px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .logo a {
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.main-header .nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.main-header .nav-links a:hover {
  color: #ffe0cc;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.4;
  color: #333;
  background: #f8f8f8;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: var(--brand-orange);
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
.sr-only {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.hidden {
  display: none !important;
}
/* Logo Text Styles */
.logo {
  padding: 10px 0;
}

.logo-text {
  text-decoration: none;
  display: inline-block;
}

.logo-name {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
}

.logo-tagline {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #f2f2f2;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
  text-align: center;
}

/* For dark headers */
.header-dark .logo-name {
  color: #fff;
}

.header-dark .logo-tagline {
  color: rgba(255, 255, 255, 0.7);
}

/* Hover effects */
.logo-text:hover .logo-name {
  color: #f85606; /* Your brand color */
}

.logo-text:hover .logo-tagline {
  color: #f85606;
}

/* Header ---------------------------------------------------- */
.top-header {
  background: var(--brand-orange);
  color: var(--brand-light);
  padding: 0.5rem 1rem;
}
.top-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand-light);
}
.search-form {
  flex: 1;
  max-width: 500px;
  display: flex;
  gap: 0.25rem;
}
.search-form input {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-size: 1rem;
}
.search-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: var(--brand-light);
}
.cart-link {
  color: var(--brand-light);
  font-weight: bold;
}

.category-nav {
  text-align: center;
  padding: 0.5rem;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.category-nav .cat-btn {
  margin: 0.25rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.9rem;
}
.category-nav .cat-btn.active {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}
/* Header */
.header {
  background: #f85606;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.search-bar {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 20px;
}

.search-bar input {
  padding: 8px;
  width: 60%;
  border: none;
  border-radius: 4px 0 0 4px;
}

.search-bar button {
  padding: 8px 15px;
  border: none;
  background: #333;
  color: #fff;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}

/* Categories */
.categories {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #ddd;
}

.categories a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

.categories a:hover {
  color: #f85606;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f2f2f2; /* add background for empty space */
  border-radius: 6px;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.price {
  font-weight: bold;
  color: #f85606;
}

.btn {
  display: inline-block;
  padding: 5px 10px;
  background: #f85606;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 5px;
  font-size: 0.9rem;
}

.btn:hover {
  background: #d44d04;
}

/* Footer */
.footer {
  text-align: center;
  background: #333;
  color: #fff;
  padding: 15px 0;
  margin-top: 20px;
}

/* Product Page --------------------------------------------- */
.product-page {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .product-page {
    grid-template-columns: 1fr;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.gallery-main-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
  border: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
}
.gallery-main-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.zoom-lens {
  position: absolute;
  border: 2px solid rgba(0, 0, 0, 0.3);
  width: 100px;
  height: 100px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.2);
}
.zoom-result {
  width: 300px;
  height: 300px;
  border: 1px solid #ddd;
  background-repeat: no-repeat;
  background-color: #fff;
}
.thumb-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.thumb-btn {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
}
.thumb-btn.active {
  border-color: var(--brand-orange);
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info-panel {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
.product-info-panel h1 {
  margin-top: 0;
}
.variant-block {
  margin: 1rem 0;
}
.variant-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.variant-pill {
  padding: 0.35rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  cursor: pointer;
  background: #fafafa;
  font-size: 0.95rem;
}
.variant-pill.active {
  border: 2px solid var(--brand-orange);
  background: #fff;
}
.variant-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}
.variant-color-swatch.active {
  border-color: var(--brand-orange);
}

.qty-block {
  margin: 1.5rem 0;
}
.quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: var(--radius);
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
  padding: 0;
}
.total-line {
  font-size: 1.25rem;
  margin: 1rem 0;
}

/* Cart Page ------------------------------------------------- */
.cart-page {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}
.cart-items {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
.cart-item-imgwrap {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: var(--radius);
}
.cart-item-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-item-name {
  margin: 0;
  font-weight: bold;
}
.cart-item-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}
.cart-item-qtywrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-item-qtywrap button {
  width: 24px;
  height: 24px;
  padding: 0;
}
.cart-item-remove {
  margin-left: 1rem;
  font-size: 0.85rem;
  color: #e53935;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}
.cart-summary {
  text-align: right;
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Footer ---------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  color: #fff;
  text-decoration: none;
  padding: 8px;
  font-weight: 500;
  transition: color 0.3s;
}

.dropdown > a:hover {
  color: #ffe0cc;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f26e35;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 4px;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #040101;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #b36b3e;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== Hero Carousel ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  max-height: 60vh; /* Limits maximum height */
  height: 400px; /* Default height for desktop */
  overflow: hidden;
  margin: 10px auto 30px auto;
  border-radius: 8px;
}

.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows full image without cropping */
  object-position: center;
  display: block;
  background-color: #f5f5f5; /* Fallback color */
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .hero-carousel {
    height: 350px;
  }
}

@media (max-width: 992px) {
  .hero-carousel {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .hero-carousel {
    height: 200px;
    max-height: 40vh; /* Smaller max height on mobile */
  }
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots button.active {
  background: #f85606;
}
/* Add this after .carousel-dots styles */
.carousel-progress {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.progress-bar {
  height: 100%;
  background: #f85606;
  width: 0%;
  transition: width 0.1s linear;
}
/* Responsive Carousel */
@media (max-width: 768px) {
  .hero-carousel {
    aspect-ratio: 3/2; /* Different ratio for tablets if needed */
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    aspect-ratio: 1/1; /* Square ratio for mobile if needed */
  }
}
