* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: #ffffff;
}

.site-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 30px 80px repeat(20, auto);
  position: relative;
}

.header-top {
  grid-column: 1 / -1;
  grid-row: 1 / 2;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  place-items: center;
  width: 100%;
  position: relative;
  z-index: 100;
  height: 30px;
  transition: background 0.3s ease;
}

.header-top .txt {
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

header {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: 200px auto 200px;
  align-items: center;
  height: 80px;
  background-color: #000000;
  top: 0;
  position: relative;
  width: 100%;
  z-index: 1100;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Sticky look (always black) */
header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000; /* stays black */
  color: #fff;
  z-index: 999;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

/* Slide out when hiding */
header.hide,
.header-top.hide {
  transform: translateY(-100%);
}

.close-btn {
  display: none;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.menu-icon i {
  font-size: 22px;
  cursor: pointer;
  color: #f8f8f8;
}

/* --- Logo --- */
.header-logo,
.logo-img {
  display: flex;
  align-items: center;
  height: 100%;
  margin-bottom: 5px;
}

.logo-img img {
  position: absolute;
  margin-left: 20px;
  max-height: 220px;
  width: auto;
}

.header-tags,
.header-icons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-tags ul,
.header-icons ul {
  display: flex;
  list-style: none;
}

.header-tags a {
  text-decoration: none;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Karla", sans-serif;
  text-transform: uppercase;
  color: #ffffff;
}

.header-tags .nav-link.active,
.header-tags a:hover {
  color: #fc7753;
  text-decoration: underline 2px;
}

.header-icons a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0 6px;
}

.header-icons i {
  font-size: 22px;
  cursor: pointer;
  color: #ffffff;
}

.header-icons li:hover a {
  color: #fc7753;
}

#cart-count {
  background: red;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(40%, -50%);
}

.cart-wrapper {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  color: var(--text-color, #333);
}

.cart-wrapper h2 {
  font-size: 28px;
  margin: 0 auto 25px auto;
  padding-bottom: 8px;
  font-weight: 700;
  color: var(--primary-color, #2c3e50);
  display: table;
  text-align: center;
}

/* Cart items container */
#cart-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

/* Each cart item */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  background-color: #fafafa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Item info section */
.item-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.item-info img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  width: 60px;
  height: 80px;
}

.item-info strong {
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
  color: var(--primary-color, #2c3e50);
}

.item-info small {
  color: var(--text-light, #7f8c8d);
}

/* Quantity input styling */
.qty-input {
  width: 50px;
  margin: 0 8px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--secondary-color, #000000);
  font-size: 14px;
  text-align: center;
  outline-offset: 2px;
  transition: border-color 0.3s;
}

.qty-input:focus {
  border-color: var(--accent-color, #3498db);
}

/* Remove button */
.remove-btn {
  background-color: transparent;
  border: 1px solid #fc7753;
  font-size: 18px;
  cursor: pointer;
  color: var(--secondary-color, #fc7753);
  transition: color 0.3s ease;
  padding: 6px 10px;
  border-radius: 6px;
}

.remove-btn:hover {
  color: #e85f3c;
  background-color: #feeae4;
}

.view-btn {
  background-color: transparent;
  color: var(--secondary-color, #fc7753);
  border: 1px solid #fc7753;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s ease;
}

.view-btn:hover {
  color: #e85f3c;
  background-color: #feeae4;
}

/* Cart summary */
.cart-summary {
  max-width: 300px;
  margin-left: auto;
  padding: 15px 20px;
  border-radius: 10px;
  background-color: #000000;
  color: #fff;
  font-weight: 600;
}

.cart-summary p {
  font-size: 18px;
  margin-bottom: 12px;
}

.cart-summary p strong {
  font-size: 20px;
  font-weight: 900;
}

.footer {
  grid-column: 1 / -1;
  grid-row: 4 / 5;
  background-color: #1c1c1c;
  color: #eee;
  padding: 50px 30px 20px;
  font-family: "Segoe UI", sans-serif;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-logo img {
  width: 200px;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.footer-tagline {
  font-size: 14px;
  color: #ccc;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

.footer-links h4,
.footer-newsletter h4,
.footer-social h4 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 18px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 8px 0;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-newsletter p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-newsletter form {
  display: flex;
  background: #333;
  border-radius: 30px;
  overflow: hidden;
}

.footer-newsletter input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.footer-newsletter input::placeholder {
  color: #aaa;
}

.footer-newsletter button {
  background-color: #ffaa2c;
  border: none;
  padding: 0 20px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.footer-newsletter button:hover {
  background-color: #f57f17;
}

.footer-social .social-icons {
  display: flex;
  gap: 12px;
}

.footer-social .social-icons a {
  color: #ccc;
  font-size: 18px;
  transition: color 0.3s;
}

.footer-social .social-icons a:hover {
  color: #ffaa2c;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #333;
}

.nav-icons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #ddd;
  z-index: 1;
  display: none;
}
.nav-icons a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  transition: color 0.3s ease;
}
.nav-icons a span {
  margin: 0;
  line-height: 1.2;
}
.nav-icons a .material-icons,
.nav-icons a .material-icons-outlined {
  font-size: 30px;
  margin-bottom: 2px;
}
.nav-icons a:hover,
.nav-icons a.active {
  color: #00a878;
}
.nav-icons a .material-icons {
  display: none;
}
.nav-icons a.active .material-icons {
  display: inline-block;
}
.nav-icons a.active .material-icons-outlined {
  display: none;
}

/* Extra small devices (phones, portrait) */
@media screen and (max-width: 576px) {
  header {
    grid-template-columns: auto;
    padding: 0 15px;
    height: auto !important;
    overflow: visible !important;
  }

  /* menu + icons hide normal state */
  .header-tags {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-icons {
    display: flex;
    flex-direction: row;
  }

  .header-tags ul {
    flex-direction: column;
    gap: 25px;
  }

  .header-tags a {
    font-size: 20px;
    color: #fff;
  }

  .header-tags.active {
    right: 0;
  }

  .header-icons {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .header-logo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0 10px;
    width: 100%;
  }

  .logo-img img {
    position: static !important;
    margin: 0 auto;
    max-height: 60px;
    width: auto;
    display: block;
  }

  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    display: block;
  }

  .carousel-slide {
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }

  .carousel-content {
    max-width: 90%;
  }

  .carousel-content h2 {
    font-size: 2.5rem;
  }

  .carousel-content h3 {
    font-size: 2rem;
  }

  .carousel-content p {
    font-size: 1.5rem;
  }

  .feature-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature img {
    height: 60px;
    width: 60px;
  }

  .category-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .category-box.tall {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .category-heading h2 {
    font-size: 20px;
  }

  .category-heading p {
    font-size: 26px;
  }

  .category-box {
    text-align: center;
    align-items: center;
    padding: 20px;
    height: 320px;
  }

  .desc {
    text-align: center;
  }

  /* Product grid 1 card per row for very small screens */
  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Small devices (phones landscape, small tablets portrait) */
@media (min-width: 576px) and (max-width: 768px) {
  header {
    grid-template-columns: auto;
    padding: 0 15px;
    height: auto !important;
    overflow: visible !important;
  }

  .header-tags {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-icons {
    display: flex;
    flex-direction: row;
  }

  .header-tags ul {
    flex-direction: column;
    gap: 25px;
  }

  .header-tags a {
    font-size: 20px;
    color: #fff;
  }

  .header-tags.active {
    right: 0;
  }

  .header-icons {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .header-logo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0 10px;
    width: 100%;
  }

  .logo-img img {
    position: static !important;
    margin: 0 auto;
    max-height: 60px;
    width: auto;
    display: block;
  }

  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    display: block;
  }

  .carousel-slide {
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }

  .carousel-content {
    max-width: 90%;
  }

  .carousel-content h2 {
    font-size: 2.5rem;
  }

  .carousel-content h3 {
    font-size: 2rem;
  }

  .carousel-content p {
    font-size: 1.5rem;
  }

  .feature-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .feature img {
    height: 70px;
    width: 70px;
  }

  .category-wrapper {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .category-box.tall {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .category-heading h2 {
    font-size: 24px;
  }

  .category-heading p {
    font-size: 30px;
  }

  .category-box {
    padding: 20px;
    height: 300px;
  }

  .discount {
    font-size: 14px;
  }

  .category-box h3 {
    font-size: 20px;
  }

  .desc {
    font-size: 12px;
    width: 100%;
  }

  .btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* Product grid: 2 cards per row */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Medium devices (tablets portrait) */
@media (min-width: 768px) and (max-width: 992px) {
  header {
    grid-template-columns: auto;
    padding: 0 15px;
    height: auto !important;
    overflow: visible !important;
  }

  /* menu + icons hide normal state */
  .header-tags {
    position: fixed;
    top: 0;
    right: -100%; /* hidden initially */
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-icons {
    display: block;
  }

  .nav-icons {
    display: flex;
    flex-direction: row;
  }

  .header-tags ul {
    flex-direction: column;
    gap: 25px;
  }

  .header-tags a {
    font-size: 20px;
    color: #fff;
  }

  /* when active */
  .header-tags.active {
    right: 0;
  }

  .header-icons {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .header-logo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0 10px;
    width: 100%;
  }

  .logo-img img {
    position: static !important;
    margin: 0 auto;
    max-height: 60px;
    width: auto;
    display: block;
  }

  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    display: block;
  }

  .carousel-slide {
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }

  .carousel-content {
    max-width: 90%;
  }

  .carousel-content h2 {
    font-size: 2.5rem;
  }

  .carousel-content h3 {
    font-size: 2rem;
  }

  .carousel-content p {
    font-size: 1.5rem;
  }
  .feature-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 30px;
  }

  .feature img {
    height: 75px;
    width: 75px;
  }

  .category-wrapper {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  .category-box.tall {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .category-heading h2 {
    font-size: 24px;
  }

  .category-heading p {
    font-size: 30px;
  }

  .category-box:nth-child(1) img {
    left: 30px;
    bottom: -150px;
    max-height: 330px;
    max-width: 330px;
  }

  .category-box:nth-child(2) img {
    left: 20px;
    bottom: -170px;
    max-height: 360px;
    max-width: 360px;
  }

  .category-box:nth-child(3) img {
    left: 20px;
    bottom: -100px;
    max-height: 300px;
    max-width: 300px;
  }

  .category-box:nth-child(4) img {
    left: 50px;
    bottom: -150px;
    max-height: 330px;
    max-width: 330px;
  }

  .category-box:nth-child(5) img {
    left: 60px;
    bottom: -100px;
    max-height: 280px;
    max-width: 280px;
  }

  .category-box {
    padding: 20px;
    height: 300px;
  }

  .discount {
    font-size: 14px;
  }

  .category-box h3 {
    font-size: 20px;
  }

  .desc {
    font-size: 14px;
    width: 100%;
  }

  .btn {
    padding: 6px 14px;
    font-size: 12px;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  header {
    grid-template-columns: 200px auto 130px;
  }

  .logo-img img {
    max-height: 170px;
  }

  .header-icons i {
    font-size: 20px;
  }

  .feature-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-wrapper {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(2, 300px);
  }

  .category-box.tall {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .category-box:nth-child(1) img {
    left: 70px;
    bottom: -150px;
    max-height: 330px;
    max-width: 330px;
  }

  .category-box:nth-child(2) img {
    left: 40px;
    bottom: -170px;
    max-height: 360px;
    max-width: 360px;
  }

  .category-box:nth-child(3) img {
    left: 40px;
    bottom: -100px;
    max-height: 300px;
    max-width: 300px;
  }

  .category-box:nth-child(4) img {
    left: 50px;
    bottom: -150px;
    max-height: 330px;
    max-width: 330px;
  }

  .category-box:nth-child(5) img {
    left: 60px;
    bottom: -100px;
    max-height: 320px;
    max-width: 320px;
  }
}
