@import url("../../../layout1/front/css/responsive.css");

/* =====================================================
   LAYOUT2 (Warm Editorial Boutique) — THEME OVERRIDES
   Applied on top of layout1 responsive rules above
   ===================================================== */

/* User sidebar: gold active accent */
.theme-layout2 .user-sidebar__nav-item--active .user-sidebar__nav-link {
  background: #faf3e8;
  color: #8b6914;
  border-left-color: #8b6914;
}
.theme-layout2 .user-sidebar__nav-link:hover {
  color: #8b6914;
  background: #faf3e8;
}
.theme-layout2 .user-sidebar__avatar-wrap {
  background: linear-gradient(135deg, #faf7f2 0%, #f3ede4 100%);
  border-bottom-color: #e8ddd0;
}

/* On tablet: horizontal nav gold underline */
@media (max-width: 991.98px) {
  .theme-layout2 .user-sidebar__nav-item--active .user-sidebar__nav-link {
    border-bottom-color: #8b6914;
    border-left: none;
  }
}

/* Breadcrumb section */
@media (max-width: 767.98px) {
  .theme-layout2 .breacrumb-section {
    padding: 28px 15px !important;
  }
}

/* Contact page columns stack */
@media (max-width: 767.98px) {
  .theme-layout2 .form-main {
    padding: 0;
  }
}

/* =====================================================
   LAYOUT2: CLASSIC SHOP - RESPONSIVE STYLES
   Structure only - User colors preserved
   ===================================================== */

/* === HERO SLIDER - All screens === */
.hero,
.saf_hero_wrapper {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  z-index: 10 !important;
  overflow: visible;
}

.hero__slider,
.saf_hero_slider {
  display: block !important;
  width: 100% !important;
}

/* === LARGE DESKTOP (1200px+) === */
@media (min-width: 1200px) {
  .hero__slide,
  .saf_hero_slide {
    min-height: 550px;
    height: 550px;
  }
  
  .hero__slider,
  .saf_hero_slider {
    min-height: 550px;
  }
}

/* === DESKTOP (992px - 1199px) === */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero__slide,
  .saf_hero_slide {
    min-height: 500px;
    height: 500px;
  }
  
  .hero__slider,
  .saf_hero_slider {
    min-height: 500px;
  }
}

/* === TABLET (768px - 991px) === */
@media (max-width: 991.98px) {
  .hero__slide,
  .saf_hero_slide {
    min-height: 350px;
    height: 350px;
  }
  
  .hero__slider,
  .saf_hero_slider {
    min-height: 350px;
  }
  
  .hero__title,
  .saf_hero_title {
    font-size: 2.2rem;
  }
  
  .hero__desc,
  .saf_hero_desc {
    font-size: 1rem;
  }
  
  .saf_nav_items ul li a {
    padding: 8px 14px;
    font-size: 14px;
  }
  
  section,
  .layout-page__section {
    padding: 40px 0;
  }
  
  .section-title,
  .saf_section_title {
    font-size: 1.6rem;
  }
}

/* === MOBILE LANDSCAPE (576px - 767px) === */
@media (max-width: 767.98px) {
  .saf_header_logo_wrapper {
    padding: 10px 0;
  }
  
  .saf_nav_items {
    padding: 8px 0;
  }
  
  .saf_nav_items ul li a {
    padding: 8px 12px;
    margin: 2px;
    font-size: 13px;
  }
  
  .hero__title,
  .saf_hero_title {
    font-size: 1.8rem;
  }
  
  .hero__btn,
  .saf_hero_btn,
  .primary-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .saf_product_box .product-content,
  .single-product-item .product-content {
    padding: 15px;
  }
  
  .saf_product_box .product-price,
  .single-product-item .product-price {
    font-size: 18px;
  }
  
  footer,
  .saf_footer_wrapper {
    padding-top: 40px;
  }
  
  section,
  .layout-page__section {
    padding: 30px 0;
  }
}

/* === MOBILE PORTRAIT (< 576px) === */
@media (max-width: 575.98px) {
  body.layout-page {
    font-size: 14px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .saf_nav_items ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .saf_nav_items ul li a {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .hero__slide-inner {
    padding: 20px;
  }
  
  .hero__title,
  .saf_hero_title {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  
  .hero__desc,
  .saf_hero_desc {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .hero__btn,
  .saf_hero_btn,
  .primary-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .section-title,
  .saf_section_title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .saf_product_box,
  .single-product-item {
    margin-bottom: 20px;
  }
  
  .saf_product_box .product-content,
  .single-product-item .product-content {
    padding: 12px;
  }
  
  .saf_product_box .product-title,
  .single-product-item .product-title {
    font-size: 14px;
  }
  
  .saf_product_box .product-price,
  .single-product-item .product-price {
    font-size: 16px;
  }
  
  .single-latest-blog .blog-content {
    padding: 15px;
  }
  
  footer h4,
  footer h5 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  footer,
  .saf_footer_wrapper {
    padding-top: 30px;
  }
  
  .footer-copyright,
  .saf_footer_copyright {
    padding: 15px 0;
    font-size: 12px;
  }
  
  section,
  .layout-page__section {
    padding: 25px 0;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .btn-primary,
  button[type="submit"] {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* === VERY SMALL DEVICES (< 400px) === */
@media (max-width: 399.98px) {
  .hero__title,
  .saf_hero_title {
    font-size: 1.2rem;
  }
  
  .hero__btn,
  .saf_hero_btn,
  .primary-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .saf_nav_items ul li a {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* ===== Mobile nav: override inherited flex-wrap rules so dropdown stacks vertically ===== */
/* layout1/responsive.css hides .saf_nav_items and shows it via .open (display:block).
   Earlier rules in this file set flex-wrap/justify-content for the old always-visible nav.
   These overrides restore proper vertical stacking inside the fixed dropdown panel. */
@media (max-width: 991.98px) {
  .saf_nav_items.open ul {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }
}

.cart-hover__close {
  display: none !important;
}

/* Minicart: full-width fixed panel on small screens (avoids overflow past viewport left edge) */
@media (max-width: 767.98px) {
  li.cart-icon.minicart-collapsed .cart-hover,
  li.cartcart.minicart-collapsed .cart-hover {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .cart-hover__close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .cart-hover__close-icon {
    display: block;
    line-height: 1;
    margin-top: -2px;
  }

  .minicart .cart-hover,
  .cart-icon .cart-hover {
    position: fixed !important;
    left: max(12px, env(safe-area-inset-left, 0px)) !important;
    right: max(12px, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    top: max(76px, calc(env(safe-area-inset-top, 0px) + 52px)) !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 12060 !important;
    box-sizing: border-box;
    padding-top: 52px;
  }
}
