*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  html {
    font-size: 58%;
  }
  section {
    padding: 2rem 5%;
  }
  header {
    padding: 1.8rem 5%;
  }
  .home {
    min-height: 75vh;
    background-position: center right;
  }
  .home .content {
    max-width: 55rem;
    padding-left: 40px;
  }
  .home .content h3 {
    font-size: 5rem;
  }
  .home .content span {
    font-size: 2.2rem;
  }
  .about .row {
    gap: 3rem;
  }
  .about .row .content p {
    font-size: 1.8rem;
    line-height: 2.8rem;
  }
  .products .box-container {
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 1.8rem;
    padding: 1.5rem;
  }
  .icons-container {
    gap: 2.5rem;
    padding: 3rem 5%;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 52%;
    cursor: auto !important;
  }
  body {
    cursor: auto !important;
  }
  .cursor {
    display: none !important;
  }
  section {
    padding: 2rem 4%;
  }
  header {
    padding: 1.5rem 4%;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  header .logo {
    font-size: 2.6rem;
  }
  header .navbar a {
    font-size: 1.8rem;
    padding: 1.2rem 1.5rem;
  }
  header .icons a {
    font-size: 2.2rem;
    margin-left: 1rem;
  }
  header .fa-bars {
    display: block !important;
    font-size: 2rem;
    padding: 2rem 3rem;
  }

  .home {
    min-height: 70vh;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
  }
  .home .content {
    max-width: 100%;
    padding-left: 4%;
    padding-right: 4%;
    background: rgba(240, 234, 220, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 1.2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin: 0 4%;
  }
  .home .content h3 {
    font-size: 4rem;
    line-height: 1.2;
    color: #576238;
  }
  .home .content span {
    font-size: 1.8rem;
    display: block;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    color: #576238;
  }
  .home .content p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: #576238;
  }
  .home .content .btn {
    font-size: 1.5rem;
    min-height: 5rem;
    padding: 1.2rem 2rem;
    margin-top: 1.5rem;
  }

  .about .row {
    flex-direction: column;
    gap: 2rem;
  }
  .about .row .photo-container {
    flex: unset;
    width: 100%;
  }
  .about .row .photo-container img {
    width: 100%;
    max-height: 32rem;
    object-fit: contain;
  }
  .about .row .content {
    flex: unset;
    width: 100%;
  }
  .about .row .content h3 {
    font-size: 3.5rem;
    text-align: center;
  }
  .about .row .content p {
    font-size: 1.5rem;
    line-height: 2.4rem;
    text-align: left;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .about .row .content .btn {
    font-size: 1.5rem;
    min-height: 5rem;
  }

  .heading {
    font-size: 3.8rem !important;
    padding: 0.5rem;
    margin: 1rem;
  }

  .products {
    padding: 2rem 4%;
  }
  .products .box-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    padding: 1rem 0;
  }
  .products .box-container .box .image img {
    height: 17rem;
  }
  .products .box-container .box .content {
    padding: 1.2rem 1rem;
  }
  .products .box-container .box .content h3 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
  }
  .products .box-container .box .content .price {
    font-size: 1.5rem;
  }

  .box-overlay {
    display: none !important;
  }
  .add-cart-btn {
    display: none !important;
  }

  .icons-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 4%;
  }
  .icons-container .icons {
    flex: unset;
    width: 100%;
    padding: 1.8rem 2rem;
  }
  .icons-container .icons h3 {
    font-size: 1.6rem;
  }
  .icons-container .icons span {
    font-size: 1.3rem;
  }

  .cart-drawer {
    width: 100vw !important;
    border-left: none !important;
  }
  .drawer-header {
    padding: 2rem !important;
  }
  .drawer-header-left h2 {
    font-size: 2.4rem !important;
  }
  .drawer-items {
    padding: 1.5rem 2rem !important;
  }
  .drawer-footer {
    padding: 1.5rem 2rem 3rem !important;
  }
  .subtotal-val {
    font-size: 2.4rem !important;
  }
  .checkout-btn,
  .wa-btn {
    font-size: 1.3rem;
    padding: 1.3rem 2rem;
  }

  .pd-modal {
    width: 96vw !important;
    max-height: 92vh !important;
    border-radius: 1.6rem !important;
  }
  .pd-inner {
    flex-direction: column !important;
    overflow-y: auto;
  }
  .pd-image-col {
    width: 100% !important;
    min-height: 22rem !important;
    padding: 2.5rem 2rem !important;
  }
  .pd-image-col img {
    max-height: 22rem !important;
  }
  .pd-info-col {
    padding: 2rem 2rem 2.5rem !important;
  }
  .pd-name {
    font-size: 2.4rem !important;
  }
  .pd-price {
    font-size: 2.2rem !important;
    margin-bottom: 1.5rem !important;
  }
  .pd-desc {
    font-size: 1.3rem !important;
    margin-bottom: 2rem !important;
  }
  .pd-add-btn {
    font-size: 1.3rem !important;
    padding: 1.4rem !important;
  }

  .bf-modal {
    width: 96vw !important;
    max-height: 92vh !important;
    border-radius: 1.8rem !important;
    overflow-y: auto;
  }
  .bf-header {
    padding: 2.5rem 2rem 2rem !important;
  }
  .bf-title {
    font-size: 2.4rem !important;
  }
  .bf-body {
    padding: 2rem 2rem 0 !important;
  }
  .bf-footer {
    padding: 1.5rem 2rem 2.5rem !important;
    flex-direction: column !important;
  }
  .bf-cancel {
    width: 100% !important;
    order: 2;
  }
  .bf-submit {
    order: 1;
    font-size: 1.3rem !important;
  }

  .pay-modal {
    width: 96vw !important;
    padding: 2rem !important;
    border-radius: 1.6rem !important;
    max-height: 92vh !important;
    overflow-y: auto;
  }
  .pay-modal h2 {
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
  }
  #payTotalVal {
    font-size: 2.2rem !important;
  }
  .pay-qr-frame {
    width: 18rem !important;
    height: 18rem !important;
  }
  .pay-btn-primary {
    font-size: 1.2rem !important;
    padding: 1.4rem !important;
  }

  .toast {
    width: 90vw;
    white-space: normal;
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    bottom: 2rem;
  }
}

