/* ==========================================================================
   panellomobilya.com - Main Consolidated Stylesheet
   ========================================================================== */

@import url('fonts.css');
@import url('swiper-bundle.min.css');
@import url('grid.css');
@import url('rt.vendors.scss.css');
@import url('rt.application.scss.css');
@import url('rt.custom.scss.css');
@import url('header-main-new.css');
@import url('transparent-header.css');
@import url('header-megamenu.css');
@import url('header-megamenu-mobile-redesigned.css');
@import url('custom_code.css');
@import url('footer_new.css');
@import url('styles.css');

/* ==========================================================================
   Custom Modern Polish & Reset
   ========================================================================== */
:root {
  --panello-brand: #3e2328;
  --panello-brand-dark: #2a161a;
  --panello-text: #231f20;
  --panello-subtext: #666666;
  --panello-bg-light: #f8f5f2;
  --panello-bg-warm: #efe6dd;
  --panello-border: #e5e5e5;
  --panello-gold: #c5a880;
  --font-serif: 'Lato-2', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Lato-2', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--panello-text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease, color 0.2s ease;
}

/* Header Sticky Behavior */
#transparent-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#transparent-header.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

#transparent-header.scrolled .header-main-conatiner {
  background-color: #ffffff;
}

/* Nav Hover Overlay */
#nav-hover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

#nav-hover-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Megamenu enhancements */
.header-megamenu-container .main-menu > li:hover > .megamenu-wrapper,
.header-megamenu-container .main-menu > li.hover > .megamenu-wrapper {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile Megamenu Drawer */
.header-megamenu-container__mobile-redesigned {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 10001;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-megamenu-container__mobile-redesigned.active {
  left: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer Close Button */
.mobile-drawer-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 6px 10px;
  color: #231f20;
  z-index: 10;
}

/* Slide-out Cart Drawer */
.panello-cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10005;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.panello-cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.panello-cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 10006;
  box-shadow: -4px 0 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.panello-cart-drawer.active {
  right: 0;
}

@media (max-width: 480px) {
  .panello-cart-drawer {
    max-width: 100%;
  }
}

.panello-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #ebebeb;
}

.panello-cart-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
}

.panello-cart-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panello-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.panello-cart-empty {
  text-align: center;
  padding: 40px 0;
}

.panello-cart-empty-icon {
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  color: #888;
}

.panello-cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #ebebeb;
  background: #fafafa;
}

.panello-cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.panello-cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #231f20;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.panello-cart-checkout-btn:hover {
  background: var(--panello-brand);
}

/* Trending Products Carousel */
.trending-products-section {
  width: 100%;
  padding: 60px 0 40px;
}

.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  padding: 0 15px;
}

.trending-title-group h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  margin: 0 0 6px 0;
  color: #231f20;
}

.trending-title-group p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #666;
  margin: 0;
}

.trending-nav-arrows {
  display: flex;
  gap: 8px;
}

.trending-nav-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #dcdcdc;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.trending-nav-btn:hover {
  background: #231f20;
  border-color: #231f20;
  color: #ffffff;
}

.trending-nav-btn:hover svg {
  fill: #ffffff;
  stroke: #ffffff;
}

/* Product Card */
.panello-product-card {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.panello-product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.panello-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  overflow: hidden;
}

.panello-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.panello-product-card:hover .panello-card-media img {
  transform: scale(1.04);
}

.panello-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #231f20;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 2;
  letter-spacing: 0.5px;
}

.panello-card-badge.sale {
  background: #ba1526;
}

.panello-card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}

.panello-card-wishlist:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.panello-card-content {
  padding: 14px 10px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.panello-card-reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.panello-card-stars {
  color: #00b67a;
  letter-spacing: 1px;
}

.panello-card-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #231f20;
  margin: 0 0 6px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.panello-card-price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.panello-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #231f20;
}

