/* The7 Theme Overrides */
/* The7 overrides – only for products */
.post-type-archive-so_product #main,
.single-so_product #main {
  padding-top: 40px !important; /* remove the big gap */
}

.post-type-archive-so_product .page-title,
.single-so_product .page-title {
  display: none; /* hide generic "Archives: Shop Products" etc */
}

.single-so_product #main ol, .single-so_product #main ul{
  margin: 20px 0 20px 30px;
  list-style-type: disc;
}
.single-so_product #main ol li, .single-so_product #main ul li{
  padding: 5px
}

/* Layout wrapper */
.so-shop-wrap {
  display: flex;
  gap: 40px;
  margin: 40px auto 60px;
}

/* Main area */
.so-shop-main {
  flex: 1;
}

.so-shop-heading {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 25px;
   margin-top: 25px;
  text-align: center;
}


.so-btn.so-btn-flat.help,
.so-btn.so-btn-flat.activation,
.so-btn.so-btn-flat.login{
  background: #fff;
  color: #0849E2;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  border:2px solid #0849E2
}
.so-btn.so-btn-flat.help:hover,
.so-btn.so-btn-flat.activation:hover,
.so-btn.so-btn-flat.login:hover {
  background: #C7EDFE;
}

/* Card */
.so-shop-card {
  display: flex;
  flex-direction: column;
  background: #F9F7F7;
  padding: 20px 25px 30px 25px;
  text-align: center;
}

/* Hover “pop” */
.so-shop-card:hover {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-.5px);
}

.so-shop-card-thumb img {
  display: block;
  margin: 0 auto 15px;
}

