/* Import fonts */
/* Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
/* Bodoni Moda Font */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400..900&display=swap');
/* Unna Font */
@import url('https://fonts.googleapis.com/css2?family=Unna:ital,wght@0,400;0,700;1,400;1,700&display=swap');
/* Lora Font */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

/* Custom properties */
:root {
  --light-color-darkbg: #fff8f0;
  --dark-color-lightbg: #6a1103;
  --primary-background-color: #eeeee6;
  --placeholder-background-color: #FFE9A0;
  --green-accent-color: #0e4322;
  --red-accent-color: #6a1103;
  --yellow-accent-color: #f6e6cf;
  --yellow-accent-color2: #DBC065;
  --brown-accent-color: #442D22;
  --gradient-color: linear-gradient(115deg, #3a5240, #fad648, #a767e5, #12bcfe, #44ce7b);
  --font-family-footer-header: normal 900 normal 1rem "Bodoni Moda", serif;
  --font-family-header: normal 700 normal 1rem "Unna", serif;
  --font-family-para: normal 300 normal 1rem 'Poppins', sans-serif;
  --font-family-item-descript: normal 400 normal 1rem "Lora", serif;
  --font-size-xsm: 1.4rem;
  --font-size-sm: 1.6rem;
  --font-size-md: 2.4rem;
  --font-size-lg: 3rem;
  --font-size-xl: 4rem;
  --menu-button-size: 2.5rem;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* font-size: 10px; */
  font-size: 62.5%;
}

body {
  font: var(--font-family-para);
  font-size: var(--font-size-sm);
  background-color: var(--light-color-darkbg);
  color: var(--dark-color-lightbg);
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background-color: transparent;
  outline: none;
}

/* Header Styles */
.container {
  max-width: 160rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cart-title {
  margin-inline: auto;
  margin-block: 4rem 0;
  text-transform: uppercase;
  font: var(--font-family-header);
  font-size: 8rem;
  font-weight: 600;
  color: #000000;
  max-width: 146rem;
}

.cart-grid {
  display: grid;
  gap: 1%;
  grid-template-columns: minmax(52rem, 66rem) repeat(2, minmax(14rem, 20rem)) minmax(35rem, 40rem);
  margin-inline: auto;
  margin-block: 4rem 18rem;
  padding-inline: 5rem;
}

.cart-grid h3 {
  font-weight: 400;
  font-size: 1rem;
  padding-top: 1rem;
  color: #000000;
  opacity: 70%;
}

.cart-grid h3:nth-of-type(3) {
  margin-inline: 1rem;
  text-align: end;
}

.checkout-section {
  width: 100%;
  min-width: 35rem;
  grid-row: span 10;
}

.checkout-section .order-summary-box {
  background-color: #e5e5e5;
  width: 100%;
  margin: 0;
  padding: 2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 2;
  gap: 0;
}

.grid-col-span-2 {
  grid-column: span 2;
}

.checkout-section h3 {
  font: var(--font-family-item-descript);
  font-size: var(--font-size-sm);
  margin-bottom: 3rem;
}

.checkout-section .order-summary-box>p {
  font: var(--font-family-para);
  font-size: var(--font-size-xsm);
  font-weight: 400;
  color: #000000;
  margin-block: 1rem;
}

.checkout-section .order-summary-box>p.checkout-col-2 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-align: end;
  font-style: italic;
}

.checkout-section .order-summary-box>p.checkout-col-2:nth-of-type(4) {
  font-size: var(--font-size-xsm);
  font-weight: 400;
}

.razorpay-btn {
  display: none;
  width: 100%;
}

.login-address-btn-link {
  display: none;
}

.login-btn-link {
  display: block;
}

.login-btn,
.login-address-btn {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  margin-inline: auto;
  margin-top: 3rem;
  height: 5rem;
  cursor: pointer;
  position: relative;
  z-index: 48;
}

.login-btn::before {
  content: "LOG IN";
  position: absolute;
  z-index: 50;
}

.login-address-btn::before {
  content: "Add Your Name & Address";
  position: absolute;
  z-index: 50;
}

.login-btn::after,
.login-address-btn::after {
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--dark-color-lightbg);
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  transition-property: opacity;
  transition-duration: 0.2s;
  transition-timing-function: ease-in;
  z-index: 49;
}

.login-btn:is(:hover, :focus)::after,
.login-address-btn:is(:hover, :focus)::after {
  opacity: 1;
}


.cart-grid>.line-seperator {
  background-color: #000000;
  opacity: 15%;
  width: 100%;
  height: 0.5px;
  margin-block: 1rem;
  margin-bottom: 1rem;
  grid-column: span 3;
}

.item-description {
  width: 100%;
  height: 15rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5rem;
  margin-block: 2rem;
}

.item-description .prod-img {
  width: 14rem;
  height: 15rem;
  overflow: hidden;
}

.item-description .prod-info {
  color: #000000;
  font: var(--font-family-item-descript);
  font-size: var(--font-size-xsm);
  margin-block: auto;
}

.item-description .prod-info>i {
  font-weight: 800;
  color: #dc143c;
}

.cart-quant-box {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.cart-quant-box button {
  display: inline;
  color: #000;
  cursor: pointer;
}

.cart-quant-box button:nth-of-type(2) {
  --cart-box-height: 30%;
  position: absolute;
  left: 0;
  top: calc(50% - calc(var(--cart-box-height)/2));
  width: 65%;
  height: var(--cart-box-height);
  border: #000 solid 1px;
  border-radius: 2px;
  cursor: default;
  z-index: 49;
}

.cart-quant-box button:nth-of-type(1) {
  position: absolute;
  font-size: 2rem;
  left: 53%;
  top: calc(50% - 1.3rem);
  z-index: 50;
}

.cart-quant-box button:nth-of-type(3) {
  position: absolute;
  font-size: 2rem;
  left: 6%;
  top: calc(50% - 1.3rem);
  z-index: 50;
}

.total-price-box {
  color: #868686;
  font: var(--font-family-item-descript);
  font-size: var(--font-size-sm);
  font-weight: 800;
  margin-block: auto;
  margin-inline: 1rem;
  text-align: end;
}

/* Media Queries */
@media screen and (max-width: 1240px) {
  .cart-grid {
    grid-template-columns: 58% repeat(2, 20%);
    margin-inline: 0;
  }

  .cart-grid>.line-seperator {
    grid-column: span 3;
  }

  .checkout-section {
    width: 37rem;
    margin: 0;
    padding: 0;
    grid-row: 11;
    grid-column: span 2;
  }
}

@media screen and (max-width: 800px) {
  .cart-title {
    margin-inline: 0;
    font-size: 5rem;
  }

  .cart-grid {
    grid-template-columns: 82% 17%;
    margin-inline: auto;
    padding-inline: 1rem;
    gap: 1%;
  }

  .cart-grid h3 {
    font-size: var(--font-size-xsm);
  }

  .cart-grid>.line-seperator {
    grid-column: span 2;
  }

  .mobile-show {
    display: inline;
    height: 15rem;
    width: 19rem;
  }

  .item-description {
    height: 20rem;
    font-size: var(--font-size-xsm);
    display: grid;
    grid-template-columns: 30% calc(70% - 1.5rem);
    gap: 1.5rem;
  }

  .item-description .prod-img {
    width: 100%;
    grid-column: 1;
    grid-row: span 2;
  }

  .item-description .prod-info,
  .item-description .cart-quant-box {
    grid-column: 2;
  }

  .total-price-box {
    grid-column: 2;
    margin-block: 0;
  }
}