.panello-card-compare {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.panello-card-add-btn {
  margin-top: 12px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  color: #231f20;
  border: 1px solid #231f20;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.panello-card-add-btn:hover {
  background: #231f20;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .trending-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   Section 08: The Best Sellers Carousel Polish
   ========================================================================== */
#frontpage-nosto-redesign-272 {
  opacity: 1 !important;
  visibility: visible !important;
}

#frontpage-nosto-redesign-272 .nosto_carousel:not(.slick-initialized) {
  display: block !important;
}

#frontpage-nosto-redesign-272 .slick-list {
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

#frontpage-nosto-redesign-272 .slick-track {
  display: flex !important;
  width: max-content !important;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1) !important;
  gap: 0 !important;
}

#frontpage-nosto-redesign-272 .nosto-item {
  width: 318px !important;
  flex: 0 0 318px !important;
  padding-inline: 14px !important;
  box-sizing: border-box !important;
  float: none !important;
  display: block !important;
}

#frontpage-nosto-redesign-272 .grid__image {
  height: 300px !important;
  display: block !important;
  overflow: hidden !important;
  position: relative !important;
}

#frontpage-nosto-redesign-272 .grid__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}

#frontpage-nosto-redesign-272 .nosto-item:hover .grid__image img {
  transform: scale(1.03) !important;
}

#frontpage-nosto-redesign-272 .slick-prev,
#frontpage-nosto-redesign-272 .slick-next {
  user-select: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

#frontpage-nosto-redesign-272 .slick-prev:hover,
#frontpage-nosto-redesign-272 .slick-next:hover {
  background-color: #231F20;
}

#frontpage-nosto-redesign-272 .slick-prev:hover svg path,
#frontpage-nosto-redesign-272 .slick-next:hover svg path {
  fill: #ffffff;
}

@media (max-width: 768px) {
  #frontpage-nosto-redesign-272 .nosto-item {
    width: 215px !important;
    flex: 0 0 215px !important;
    padding-inline: 8px !important;
  }
  #frontpage-nosto-redesign-272 .grid__image {
    height: 175px !important;
  }
  #frontpage-nosto-redesign-272 .slick-list {
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  #frontpage-nosto-redesign-272 .slick-list::-webkit-scrollbar {
    display: none;
  }
}

/* ==========================================================================
   Section 17: Instagram / Follow Us on Social Polish
   ========================================================================== */
.panello-social-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 50px;
}

.panello-social-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: block;
  text-decoration: none;
}

.panello-social-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.panello-social-card:hover img {
  transform: scale(1.04);
}

.panello-social-card .social-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.panello-social-card:hover .social-hover-overlay {
  opacity: 1;
}

@media (max-width: 991px) and (min-width: 769px) {
  .panello-social-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

.social-load-more-btn {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
  padding: 10px 36px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}

.social-load-more-btn:hover {
  background: #000000;
  color: #ffffff;
}

/* Newsletter Form */
.panello-newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  max-width: 480px;
  margin: 16px auto 0;
  width: 100%;
}

.panello-newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #000;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  background: #fff;
  border-radius: 0;
}