.so-shop-card-title {
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.so-shop-card-title a {
  text-decoration: none;
  color:#1F1F1F;
  font-size: 18px;
}

.so-shop-card-format {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color:#2B39A9;
}

.so-shop-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.so-shop-card-price {
  font-weight: 700;
}

/* Card footer buttons */
.so-shop-card-footer {
  margin-top: auto;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.so-shop-card-footer .so-btn{
  margin-top: 20px;
}

.so-btn {
  margin: 0px;
  padding: 6px 16px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  border-radius: 999px;
  text-align: center;
  max-width: 40%;
  width: 100%;
  background: #efefef;
  font-weight: 500;
  border:2px solid transparent;
}

.so-single-wrap .so-btn { min-width: 30%; }
/* Make the CTA buttons span the full row */
.so-single-cta-row {
  display: flex;
  gap: 10px;           /* space between buttons */
}

.so-single-cta-row .so-btn {
  flex: 1 1 0;         /* each button takes equal share of the row */
  text-align: center;  /* keep text centered */
  white-space: nowrap; /* prevent labels from wrapping */
}

.so-single-price.app, .so-shop-card-price.app, .so-related-price.app{ color: #d0021b; font-weight: 600; }

/* Optional: stack buttons on small screens */
@media (max-width: 600px) {
  .so-single-cta-row {
    flex-direction: column;
  }
}

/* CTA row underline */
.so-single-cta-row {
  position: relative;
  padding-bottom: 16px;   /* space above the line */
  margin: 20px 0px;    /* space below the line */
}

.so-bar {
  width: 40px;            /* length of the orange bar */
  height: 2px;            /* thickness */
  background-color: #f7941d;  /* your orange */
  margin-bottom: 25px;
  display: none !important
}
 .so-single-title{
	  color: #1F1F1F;
    font-size: 26px;
    line-height: 32px;
    font-weight: 600;
 }
 .so-single-format{
    color: #2B39A9;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 10px !important;
    text-transform: capitalize;
 }

/* Layout is already two-col; we just style the gallery itself */

.so-gallery-main {
  margin-bottom: 16px;
}

.so-gallery-main-item {
  display: none;
}

.so-gallery-main-item.is-active {
  display: block;
}

.so-gallery-main img {
  width: auto;
  max-height: 500px;
  height: 100%;
  display: block;
}

/* Thumbnails row */
.so-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.so-gallery-thumb {
  border: 2px solid transparent;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
}

.so-gallery-thumb img {
  display: block;
  width: 70px;        /* adjust to match live look */
  height: auto;
}

.so-gallery-thumb.is-active {
  border-color: #0046cc; /* match your brand blue */
}


/* Top row: image left, info right */
.so-single-top{
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.so-single-left{
  flex: 0 0 45%;
  max-width: 45%;
}

.so-single-right{
  flex: 1 1 auto;
  min-width: 0;
}

/* Mobile stacking */
@media (max-width: 900px){
  .so-single-top{
    flex-direction: column;
    gap: 40px;
  }
  .so-single-left,
  .so-single-right{
    max-width: 100%;
    flex-basis: auto;
  }
}

.so-btn-primary.learn{
  background: #fff;
  border: 2px solid #2B39A9;
  color: #2B39A9;
}

.so-btn-outline {
  background: #2B39A9;
  color: #fff;
}
.so-btn-primary.learn:hover,.so-btn-outline:hover{
    background: #C7EDFE;
    text-decoration: none !important;
}

.so-btn-flat {
  background: #0849E2;
  color: #fff;
}
.so-btn-flat:hover {
  background: #2B39A9;
  color: #fff;
  text-decoration: none !important;
}

/* 3-column grid on desktop */
.so-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.so-single-inner {
  display: flex;
  gap: 40px;
}

.so-single-left {
  flex: 0 0 320px;
}

.so-single-right {
  flex: 1;
}

/* Title + badge row */
.so-single-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.so-single-header-main {
  max-width: 70%;
}

.so-single-badge img {
  display: block;
  max-width: 140px;
  height: auto;
}

/* Related products */
.so-related-wrap {
  background: #f5f5f5;
  padding: 40px 0 40px;
  margin-top: 40px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.so-related-inner {
  width: 100%;
  margin: 0 auto;
}

.so-related-heading {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}

.so-related-grid {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  /*
  grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1200px;
    */
  grid-template-columns: repeat(auto-fit, minmax(0, 380px));
  width: fit-content;
  margin: 0 auto;
  justify-content: center;
}

.so-related-card {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  text-align: center;
}
so-related-card {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  text-align: center;
}

/* Hover “pop” */
.so-related-card:hover {
  transform: translateY(-2px);
}

.so-related-thumb img {
  display: block;
  margin: 0 auto 15px;
  width: 100%;
  height: auto;
  max-width: 300px;
      max-height: 300px;
    width: auto;
}

.so-related-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 24px;
}

.so-related-format {
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 6px;
  color:#2B39A9;
}

.so-related-price {
  font-weight: 700;
}

.so-related-excerpt {
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 5px;
}

.so-related-buttons {
  margin-top: auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.tax-so_category .page-title {
  display: none;
}
/*
.tax-so_category #main {
    padding-top: 40px !important;
}
*/
/* Highlight active category in sidebar */
.so-shop-filter-item.is-active > a {
  font-weight: 700;
  text-decoration: underline;
}
/* Empty state grid: single full-width card */
.so-shop-grid-empty {
  grid-template-columns: 1fr;
}

/* Empty state card styling */
.so-shop-card-empty {
  text-align: center;
  font-size: 16px;
  padding: 40px 30px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Sidebar base styles ---------- */

.so-shop-sidebar {
  flex: 0 0 220px;
  max-width: 220px;
}

/* Desktop heading */
.so-shop-sidebar-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
}

/* Mobile toggle (hidden on desktop by default) */
.so-shop-cat-toggle {
  display: none;
}

/* Category list */
.so-shop-filter {
  list-style: none;
  margin: 0;
  padding: 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.so-shop-filter-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.so-shop-filter-item:last-child {
  border-bottom: 0;
}

.so-shop-filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.so-shop-filter-link {
  flex: 1;
  text-decoration: none;
  color: #111827;
  font-size: 15px;
  line-height: 1.3;
}

.so-shop-filter-item:hover .so-shop-filter-link {
  color: #0055ff;
}

/* Active state */
.so-shop-filter-item.is-active .so-shop-filter-link {
  font-weight: 700;
  color: #0055ff;
}

.so-shop-filter-toggle {
  border: none;
  background: transparent;
  color: #111827;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.so-shop-filter-toggle:focus-visible {
  outline: 2px solid #0055ff;
  outline-offset: 2px;
}

.so-shop-filter-toggle-icon::before {
  content: '+';
  font-size: 18px;
  line-height: 1;
  font-family: 'icomoon-the7-font';
}

.so-shop-filter-toggle.is-open .so-shop-filter-toggle-icon::before {
  content: '-';
}
.so-shop-filter-panel {
  padding: 10px 0 0;
}

.so-shop-filter-panel[hidden] {
  display: none;
}

.so-shop-filter-links {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.so-shop-filter-links li {
  line-height: normal;
  padding-bottom: 5px;
  padding-left: 5px;
  border-bottom: 1px solid #eee;
}
.so-shop-filter-links li:last-child {
  padding-bottom: 5px;
  border-bottom: unset !important;
}
.so-shop-filter-links a {
  text-decoration: none;
  color: #4b5563;
  font-size: 14px;
}

.so-shop-filter-links a:hover {
  color: #0055ff;
}

/* Mobile tweaks */
@media (max-width: 768px) {

.so-related-card {
  padding: 0px 25px;
}
.so-related-heading { margin-bottom: 0px; }
.so-related-wrap{ padding-bottom: 70px }
  .so-shop-filter-header button.so-shop-filter-toggle{
    display: none !important;
  }

  /* Hide desktop title, show toggle */
  .so-gallery-thumbs {
    justify-content: center;
  }

  .so-btn {
    max-width: 50%;
    display: inline-block;
  }

  .so-shop-sidebar {
    flex: 0 0 0;
    max-width: 100%;
  }

  .post-type-archive-so_product #main {
    padding-top: 0 !important;
  }

  /* Hide desktop title, show toggle */
  .so-shop-sidebar-title {
    display: none;
  }

  .so-shop-cat-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .so-shop-cat-toggle-icon {
    transition: transform 0.2s ease;
  }

  /* Collapse list by default on mobile */
  .so-shop-filter {
    display: none;
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
  }

  /* When sidebar is open, show list & rotate chevron */
  .so-shop-sidebar.is-open .so-shop-filter {
    display: block;
  }

  .so-shop-sidebar.is-open .so-shop-cat-toggle-icon {
    transform: rotate(-180deg);
  }
}


#footer #custom_html-2 .footer-headline{ font-weight: 700; }

/* Responsive */
@media (max-width: 960px) {
  .so-single-inner {
    flex-direction: column;
  }
  .so-single-header-main {
    max-width: 100%;
  }
  .so-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .so-related-grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .so-single-header {
    flex-direction: column;
  }
  .so-single-badge img {
    max-width: 120px;
  }
}


/* On medium screens, 2 per row; on small, 1 per row */
@media (max-width: 1024px) {
  .so-shop-wrap {
    flex-direction: column;
  }
  .so-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .so-shop-grid {
    grid-template-columns: 1fr;
  }
}

.single-so_product .so-single-inner{
  display: block !important;
  gap: 0 !important;
}

.single-so_product #main > .wf-wrap, #bottom-bar > .wf-wrap, #footer > .wf-wrap{
    max-width: 1200px;
    width: 100% !important;
}

.single-so_product .so-single-top{
  display: flex;
  align-items: flex-start;
}

.single-so_product .so-single-top .so-single-left{
  flex: 0 0 45% !important;
  max-width: 45% !important;
}

.single-so_product .so-single-top .so-single-right{
  flex: 1 1 auto !important;
  min-width: 0;
  max-width: none !important;
}

.single-so_product .so-single-header-main{
  max-width: 100% !important;   /* remove 70% cap on single */
}

.single-so_product .so-sub-title{
  margin: 10px 0 12px;
  font-size: 18px;
  line-height: 1.4;
  color: #1F1F1F;
}

.single-so_product .so-single-cta-row{
  flex-wrap: wrap;
}

.single-so_product .so-single-cta-row .so-btn{
  width: auto;
  flex: 0 0 auto;               /* don't force equal-width buttons */
  padding: 10px 22px;
  font-size: 14px;
}

/* Mobile stacking */
@media (max-width: 900px){
  .single-so_product .so-single-top{
    flex-direction: column;
    gap: 28px;
  }
  .single-so_product .so-single-top .so-single-left,
  .single-so_product .so-single-top .so-single-right{
    max-width: 100% !important;
    flex-basis: auto !important;
  }

  .single-so_product .so-single-cta-row{
    flex-direction: column;
  }

  .single-so_product .so-single-cta-row .so-btn{
    width: 100%;
  }
}

/* Keep the overall container from feeling too wide */
.single-so_product .so-single-wrap.dt-container{
  max-width: 1100px;
}

.single-so_product .so-single-top .so-single-left{
  display: flex;
  justify-content: center;  /* centers the image within the left column */
  flex: 0 0 520px !important;
  max-width: 520px !important;
}

.single-so_product .so-gallery,
.single-so_product .so-single-image-fallback{
  width: 100%;
  max-width: 520px;
}

.single-so_product .so-single-top .so-single-right{
  flex: 0 1 520px !important;
  max-width: 520px !important;
}

.single-so_product .so-sub-title{
  margin: 0 0 14px;
}

.single-so_product .so-available-at {
    margin: 24px 0 5px;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 600;
    color: #1F1F1F;
}

/* Stack CTAs (desktop) */
.single-so_product .so-single-cta-row{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.single-so_product .so-single-cta-row .so-btn{
  min-width: 160px;        /* pill width like your XD */
  justify-content: center;
  border-radius: 999px;
}

/* Bottom description width and centering */
.single-so_product .so-single-bottom{
  max-width: 1100px;
  margin-top: 30px;
}

.so-single-description .so-col-break{
  break-before: column;
  -webkit-break-before: column; /* Safari */
}

/* Typography / rhythm */
.single-so_product .so-single-section-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.col-span-all{
  column-span: all;
  -webkit-column-span: all; /* Safari */
  break-inside: avoid;
  margin-bottom: 5px;
}

.single-so_product .so-single-description{
  font-size: 15px;
  line-height: 1.5;
}
.single-so_product .so-single-description strong{ font-weight: 600; }

/* Lists look “designed” */
.single-so_product .so-single-description ul,
.single-so_product .so-single-description ol{
  padding-left: 22px;
  margin: 12px 0 18px;
}

/* Responsive */
@media (max-width: 1100px){
  .single-so_product .so-single-top{
    max-width: 100%;
  }
  .single-so_product .so-single-top .so-single-left,
  .single-so_product .so-single-top .so-single-right{
    max-width: 50% !important;
    flex-basis: 50% !important;
  }
}

@media (max-width: 900px){
  .single-so_product .so-single-top .so-single-left,
  .single-so_product .so-single-top .so-single-right{
    max-width: 100% !important;
    flex-basis: auto !important;
  }
  .single-so_product .so-single-bottom{
    max-width: 100%;
  }
  .single-so_product .so-single-cta-row .so-btn{
    box-sizing: border-box;  /* key fix: include padding in width */
    display: block;
    width: 100%;
    max-width: 430%;
  }
}

@media (min-width: 992px) {
  .so-single-description{
    column-count: 2;
    column-gap: 48px;   
    column-rule: 0;     
  }

  /* Keep common blocks from splitting awkwardly */
  .so-single-description h1,
  .so-single-description h2,
  .so-single-description h3,
  .so-single-description ul,
  .so-single-description ol,
  .so-single-description blockquote,
  .so-single-description figure,
  .so-single-description img,
  .so-single-description table{
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
  }

  .so-single-description .product-subheadline{
    column-span: all;
    display: block;
    margin-bottom: 14px;
  }
}

@media (min-width: 901px){

  /* Ensure the row height is driven by the tallest column (image) */
  .single-so_product .so-single-top{
    align-items: stretch !important;
  }

  /* Center the entire right-side content vertically */
  .single-so_product .so-single-top .so-single-right{
    display: flex !important;
    flex-direction: column;
    justify-content: center; /* this is the key */
  }

  /* If your theme adds extra top spacing somewhere, neutralize it */
  .single-so_product .so-single-header{
    margin-top: 0 !important;
  }
  .single-so_product .so-single-top .so-single-right{
    transform: translateY(20px);
  }
}
