/* --- Header --- */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 10px;
  }
  .logo img {
    margin: 0 0 10px 0;
    height: 70px;
  }
  nav {
    margin-right: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }
  nav a {
    margin-left: 0.7rem;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 8px 4px;
  }
  .logo img {
    height: 48px;
    margin: 0 0 8px 0;
  }
  nav {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }
  nav a {
    margin: 0;
    font-size: 0.98rem;
  }
}

/* --- ABOUT Section --- */
@media (max-width: 1100px) {
  #about {
    max-width: 98%;
    gap: 20px;
  }
}
@media (max-width: 900px) {
  #about {
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
    margin: 30px auto;
    padding: 0 8px;
  }
  .about-text h2 {
    font-size: 2.1rem;
  }
}
@media (max-width: 600px) {
  #about {
    padding: 0;
    margin: 0px auto;
    gap: 12px;
  }
  .about-text h2 {
    font-size: 1.3rem;
  }
  .about-text .subtitle {
    font-size: 1rem;
  }
  #readMoreBtn {
    min-width: 120px;
    font-size: 0.95rem;
    padding: 10px 12px;
  }
  .home-collection-btn {
    min-width: 120px;
    font-size: 0.95rem;
    padding: 10px 12px;
  }
  .full-text {
    font-size: 0.97rem;
    padding: 0 2px;
  }
}

/* --- Products Grid --- */
@media (max-width: 1100px) {
  .product-grid,
  .product-grid.grid-4-cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 18px;
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  .product-grid,
  .product-grid.grid-4-cols {
    grid-template-columns: 1fr 1fr !important; 
    gap: 12px;
    max-width: 100%;
  }
  .product-card {
    padding: 6px;
  }
  .product-card h3 {
    font-size: 1rem;
  }
  .product-card p {
    font-size: 0.93rem;
  }
  .product-card img {
    border-radius: 10px;
    height: 27vh;
  }
  .product-card h10 {
    font-size: 0.001px;
    color: white;
  }
}


/* --- Conditions --- */
@media (max-width: 900px) {
  .conditions {
    max-width: 98%;
    margin-bottom: 40px;
    padding: 0 8px;
  }
}
@media (max-width: 600px) {
  .conditions {
    max-width: 100%;
    margin-bottom: 20px;
    padding: 0 2vw;
  }
  .delivery-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; 
    gap: 14px;
  }
  .delivery-item {
    width: 45%;
    box-sizing: border-box;
    margin-bottom: 0;
    padding: 12px 6px;
    font-size: 0.97rem;
    min-height: 90px; 
    display: flex;     
    flex-direction: column;
    justify-content: center;
  }
  #internationalDelivery {
     width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
    padding: 12px 6px;
    font-size: 0.97rem;
    display: flex;     
    flex-direction: column;
    justify-content: center;
  }
  .delivery-item p {
    font-size: 1rem;
  }
}
@media (max-width: 375px) {
  .delivery-container {
    flex-direction: column;
    gap: 12px;
  }
  .delivery-item, #internationalDelivery{
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
  }
}


/* --- Contacts --- */
@media (max-width: 600px) {
  .contacts-wrapper {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    margin-top: 12px;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .contacts-wrapper::-webkit-scrollbar {
    display: none;
  }
  .contact-link {
    min-width: 5%;
    max-width: 14%;
    flex: 0 0 auto;
    justify-content: center;
    font-size: 1.5rem;
    padding: 10px 0;
    border-radius: 10px;
    margin: 0;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.03);
    background: #fafafa;
    transition: background 0.2s, color 0.2s;

  }
  .contact-link i {
    font-size: 2em;
    margin: 0;
  }
  .contact-link .contact-text {
    display: none;
  }
}

@media (max-width: 375px) {
  .contacts-wrapper {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5%;
    margin-top: 12px;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .contacts-wrapper::-webkit-scrollbar {
    display: none;
  }
  .contact-link {
    min-width: 5%;
    max-width: 15%;
    flex: 0 0 auto;
    justify-content: center;
    font-size: 1.5rem;
    padding: 10px 0;
    border-radius: 10px;
    margin: 0;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.03);
    background: #fafafa;
    transition: background 0.2s, color 0.2s;

  }
  .contact-link i {
    font-size: 2em;
    margin: 0;
  }
  .contact-link .contact-text {
    display: none;
  }
}