.panello-newsletter-form button {
  height: 42px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

@media (max-width: 768px) {
  .panello-social-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .panello-newsletter-form {
    padding: 0;
    box-sizing: border-box;
    width: 100%;
  }

  .panello-newsletter-form input {
    min-width: 0 !important;
    font-size: 13px !important;
    padding: 0 12px !important;
  }

  .panello-newsletter-form button {
    padding: 0 14px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }
}

/* ==========================================================================
   Section 13 & 16: Image-Text Split 50/50 Layout (.itsp)
   ========================================================================== */
.itsp {
  width: 100vw;
  box-sizing: border-box;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-top: 40px;
  padding-bottom: 41px;
  display: grid;
}

@media (max-width: 1024px) {
  .itsp {
    padding-top: 22px;
    padding-bottom: 23px;
  }
}

@media screen and (max-width: 480px) {
  .itsp {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.itsp__inner {
  display: grid;
  grid-template-columns: min(762px, 50%) 1fr;
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  min-height: 445px;
}

@media screen and (max-width: 768px) {
  .itsp__inner {
    grid-template-columns: min(426px, 50%) 1fr;
    min-height: 249px;
  }
}

@media (max-width: 480px) {
  .itsp__inner {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-bottom: 10px;
  }
}

.itsp--img-right .itsp__inner {
  direction: rtl;
}

.itsp--img-right .itsp__inner > * {
  direction: ltr;
}

.itsp--img-left .itsp__inner {
  gap: 59px;
}

@media (max-width: 1024px) {
  .itsp--img-left .itsp__inner {
    gap: 32px;
  }
}

@media screen and (max-width: 480px) {
  .itsp--img-left .itsp__inner {
    gap: 0;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .itsp--img-left .itsp__text-col {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .itsp--img-left .itsp__inner > .itsp__text-col {
    padding-left: 0 !important;
  }
}

@media screen and (max-width: 491px) {
  .itsp--img-left .itsp__inner > .itsp__text-col {
    padding-left: 15px !important;
  }
}

.itsp__image-col {
  position: relative;
  overflow: hidden;
  justify-self: flex-end;
  width: 100%;
}

.itsp__image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.itsp__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.itsp--img-right .itsp__text-col {
  padding-left: 120px;
}

@media (max-width: 1440px) {
  .itsp--img-right .itsp__text-col {
    padding-left: max(40px, calc((100vw - 1200px) / 2));
  }
}

.itsp__text-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .itsp__text-col {
    padding: 48px 40px;
  }
}

@media (max-width: 768px) {
  .itsp__text-col {
    padding-left: 40px;
  }
}

@media screen and (max-width: 490px) {
  .itsp__text-col {
    padding: 20px 15px !important;
  }
}

.itsp__text-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 90%;
}

.itsp__heading {
  font-family: 'Lato-2', 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
}

@media (max-width: 1024px) {
  .itsp__heading {
    font-size: 16px;
  }
}

.itsp__body {
  font-family: Lato-2, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  color: #606060;
  margin: 0;
  max-width: 415px;
}

@media screen and (max-width: 1024px) {
  .itsp__body {
    font-size: 10px;
  }
}

@media screen and (max-width: 490px) {
  .itsp__body {
    line-height: 10px;
    max-width: 70%;
  }
}

.itsp__btn {
  display: inline-block;
  font-family: Lato-2, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  border: 1px solid #000000;
  padding: 0 11px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
  align-self: flex-start;
}

.itsp__btn:hover {
  background: #000000;
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .itsp__btn {
    font-size: 9px;
    padding: 2px 9px;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE REFINEMENTS: Section 16/13 Split Stability & Section 17 UGC Grid
   -------------------------------------------------------------------------- */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.shopify-section {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  box-sizing: border-box;
}

/* Section 16 & 13 Image Text Split Full-width breakout */
.shopify-section--image-text-split {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.itsp {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

.itsp__inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 445px;
}

@media (max-width: 768px) {
  .itsp__inner {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .itsp--img-right .itsp__inner {
    direction: ltr !important;
  }
  .itsp__image-col {
    order: 1 !important;
    width: 100% !important;
    min-height: 260px !important;
  }
  .itsp__text-col {
    order: 2 !important;
    width: 100% !important;
    padding: 30px 20px !important;
  }
  .itsp__btn {
    display: inline-block !important;
    padding: 8px 18px !important;
    font-size: 12px !important;
  }
}

/* Section 17: Follow Us On Social - 8 Instagram Cards (4x2 grid) & Load More */
.panello-social-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

.panello-social-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  background: #fbf9f6;
  border-radius: 2px;
}

.panello-social-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.panello-social-item:hover img {
  transform: scale(1.05);
}

.panello-social-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.panello-social-item:hover .panello-social-hover {
  opacity: 1;
}

.panello-social-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 36px 0 55px 0;
  width: 100%;
}

.panello-social-load-more-btn {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 11px 34px;
  cursor: pointer;
  border-radius: 0;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.panello-social-load-more-btn:hover {
  background: #000000;
  color: #ffffff;
}

@media (max-width: 768px) {
  .panello-social-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
  }
  .panello-social-load-more-wrap {
    margin: 24px 0 36px 0;
  }
}
