/*========= MOBILE =========*/

@media (max-width: 430px) {
  main {
    padding-top: 80px;
  }
  .main-nav {
    width: 100%;
    overflow-x: hidden;
  }

  /* NAV */
  .nav-container {
    max-width: 100%;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
  .nav-left,
  .nav-right {
    display: flex;
    gap: 1rem;
  }

  .nav-logo {
    width: 70px;
  }

  /* HERO */

  .hero-content h1 {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .hero-subtitle {
    display: none;
  }

  .hero-content a {
    font-size: 0.4rem;
  }

  .cta-home {
    padding: 7px 10px;
  }

  /* PRODUCTS */

  .featured-products h2 {
    margin: 1.5rem 0;
    font-size: 1rem;
  }

  #home-products,
  #products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .product-info {
    margin-top: 10px;
    gap: 0.15rem;
    font-size: 0.7rem;
  }

  .product-price {
    font-size: 0.7rem;
  }

  /* MODELS */

  .models-showcase > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .models-showcase h3 {
    margin: 2rem;
  }

  .cta-models {
    font-weight: 500;
    font-size: 0.5rem;
    padding: 0.2rem 0.5rem;
    bottom: 0.2rem;
  }

  /*PRODUCT DETAILS PAGE*/

  .product-specific-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .product-specific-layout img {
    max-height: 350px;
    object-fit: cover;
  }

  .product-specific-section {
    gap: 0.5rem;
  }

  .product-specific-section h1 {
    font-size: 1rem;
  }

  .product-specific-section p {
    font-size: 0.8rem;
    line-height: 2;
    margin: 0;
  }

  .size-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
  }

  .size-option {
    display: flex;
    justify-content: center;
  }

  .size-option span {
    min-width: 40px;
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .product-specific-layout a {
    width: 100%;
    padding: 7px;
    font-size: 1rem;
  }

  .add-to-cart{
    margin-top: 2rem;
  }

  .related-products {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .related-products h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    padding-top: 2rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-card{
    align-items: center;
    padding: 2rem 0;
  }

  .related-info p:first-child {
    font-size: 0.8rem;
  }

  .related-info p:last-child {
    font-size: 0.8rem;
  }

  .reviews {
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 0.8rem;
  }

  .reviews h3 {
    font-size: 1.1rem;
    padding: 8px 0;
  }

  .user-reviews {
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.85rem;
  }

  .user-reviews i {
    font-size: 0.9rem;
  }

  .review-body {
    gap: 0.5rem;
  }

  .review-body p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 6px;
  }

  .review-meta {
    font-size: 0.7rem;
  }

  .review-likes {
    gap: 0.3rem;
  }

  .review-likes i {
    font-size: 1rem;
  }

  .review-likes p {
    font-size: 0.85rem;
  }

  /* CART PAGE */

  .cart-header {
    padding-left: 1rem;
    padding-top: 1rem;
    font-size: 1rem;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .cart-product-header {
    font-size: 0.95rem;
  }

  .cart-product-main {
    align-items: center;
  }

  .cart-product-main img {
    width: 40%;
  }

  .cart-product-meta {
    font-size: 0.85rem;
    margin-bottom: auto;
  }

  .cart-quantity {
    width: 50%;
    margin-top: 0.5rem;
  }

  .cart-shipping {
    margin-top: 1.5rem;
  }

  /* PAYMENT SECTION */

  .payment-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
    padding-top: 2rem;
  }

  .purchase-summary {
    display: none;
  }

  form fieldset {
    margin-bottom: 2rem;
  }

  form legend {
    font-size: 0.95rem;
  }

  form input,
  form select {
    font-size: 0.85rem;
    padding: 10px;
  }

  .three-columns {
    grid-template-columns: 1fr;
  }

  .phone-code {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .shipping-type {
    border: 1px solid black;
  }

  .shipping-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding: 0.7rem;
    font-size: 0.8rem;
  }

  .shipping-option p {
    font-size: 0.75rem;
    margin: 0;
  }

  .payment-option {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .payment-option i {
    font-size: 1.2rem;
  }

  .card-row {
    grid-template-columns: 1fr;
  }

  .card-inputs {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .cta-paynow {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 14px;
    font-size: 0.9rem;
  }

  .legal-text {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  /* CONFIRMATION */

  .confirmation {
    margin: 2rem auto;
    padding: 0 2rem;
  }

  .confirmation-card {
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
  }

  .confirmation-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }

  .confirmation-message h1 {
    font-size: 1.2rem;
  }

  .confirmation-message p {
    font-size: 0.8rem;
  }

  .confirmation-receipt {
    padding: 0;
    gap: 0.5rem;
  }

  .confirmation-receipt > div {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .confirmation-actions {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .confirmation-actions a {
    width: 100%;
    min-width: unset;
    padding: 12px;
    font-size: 0.8rem;
  }
  /* HASHTAG */

  .slogan-image {
    margin-top: 25px;
    margin-bottom: 25px;
  }

  /* FOOTER */

  footer {
    padding: 1rem;
  }

  footer img {
    width: 100px;
    margin: 0 auto;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }

  .footer-layout > div {
    align-items: center;
  }

  .support ul {
    text-align: center;
  }

  .support li {
    margin-bottom: 0.4rem;
  }

  .footer-middle {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0.5rem;
  }

  .footer-middle h4 {
    margin-bottom: 0.8rem;
  }

  .social {
    margin-bottom: 0.5rem;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons i {
    font-size: 1rem;
  }

  .newsletter {
    align-items: center;
  }

  .newsletter input[type="text"] {
    width: 100%;
  }

  .newsletter label {
    justify-content: center;
    text-align: left;
  }

  .newsletter label span {
    font-size: 0.7rem;
  }

  .info-links {
    margin-top: 1.5rem;
  }

  .info-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-links li {
    margin: 0;
  }

  /* FOOTER 2*/

  .simple-footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .simple-footer img {
    width: 120px;
  }

  .footer-right {
    align-items: center;
    gap: 0.8rem;
  }

  .footer-icons {
    gap: 0.8rem;
  }

  .footer-icons i {
    font-size: 1rem;
  }

  .footer-right span {
    font-size: 0.8rem;
  }

  /*Products page*/
  .filters {
  flex-direction: column;
  align-items: center;
}
}

/*============ TABLET =============*/

@media (max-width: 820px) {
  /* HOME PAGE */
  .hero-content {
    padding: 15px;
  }
  .hero-title {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-home {
    font-size: 0.7rem;
    padding: 7px 10px;
  }

  #home-products,
  #products-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* HASHTAG*/
  .slogan-image {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* FOOTER */
  .newsletter span {
    font-size: 0.7rem;
  }

  .footer-layout {
    padding: 0.5rem;
  }

  /*PRODUCT DETAILS PAGE*/

  .product-specific-layout {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .product-specific-section {
    gap: 0.4rem;
  }

  .product-specific-section p {
    margin: 0.4rem 0;
    line-height: 1.5;
  }

  .product-specific-section h1 {
    margin-bottom: auto;
    margin-top: auto;
  }

  .size-selector {
    margin: 0.5rem 0;
  }

  .product-specific-section a {
    margin-top: 2rem;
  }

  /* COMING SOON PAGE*/
  .under-construction {
    min-height: 100vh;
    padding: 0;
  }

  .slogan-image {
    margin-top: 0;
    margin-bottom: 0;
  }

  .slogan-image-dark {
    position: absolute;
    inset: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .slogan-image-dark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .under-construction-content {
    position: relative;
    z-index: 2;
    width: 90%;
    font-size: 1.5rem;
  }

  .cta-coming-soon {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 620px) {
  .hero-content p {
    display: none;
  }

  .footer-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-layout > div {
    align-items: center;
  }

  .footer-layout img {
    justify-self: center;
  }

  .support ul {
    text-align: center;
  }

  .newsletter input[type="text"] {
    width: 100%;
  }
}

@media (max-width: 740px) {
  .product-specific-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) and (max-width: 1023px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 300px;
  }

  .hero-content {
    padding: 1.5rem;
  }
}