@media (max-width: 430px) {
  html {
    font-size: 48%;
  }
  .home .content h3 {
    font-size: 3.4rem;
  }
  .home .content span {
    font-size: 1.6rem;
  }
  .heading {
    font-size: 3.2rem !important;
  }
  .products .box-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .products .box-container .box .image img {
    height: 14rem;
  }
  .products .box-container .box .content h3 {
    font-size: 1.4rem;
  }
  .products .box-container .box .content .price {
    font-size: 1.3rem;
  }
  .add-cart-btn {
    font-size: 1rem !important;
    padding: 0.8rem 1rem !important;
  }
  .products h2.heading {
    font-size: 2.6rem !important;
    text-align: center !important;
    margin-bottom: 1.2rem !important;
  }
}

@media (max-width: 767px) {
  .products section .box-container,
  section.products .box-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .products h2 {
    font-size: 2.8rem !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .pay-order-summary {
    max-height: 14rem !important;
    font-size: 1.2rem;
  }
  .pay-order-summary div {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .home {
    min-height: 100vw;
    align-items: center;
    padding-bottom: 0;
  }
  .home .content {
    margin: 2rem 4%;
  }
  .home .content h3 {
    font-size: 3rem;
  }
  .pd-modal,
  .bf-modal,
  .pay-modal {
    top: 50% !important;
    max-height: 96vh !important;
    overflow-y: auto !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .qty-btn {
    width: 3.8rem !important;
    height: 3.8rem !important;
    font-size: 2rem !important;
  }
  .close-drawer,
  .pd-close {
    width: 4.4rem !important;
    height: 4.4rem !important;
  }
  .cart-trigger {
    padding: 0.5rem !important;
  }
  .navbar a {
    padding: 1.4rem 1.5rem !important;
  }
  .box-overlay {
    display: none !important;
  }
  .add-cart-btn {
    display: none !important;
  }
}
