@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #254d4d;
  --text-dark: #171717;
  --text-light: #737373;
  --extra-light: #f4f6f5;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Merriweather", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--primary-color);
}

.section__description {
  font-size: 1.1rem;
  color: var(--text-light);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--header-font);
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  z-index: 9;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo .logo {
  color: var(--white);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--primary-color);
  transition: 0.5s;
  z-index: -1;
  transform: translateY(-100%);
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  font-weight: 500;
  color: var(--white);
}

.nav__search {
  display: none;
}

.header__container {
  display: grid;
  overflow: hidden;
}

.header__image {
  grid-area: 1/1/2/2;
}

.header__image img {
  max-width: 850px;
  margin-left: auto;
}

.header__content {
  grid-area: 1/1/2/2;
  display: flex;
  align-items: center;
}

.header__content > div {
  max-width: 530px;
  padding: 4.2rem 0.2rem;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.header__content h1 {
  margin-bottom: 0.75rem;
  font-size: 4rem;
  font-weight: 500;
  font-family: var(--header-font);
  color: var(--primary-color);
}

.header__content p {
  font-size: 1.2rem;
  color: var(--text-light);
}

.deals__container {
  display: grid;
  gap: 1rem;
}

.deals__card span {
  display: inline-block;
  margin-bottom: 0.1rem;
  font-size: 2rem;
}

.deals__card h4 {
  margin-bottom: 0.1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.deals__card p {
  color: var(--text-light);
}

.about__header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__header .section__description {
  max-width: 1000px;
}

.about__btn {
  display: inline-block;
  width: fit-content;
  padding: 12px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
}

.about__content {
  margin-top: 0.25rem;
  display: grid;
  gap: 1rem;
}

.about__grid {
  display: grid;
  max-width: 3300px;
  margin-inline-start: 2rem;
}
.about__image {
  overflow: hidden;
  max-width: 800px;
  max-height: 350px;
  margin-left: auto;
}

.about__card h3 {
  margin-bottom: 0.1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
}

.about__card h4 {
  margin-bottom: 0.1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
}

.about__card p {
  color: var(--text-light);
}
/* PRODUCTS PAGE */

.product__grid{
  width: 100%;
  margin: auto auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product__card{
  background:white;
  padding: 20px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.product__card:hover{
  transform: translateY(-5px);
}

.product__card img{
  width: 100%;
  height: 190px;
  object-fit: contain;

  border-radius: 10px;
}

.product__card h4{
  margin-top: 15px;
  font-size: 1.1rem;
  color:var(--primary-color);
}


.product__card p{
  margin-top: 10px;
  font-weight: bold;
  color:var(--primary-color);
}

/* RESPONSIVE */

@media (max-width: 1000px){

  .product__grid{
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px){

  .product__grid{
    grid-template-columns: 1fr;
  }

}
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination button {
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
}

.footer {
  background-color: var(--primary-color);
}

.footer__container {
  display: grid;

  /* REDUCED FOOTER WIDTH */
  width: 200%;
  max-width: 1300px;

  margin: auto;

  /* BETTER SPACING */
  gap: 1rem;

  /* SMALLER INNER SPACING */
  padding: 3rem 1rem;
}

.footer__logo {
  margin-bottom: 0.5rem;
}

.footer__logo .logo {
  color: var(--white);
}

.footer__col p {
  margin-bottom: 1rem;
  color: var(--extra-light);
  opacity: 0.8;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  font-size: 1.5rem;
  color: var(--white);
}

.footer__socials a:hover {
  opacity: 0.5;
}

.footer__col h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.footer__links {
  display: grid;
  gap: 0.5rem;
}

.footer__links a {
  color: var(--extra-light);
  opacity: 0.85;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__bar {
  padding: 0.5rem;
  font-size: 0.8rem;
  color: var(--extra-light);
  opacity: 0.8;
  text-align: center;
}

/* MEDIA QUERIES */

@media (width > 540px) {
  .deals__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__logo .logo {
    color: var(--primary-color);
  }

  .nav__links {
    position: static;
    padding: 0;
    width: fit-content;
    flex-direction: row;
    gap: 3rem;
    background-color: transparent;
    transform: none;
  }

  .nav__links a {
    color: var(--text-dark);
  }

  .nav__links a:hover {
    color: var(--primary-color);
  }

  .nav__search {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
  }

  .nav__search input {
    padding-block: 5px;
    outline: none;
    border: none;
    width: 0;
    font-size: 1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--text-light);
    transition: 0.3s;
  }

  .nav__search.open input {
    width: 100%;
    max-width: 15rem;
  }

  .nav__search span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
  }

  .header__container {
    padding-top: 0;
  }

  .deals__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .deals__card:nth-child(1) {
    grid-column: 1/4;
  }

  .about__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .about__content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__image {
    grid-area: 1/2/2/3;
  }

  .product__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width > 1024px) {
  .deals__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .deals__card:nth-child(1) {
    grid-column: unset;
  }

  .about__grid {
    gap: 4rem 2rem;
  }
}
/* SINGLE PRODUCT PAGE */

.single__product{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.single__image img{
  width: 100%;
  max-width: 420px;
  height: 320px;
  object-fit: contain;
  border-radius: 15px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.single__content h1{
  font-size: 2rem;
  margin-bottom: 15px;
  color: #254d4d;
}

.single__description{
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.single__content h2{
  margin-bottom: 20px;
  color: #111;
}

.single__buttons{
  display: flex;
  gap: 15px;
}

.single__buttons button{
  padding: 12px 20px;
  border: none;
  background: #254d4d;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.single__buttons button:hover{
  opacity: 0.9;
}

/* PRODUCT PAGE BUTTONS */

.product__buttons{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.product__buttons button{
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

/* Add to Cart button */
.product__buttons button:nth-child(1){
  background: #254d4d;
  color: white;
}

/* Buy Now button */
.product__buttons button:nth-child(2){
  background: #db8c8c;
  color: white;
}

/* optional hover effects */
.product__buttons button:hover{
  opacity: 0.85;
}
/* CART PAGE WRAPPER */
#cart-container{
  width: 80%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CART ITEM CARD */
.cart__item{
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.cart__item:hover{
  transform: translateY(-3px);
}

/* IMAGE */
.cart__item img{
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  background: #473f3f;
  padding: 1px;
}

/* TEXT AREA */
.cart__item div{
  flex: 1;
}

.cart__item h3{
  margin-bottom: 8px;
  color: #254d4d;
  font-size: 1.2rem;
}

.cart__item p{
  margin: 4px 0;
  color: #555;
  font-size: 1.3rem;
}

/* TOTAL SECTION */
#total{
  width: 80%;
  margin: 30px auto;
  text-align: right;
  font-size: 1.6rem;
  font-weight: bold;
  color: #254d4d;
}

/* OPTIONAL ACTION BUTTONS (if you add later) */
.cart__actions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.cart__actions button{
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

/* Remove button */
.cart__actions .remove{
  background: #e53935;
  color: white;
}

/* Checkout button */
.cart__actions .checkout{
  background: #254d4d;
  color: white;
}

.cart__actions button:hover{
  opacity: 0.85;
}

/* RESPONSIVE */
@media(max-width: 768px){
  .cart__item{
    flex-direction: column;
    text-align: center;
  }

  #total{
    text-align: center;
  }
}

/* CART CHECKOUT BUTTON */
.checkout__btn{
  display: inline-block;
  padding: 14px 25px;
  background: linear-gradient(135deg, rgb(6, 140, 173) );
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 152, 0, 0.3);
}

.checkout__btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(241, 241, 239, 0.4);
}
/* =========================
   CHECKOUT PAGE SYSTEM
   ========================= */

/* MAIN PAGE WRAPPER */
.checkout__container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 20px 60px; /* leaves space for fixed nav */
  background: var(--extra-light);
}

/* FORM CARD */
.checkout__form {
  width: 100%;
  max-width: 500px;
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* INPUTS */
.checkout__form input,
.checkout__form select {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.2s ease;
}

.checkout__form input:focus,
.checkout__form select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 77, 77, 0.1);
}

/* PAYMENT INFO BOX */
.payment__info {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  border-left: 4px solid var(--primary-color);
}

/* HEADINGS INSIDE PAYMENT BOX */
.payment__info h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

/* OPTIONAL FORM TITLE FEEL */
.checkout__form::before {
  content: "Checkout Details";
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.cart__buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

/* ALL BUTTONS SAME OLD STYLE */
.cart__buttons button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background: #fff;
  color: #250202;
  cursor: pointer;
  border-radius: 4px;
  font-size: 20px;
}

/* HOVER (VERY SIMPLE) */
.cart__buttons button:hover {
  background: #f4f4f4;
}

/* REMOVE BUTTON OLD WARNING STYLE */
.cart__buttons button:last-child {
  border: 1px solid red;
  color: rgb(255, 60, 0);
}
.nav__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  width: 250px;
}

.nav__search input {
  border: none;
  outline: none;
  flex: 1;
}

.nav__search span {
  cursor: pointer;
  font-size: 1.2rem;
}