/* --- Footer --- */
@media (max-width: 600px) {
  footer {
    font-size: 0.93rem;
    padding: 1rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-text {
    text-align: center;
  }

  .footer-offer {
    margin-top: 0.4rem;
  }
}

/* --- Modal --- */
@media (max-width: 900px) {
  .modal-wrapper {
    flex-direction: column;
    width: 98vw;
    max-width: 98vw;
    padding: 0;
  }
  .modal-gallery, .modal-details {
    flex: 1 1 100%;
    min-width: 0;
    padding: 0;
  }
  .modal-details {
    padding: 18px 8px;
  }
  .modal-gallery img {
    max-width: auto;
    height: 100%;
  }
}
@media (max-width: 600px) {
  .modal-wrapper {
    width: 98vw;
    max-width: 98vw;
    min-width: 0;
    border-radius: 0;
    padding: 0;
  }
  .modal-gallery img {
    max-width: 90%;
    height: 60vh;
  }
  .modal-details {
    padding: 8px 2vw;
  }
  .modal-details h2 {
    font-size: 1.1rem;
    margin: 10px 0 0px 0;
    text-align: center;
  }
  .color-options {
    margin: 5px 0 0 0;
  }
  .modal-description,
  .modal-price {
    font-size: 0.90rem;
    margin-bottom: 10px;
  }
  .order-button {
    min-width: 100px;
    font-size: 0.90rem;
    margin: 10px auto 8px auto;
    padding: 10px 8px;
  }
  .size-link {      
  margin: 0 auto 0 auto;
  font-size: 0.80rem;
  }
}

/* --- Додатково: плавність для всіх секцій --- */
section, .modal-wrapper, .product-card, .contact-link, .delivery-item {
  transition: all 0.25s cubic-bezier(.4,1.2,.4,1);
}

/* --- Додатково: покращення скролу на мобільних --- */

/* --- Додатково: приховати зайві скроллбари на мобільних --- */
body {
  scrollbar-width: thin;
  scrollbar-color: #ccc #fff;
}
::-webkit-scrollbar {
  width: 6px;
  background: #fff;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* --- Burger styles --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 25px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
  margin-left: auto;
  margin-right: 10px;
}
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111;
  margin: 6px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* --- Адаптивний хедер --- */
@media (max-width: 900px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid #eaeaea;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
  }

  body {
    padding-top: 56px;
  }
  .logo {
    margin: 0 auto 0 0;
  }
  .logo img {
    height: 40px;
    margin: 0;
    display: block;
  }
  .burger {
    display: flex;
  }
  nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 100vw;
    max-width: 320px;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0,0,0,0.07);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 70px 24px 24px 24px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4,1.2,.4,1);
    z-index: 1100;
    opacity: 0.98;
    border-left: 1px solid #eee;
  }
  nav.open {
    transform: translateX(0);
  }
  nav a {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
    text-align: left;
    display: block;
    transition: color 0.2s;
  }
  nav a:last-child {
    border-bottom: none;
  }
}

/* --- Приховати меню на мобільному, якщо не open --- */
@media (max-width: 900px) {
  nav {
    display: flex;
    visibility: hidden;
    pointer-events: none;
    opacity: 0.96;
  }
  nav.open {
    visibility: visible;
    pointer-events: auto;
  }
}

/* --- На десктопі бургер не показувати --- */
@media (min-width: 701px) {
  .burger {
    display: none !important;
  }
  nav {
    position: static !important;
    height: auto !important;
    width: auto !important;
    box-shadow: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    gap: 0 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    border: none !important;
    opacity: 0.96;
  }
  nav a {
    margin: 0 0 0 1.5rem;
    font-size: 1rem;
    border-bottom: none;
    text-align: left;
    display: inline-block;
    padding: 0;
  }
}

@media (max-width: 390px) {
  .modal-wrapper {
    width: 85vw;
    padding: 15px 0 0 0;
  }
  .modal-gallery img {
    width: auto;
    height: 50vh;
  }
  .modal-details h2 {
    font-size: 1rem;
    text-align: center;
  }
  .modal-description, .modal-price {
    text-align: center;
    font-size: 0.7rem !important; 
  }
  .order-button {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  .size-link {      
  margin: 0.3vh auto 0 auto;
  font-size: 0.80rem;
  }
}

@media (max-width: 701px) {
.marquee {
  font-weight: 500;           
  font-size: 12px;
}
}

@media (max-width: 301px) {
.marquee {
  font-weight: 500;           
  font-size: 10px;
}
}

/* --- Section & Category Titles Adaptive --- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.33rem;
  }
  .category-animated {
    font-size: 0.98rem;
  }
}

/* --- Sale Badge Adaptive --- */
@media (max-width: 768px) {
  .product-card .sale-badge {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  #scrollTopBtn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    z-index: 99999 !important;
  }
}
