/* ===== RESPONSIVE & MEDIA QUERIES ===== */

/* Scroll-space */
@media (max-width: 767px) {
  #scroll-space {
    height: 10vh;
  }
  body.product-page #scroll-space {
    height: 5vh;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Fake scrollbar */
@media (max-width: 767px) {
  .fake-scrollbar {
    display: none;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Hero */
@media (max-width: 767px) {
  #brand {
    top:30%;
  }
  .wordmark {
    display: none;
  }
  .wordmark-mobile {
      display: block;
      position: relative;
      top: -50px;
      width: 60vw;
  }
  .tagline-box {
    position: relative;
    padding: 0.22rem 1rem;
    top: -40px;
  }
  .tagline-box p {
    font-size: 1rem;
  }
  canvas#chandelier_canvas {
    top: -65%;
  }
  .tip-container{
    max-height: 360px;
    padding: 0 1rem;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Header */
@media (max-width: 767px) {
  .header-left, .header-center a, .search-label {
    display: none;
  }
  body.cart-page .header-left,
  body.product-page .header-left {
    display: block;
  }
  body.product-cart a.login.account,
  body.product-page a.login.account {
    display: none;
  }
  .header-right .tab-item {
    display: none;
  }
  .search-tab {
    position: absolute;
    right: 1.5rem;
  }
  .search-toggle {
    width: 35px;
  }
  .header-bar .search-icon {
    display: block;
  }
  .mobile-search-tab {
    display: none;
    position: absolute;
    left: 3rem;
  }
  .mobile-search-toggle {
    display: flex;
    align-items: center;
    background-color: rgb(255, 255, 255);
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    border-color: #A89F91;
    padding: 0.5rem 0.6rem;
    transition: all 0.3s ease;
    overflow: hidden;
    width: 75vw;
  }
  .mobile-search-input {
    outline: none;
    border: 0;
    opacity: 1;
    font-family: 'Vazirmatn';
    display: block;
    width: 60vw;
    color: #191E2A;
  }
  body.cart-page .search-tab,
  body.product-page .search-tab,
  body.cart-page a.login.account,
  body.product-page a.login.account {
    display: none;
  }
  body.cart-page .back-button,
  body.product-page .back-button {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}
  body.cart-page .back-icon,
  body.product-page .back-icon {
    width: 26px;
    height: 26px;
    color: #191E2A;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Mobile Tab Bar */
@media (max-width: 767px) {
  .mobile-tab-bar {
    display: flex;
    background-color: #F8F6F3c0;
    backdrop-filter: blur(8px);    
  }
  body.homepage .mobile-tab-bar {
    display: flex;
    background-color: transparent;
    backdrop-filter: blur(8px);   
  }
  body.homepage .mobile-tab-bar.scrolled {
    background-color: #F8F6F3c0;
    backdrop-filter: blur(8px);
  }
  body.homepage .mobile-tab-bar.scrolled .tab-item {
    color: #191E2A;
  }
  .mobile-tab-bar.scrolled .cart-icon {
    color: #191E2A;
  }
  body.product-page .mobile-tab-bar {
    display: none;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Footer */
@media (max-width: 767px) {
  .main-footer{
    padding: 1rem;
  }
  .footer-grid {
    gap: 0;
  }
  .footer-credit {
    height: 120px;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Philosophy */
@media (max-width: 767px) {
  .philosophy-section {
    height: 200px;
  }
  .text-content {
    padding-left: 1rem;
    max-width: 600px;
    margin-top: -1rem;
  }
  .phil-title {
    font-size: 1.7rem;
    margin-bottom: 10px;
    line-height: 1;
  }
  .philosophy-subtext {
    font-size: 0.8rem;
    color: #F8F6F3;
    margin-bottom: 15px;
    font-family: 'Vazirmatn', sans-serif;
    text-align: justify;
  }
  .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 5px;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Category */
@media (max-width: 767px) {
  .categories-section {
    align-content: space-around;
  }
  .categories-row { 
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .category-card {
    width: 160px;
    height: 175px;
  }
  .category-info {
    height: 25px;
  }
  .category-info h3 {
    font-size: 0.8rem;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Timer */
@media (max-width: 767px) {
  .timer-box {
    top: 1rem;
    left: 1rem;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Shipping Banner */
@media (max-width: 767px) {
  .shipping-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    width: calc(100% - 2rem);
    padding: 2rem 1rem;
    margin: 1rem auto;
  }
  .shipping-icon-box {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  .shipping-banner h2 {
    font-size: 1.4rem;
  }
  .shipping-banner p {
    font-size: 0.95rem;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Support Widget */
@media (max-width: 700px) {
  .support-button {
    bottom: 80px;
  }
  body.support-open.homepage .support-button.scrolled {
    color: #D4AF37;
  }  
  .support-widget {
    width: 92%;
    height: calc(100% - 280px);
    bottom: 140px;
    left: 4%;
  }
  .message-container.admin {
    width: 240px;
    left: -74px;
  }
  .message-container.user {
    width: 240px;
  }
  .chat-messages {
    height: 610px;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Product Card Mobile */
@media (max-width: 767px) {
  .section-title {
    width: 200px;
    font-size: 1.2rem;
    right: 1rem;
  }
  .more-link {
    position: absolute;
    font-size: 0.8rem;
    margin-left: 1rem;
    left: 0rem;
  }
  .scroll-arrow.left { left: 1rem;}
  .scroll-arrow.right { right: 1rem; }
  .product-card {
    width: calc(100vw - 2rem);
    height: 140px;
    display: flex;
    flex-direction: row;
    left: 1rem;
  }
  body.homepage .product-card{
    width: calc(100vw - 3rem);
    right: 0rem;
  }
  .product-card .badge {
    right: 0.5rem;
    left: auto;
  }
  .product-scroll {
    display: grid;
    width: 100%;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 180px);
    overflow-x: auto;
    gap: 0rem 1rem;
    padding: 0 1rem;
    padding-top: 1rem;
  }
  .product-image img {
    position: relative;
    width: 40%;
    min-width: 140px;
  }
  .product-info {
    position: absolute;
    left: 0rem;
    top: 0rem;
    width: calc(100% - 140px);
    height: 100%;
    padding: 0rem 0rem;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
  }
  .product-title {
    position: absolute;
    align-self: self-start;    
    right: 1rem;
    top: -0.4rem;
    font-size: 1.1rem;
    margin-bottom: 0rem;
    color: #191E2A;
  }
  .product-subtitle {
    position: absolute;
    align-self: self-start;
    top: 1.6rem;
    right: 1rem;
    font-size: 0.8rem;
  }
  .product-code {
    position: absolute;
    top: 2.5rem;
    font-size: 0.8rem;
    color: #A89F91;
    left: 1rem;
    }
  .price {
    position: absolute;
    align-self: self-start;
    top: 5rem;
    align-self: center;
    right: 1rem;
  }
  .has-offer .price {
    bottom: 4rem;
    right: 1rem;
  }
  .special-price {
    position: absolute;
    align-self: self-start;
    bottom: 0.8rem;
    right: 1rem;
  }
  .heart-box {
    display: flex;
    opacity: 1;
    left: 1rem;
  }
  .add-to-cart {
    display: block;
    position: absolute;
    opacity: 1;
    bottom: 1rem;
    right: 1rem;
  }
  .product-card.orbit-enabled::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><rect x='1' y='1' width='calc(100% - 2px)' height='138' rx='5' ry='5' fill='none' stroke='red' stroke-width='2' stroke-dasharray='200 780' stroke-linejoin='round' stroke-linecap='round'><animate attributeName='stroke-dashoffset' from='0' to='-980' dur='4s' repeatCount='indefinite'/></rect></svg>");
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Products Grid */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}
@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}
@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    margin-left: 0rem;
    margin-right: 0rem;
  }
  .filter-button {
    width: 20%;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}
@media (max-width: 800px) {
  .filter-button {
    width: 60px;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Product Page */
@media (min-width: 1280px) {
  .photo-gallery {
    position: relative;
    width: 76vh;
  }
  #tip-content {
    position: absolute;
    left: 2rem;
    top: 4rem;
    display: block;
    opacity: 1;
    width: calc(100% - 76vh - 6rem);
  }
  a#tip-tab {
    position: absolute;
    right: 76vh;
  }
  #photos-content {
    display: block;
    opacity: 1;
  }
  .thumbnails {
    position: absolute;
    display: flex;
    flex-direction: row;
    background-color: #F8F6F3dd;
    height: 66px;
    width: max-content;
    right: 50%;
    bottom: 1rem;
    transform: translateX(50%);
    padding: 1px 4px;
    margin: 0;
    border-radius: 10px;
    gap: 0px;
    z-index: 1;
  }
  .thumb {
    position: relative;
    width: 55px;
    height: 55px;
    top: 2.5px;
    margin: 0.2rem;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}
@media (max-width: 768px) {
  .comment-section {
    padding: 1.2rem;
    margin-top: 3rem;
  }
  .comment-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .submit-comment {
    width: 100%;
  }
  .star-rating {
    font-size: 1.6rem;
    gap: 6px;
  }
  a#detail-tab {
    display: block;
  }
  nav.introduce-bar {
    justify-content: space-around;
  }
  #tip-content {
    top: 0.5rem;
    border-radius: 10px;
    width: calc(100% - 2rem);
    height: initial;
    aspect-ratio: 1 / 1;
    padding: 0;
  }
  .right-side {
    position: relative;
    width: 100vw;
    min-width: auto;
    height: 550px;
  }
  .left-side {
    top: 130px;
    width: 100vw;
    max-width: 100vw;
    height: 60vh;
    overflow: hidden;
    background-color: transparent;
    z-index: 2;
  }
  .specs-title {
    opacity: 0;
  }
  .path {
    right: 1rem;
  }
  .path-item, .product-path  {
    font-size: 0.8rem;
  }
  .introduce-bar {
    margin: auto 0;
    top: 0;
    padding-top: 0.2rem;
    border-top: solid #D2CDC8;
  }
  .intro-item {
    width: 25vw;
  }
  .intro-content {
    position: relative;
    top: 0.5rem;
    left: -1rem;
    width: calc(100vw - 2rem);;
    height: initial;
    overflow-y: hidden;
  }
  .product {
    width: calc(100% - 2rem);
    height: initial;
    right: 1rem;
    top: 0rem;
  }
  .product h3 {
    font-size: x-large;
  }
  .product h4 {
    top: -1.5rem;
    font-size: small;
  }
  .product .product-code {
    position: absolute;
    font-size: small;
    top: 2.5rem;
    margin: 0;
    left: 0rem;
  }
  .product .price, .product .special-price {
    position: absolute;
    display: flex;
    bottom: 0.6rem;
    top: auto;
    font-size: larger;
  }
  .product.has-offer .price {
    position: relative;
    display: flex;
    bottom: 0rem;
  }
  .product .badge {
    left: 0;
    scale: 1;
  }
  .buy-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 64px;
    background-color: #F8F6F3c0;
    backdrop-filter: blur(8px);
    z-index: 100;
    box-shadow: 4px 0px 12px rgba(0, 0, 0, 0.12);
  }
  .add-to-cart {
    bottom: 12px;
    width: 150px;
    height: 40px;
    padding: 0;
    border-radius: 7px;
    font-size: larger;
    right: auto;
    left: 4rem;
  }
  .fast-buy-btn {
    bottom: 12px;
    width: 90px;
    height: 40px;
    padding: 0;
    border-radius: 5px;
    font-size: larger;
    right: auto;
    left: calc(1rem + 45px);
  }
  .product .heart-box {
    width: 40px;
    height: 40px;
    bottom: 12px;
    left: 1rem;
    border-radius: 7px;
  }
  .product .heart-icon {
    width: 25px;
    height: 25px;
  }
  .quantity-selector {
    bottom: 12px;
    width: 120px;
    height: 40px;
    padding: 0;
    border-radius: 5px;
    font-size: larger;
    right: auto;
    left: 2rem;
  }
  .quantity-selector.with-fast-buy {
    width: 85px;
    right: auto;
    left: calc(1rem + 140px);
  }
  .photo-gallery {
    justify-content: center;
    margin-top: 0;
  }
  .thumbnails {
    position: absolute;
    display: flex;
    flex-direction: row;
    background-color: #F8F6F3dd;
    height: 37px;
    padding: 0 2.5px;
    margin: 0;
    border-radius: 10px;
    bottom: 1rem;
    gap: 1px;
    z-index: 1;
  }
  .thumb {
    position: relative;
    width: 30px;
    height: 30px;
    top: 2px;
    margin: 0.1rem;
  }
  .main-photo {
    aspect-ratio: 1 / 1;
    width: calc(100vw - 2rem);
    height: initial;
  }
  .product-specs {
    width: calc(100vw - 2rem);
    height: calc(100vw - 2.1rem);
    overflow: scroll;
    top: calc(0rem - 2px);
    overflow-y: scroll;
    padding: 0;
  }
  .spec-item {
    padding: 0.5rem 1rem;
  }
  .buyer-options {
    position: relative;
    top: 5rem;
  }
  .condition {
    position: relative;
    top: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
  }
  .condition h5 {
    color: #A89F91;
  }
  .featured-overlay-3 {
    position: relative;
    top: 0rem;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Cart Page */
@media (max-width: 768px) {
  body.cart-page main {
    overflow: hidden;
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
  }
  body.cart-page .cart-section {
    height: calc(100vh - 64px);
  }
  body.cart-page .left-side {
    position: relative;
    top: 0;
    height: 450px;
    overflow-y: scroll;
  }
  body.cart-page .right-side {
    position: fixed;
    top: unset;
    bottom: 0px;
    height: 300px;
  }
  body.cart-page #scroll-space {
    display: none;
    height: 0;
  }
  .product-row {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 1.2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    direction: rtl;
  }
  .product-thumb {
    width: 90px;
    height: 90px;
    margin-bottom: 0.5rem;
  }
  .cart-product-info {
    width: 100%;
    text-align: center;
    direction: rtl;
  }
  body.cart-page .quantity-selector {
    position: absolute;
    left: 1rem;
    right: auto;
    bottom: 1rem;
    margin: 0;
    padding: 0;
    width: 80px;
    height: 35px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
  }
  body.cart-page .increase,
  body.cart-page .decrease {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }
  .summary-row {
    margin: 10px 0;
    margin-right: 0;
    font-size: 0.95rem;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1rem;
  }
  .summary-row select {
    margin-top: 0.5rem;
    font-size: 1rem;
  }
  .summary-row.total {
    display: grid;
    font-size: 1rem;
    padding-top: 10px;
    margin-top: 12px;
  }
  #shipping-cost {
    display: none;
  }
  span#summary-total-cost {
    font-size: larger;
    font-weight: 900;
  }  
  .checkout-button {
    position: absolute;
    width: calc(100vw - 2rem);
    left: 1rem;
    margin: 0;
    padding: 12px 0;
    font-size: 1rem;
    border-radius: 10px;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Login */
@media (max-width: 767px) {
  .login-box {
    width: 95%;
    height: 80%;
  }
  .login-left {
    width: 100%;
    height: 52%;
    bottom: 0;
  }
  .login-right {
    width: 100%;
  }
  .close-popup {
    position: fixed;
    z-index: 10;
  }
  .login-input {
  width: calc(100% - 2rem - 20px);
  padding: 10px;   
  }
  .login-button {
    padding: 10px;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Account Page */
@media (max-width: 768px) {
  .account-section {
    display: block;
  }
  body.account-page .right-side {
    height: 330px;
    border-bottom: solid #A89F91;
  }
  .account-profile {
    right: 1rem;
    width: calc(100% - 2rem);
  }
  .list-bar {
    margin-left: 1rem;
  }
  .list-content {
    width: calc(100% - 2rem);
    left: -1rem;
  }
  .order-card {
    height: 200px;
  }
  .order-info {
    position: absolute;
    top: 60px;
    width: 100%;
  }
  .order-body {
    top: 5px;
  }
  .order-body p {
    margin-block-start: 2px;
    margin-block-end: 0em;
  }
  .order-thumbnails {
    top: 0;
    grid-template-columns: repeat(4, 25%);
    grid-template-rows: repeat(1, 60px);
    width: 100%;
    height: 60px;
    border-bottom-left-radius: 0px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  .toggle-details {
    top: 0.5rem;
  }
  .order-summary {
    height: 190px;
  }
  body.account-page .product-card {
    left: 0;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Checkout */
@media (max-width: 768px) {
  .checkout-main {
    display: block;
    height: 100vh;
    margin: 0;
    padding: 0;
  }
  .checkout-section {
    overflow: hidden;
    height: auto;
    top: 0;
    padding: 1.5rem 1rem;
    box-shadow: none;
    border-radius: 0;
  }
  .shipping-form label {
    margin-bottom: 10px;
    max-height: 100px;
  }
  .shipping-form textarea {
    min-height: 40px;
  }
  .checkout-summary {
    position: fixed;
    bottom: 0;
    top: auto;
    width: calc(100vw - 2rem);
    height: 220px;
    margin: 0;
    padding: 10px 1rem;
    box-shadow: none;
    border-radius: 0;
    border-top: solid #D2CDC8;
  }
  .checkout-title {
    margin-bottom: 10px;
  }
  body.checkout-page .confirm-button {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-size: 1rem;
    padding: 12px 0;
    margin: 0;
  }
  .back-to {
    display: none;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* About, FAQs, Legal */
@media (max-width: 768px) {
  .about-main {
    padding: 64px 1rem;
  }
  .about-hero h1 {
    font-size: 1.6rem;
  }
  .about-hero p {
    padding: 0 0rem;
    font-size: 1rem;
  }
  .about-message p {
    font-size: 1rem;
  }
  .faqs-main {
   padding: 64px 1rem;
  }
  body.faqs-page .faq-contact-fixed .support-btn-container {
    position: relative;
    width: 100%;
    left: 0;
    bottom: 0;
  }
  .legal-main {
    padding: 64px 1rem;
  }
  .legal-page-header h1 {
    font-size: 1.6rem;
  }
  .legal-content {
    padding: 10px 1.2rem;
  }

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
}

/* Skeleton Mobile */
@media (max-width: 767px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 32px;
  }
  .skeleton-card {
    width: calc(100vw - 2rem);
    height: 140px;
  }
}

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .add-to-cart {
    width: 130px !important;
    font-size: medium;
    left: 1rem !important;
  }
  .quantity-selector {
    width: 100px !important;
    left: 1rem !important;
  }
  .quantity-selector.with-fast-buy {
    width: 75px !important;
    left: calc(1rem + 130px) !important;
  }
  .fast-buy-btn {
    width: 85px !important;
    left: calc(1rem + 35px) !important;
  }
}
/* ===== PRODUCT BUY BAR — iOS / SAFE-AREA FIX =====
   Keep dynamically-created purchase controls above Safari's bottom UI and
   prevent the <=375px rule from placing the cart button under the heart. */
@media screen and (max-width: 768px) {
  body.product-page {
    padding-bottom: 64px;
    padding-bottom: calc(64px + constant(safe-area-inset-bottom));
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  body.product-page .product-section {
    overflow: visible;
  }

  body.product-page .buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    overflow: visible;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transform: translateZ(0);
    z-index: 1000;
  }

  body.product-page .buy-bar > .add-to-cart,
  body.product-page .buy-bar > .remind-me {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    position: absolute;
    left: 64px !important;
    bottom: 12px !important;
    bottom: calc(12px + constant(safe-area-inset-bottom)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: 120px;
    height: 40px;
    margin: 0;
    box-sizing: border-box;
    z-index: 1002;
  }

  body.product-page .buy-bar > .heart-box,
  body.product-page .buy-bar > .fast-buy-btn,
  body.product-page .buy-bar > .quantity-selector {
    bottom: 12px;
    bottom: calc(12px + constant(safe-area-inset-bottom));
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}