/* ==========================================================================
   Details Product Page - Main Layout Styles
   ========================================================================== */

@import url('product-details-gallery.css');
@import url('product-details-options.css');
@import url('product-details-ready-to-ship.css');

html,
body {
  overflow-x: clip;
}

#section-1 {
  overflow: visible;
  padding-bottom: 96px !important;
}

#section-1 .container-1440 {
  padding-top: 120px;
}

body.admin-bar #section-1 .container-1440 {
  padding-top: 152px;
}

/* Product Info Tabs (Flat & Underline Active) */
#section-1 .product-info-tabs {
  margin-top: 36px !important;
  margin-bottom: 36px !important;
}

#section-1 .tabs-scroll-wrapper {
  position: relative;
  width: 100%;
}

#section-1 .tabs-fade-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

#section-1 .tabs-fade-indicator.fade-left {
  left: 0;
  background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

#section-1 .tabs-fade-indicator.fade-right {
  right: 0;
  background: linear-gradient(to left, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

#section-1 .tabs-fade-indicator.is-visible {
  opacity: 1;
}

#section-1 .product-info-tabs .nav-tabs {
  border-bottom: 1px solid var(--color-5);
  list-style: none !important;
  padding-left: 0;
}

#section-1 .product-info-tabs .nav-link {
  color: var(--color-4);
  border: none;
  border-bottom: 3px solid transparent !important;
  padding-bottom: var(--sp-xs);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

#section-1 .product-info-tabs .nav-link.active {
  color: #AD1A24 !important;
  border-bottom: 3px solid #AD1A24 !important;
}

#section-1 .details-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#section-1 .details-list li {
  list-style: none !important;
}

#section-1 .details-list li::before {
  content: none !important;
}

/* Commonly Ordered Together Section */
#section-1 .commonly-ordered-block {
  margin-bottom: 48px;
}

#section-1 .commonly-ordered-header h2 {
  font-family: var(--ff-1);
  font-weight: 700;
  color: #AD1A24 !important;
  letter-spacing: 0.02em;
}

#section-1 .commonly-ordered-header hr {
  border: none;
  border-top: 1px solid var(--color-5);
  opacity: 1;
}

#section-1 .commonly-ordered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

#section-1 .commonly-ordered-card {
  background-color: var(--color-6);
  border: 1px solid var(--color-5);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-sizing: border-box;
}

#section-1 .commonly-ordered-card .card-thumb-wrap {
  aspect-ratio: 4 / 3;
  width: 100%;
  background-color: var(--color-9, #F7F7F7);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

#section-1 .commonly-ordered-card .card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#section-1 .commonly-ordered-card .card-title {
  font-family: var(--ff-1);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-1);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#section-1 .commonly-ordered-card .card-subtitle {
  font-family: var(--ff-1);
  font-size: 13px;
  color: var(--color-4);
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#section-1 .commonly-ordered-card .card-price {
  font-family: var(--ff-1);
  font-weight: 700;
  font-size: 16px;
  color: #AD1A24 !important;
  margin-top: auto;
}

/* Layout Responsive Breakpoints */
@media (min-width: 993px) {
  #section-1 .product-configurator-block {
    align-items: flex-start !important;
  }
}

@media (min-width: 993px) and (max-width: 1399px) {
  #section-1 .product-configurator-block {
    gap: 28px !important;
  }
  #section-1 .product-form-col {
    min-width: 0 !important;
  }
}

@media (min-width: 993px) and (max-width: 1199px) {
  #section-1 .product-configurator-block {
    gap: 24px !important;
  }
}

@media (min-width: 1400px) {
  #section-1 .product-configurator-block {
    gap: 32px !important;
  }
}

@media (max-width: 992px) {
  #section-1 .container-1440 {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }
  body.admin-bar #section-1 .container-1440 {
    padding-top: 132px !important;
  }
  #section-1 .sp-mb-3xl {
    margin-bottom: 36px !important;
  }
  #section-1 .sp-mb-xl {
    margin-bottom: 24px !important;
  }
  #section-1 .sp-mb-lg {
    margin-bottom: 20px !important;
  }
  #section-1 .sp-gap-xl {
    gap: 24px !important;
  }
  #section-1 .product-info-tabs {
    margin-bottom: 36px !important;
  }
  #section-1 .product-info-tabs .tab-content {
    padding-top: 16px !important;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  #section-1 .commonly-ordered-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar #section-1 .container-1440 {
    padding-top: 146px !important;
  }
}

@media (max-width: 576px) {
  #section-1 .container-1440 {
    padding-top: 100px !important;
    padding-bottom: 32px !important;
    width: 100%;
    box-sizing: border-box;
  }
  #section-1 .sp-mb-3xl {
    margin-bottom: 28px !important;
  }
  #section-1 .product-info-tabs .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    gap: var(--sp-sm);
    -ms-overflow-style: none;
  }
  #section-1 .product-info-tabs .nav-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  #section-1 .product-info-tabs .nav-item {
    flex-shrink: 0;
  }
  #section-1 .commonly-ordered-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  #section-1 .commonly-ordered-card {
    padding: 10px !important;
  }
  #section-1 .commonly-ordered-header h2 {
    font-size: 14px !important;
  }
}

/* Breadcrumbs Component Styling */
.align-breadcrumbs {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #414141;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.align-breadcrumbs .breadcrumb-link {
  color: #414141;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.align-breadcrumbs .breadcrumb-link:hover,
.align-breadcrumbs .breadcrumb-link:focus,
.align-breadcrumbs .breadcrumb-link:active {
  color: #AD1A24;
  text-decoration: none;
}

.align-breadcrumbs .breadcrumb-separator {
  margin: 0 10px;
  color: #414141;
  font-weight: 400;
  user-select: none;
}

.align-breadcrumbs .current-item {
  color: #AD1A24;
  font-weight: 600;
}

@media (max-width: 576px) {
  .align-breadcrumbs {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .align-breadcrumbs .breadcrumb-separator {
    margin: 0 6px;
  }
}

/* Floating Contact Actions Stacking & Alignment */
.floating-actions {
  z-index: 99999 !important;
  bottom: calc(var(--sp-base, 32px) + 76px) !important;
}

@media (max-width: 576px) {
  .floating-actions {
    bottom: calc(16px + 96px) !important;
  }
}

