.navbar-inverse {
  margin-bottom: 0;
}


.productpage {
  margin: 0;
  margin-top: 100px;
  background-color: #ffffff;
}



/* Fix navbar size on product detail page - make it compact like scrolled state */
/* PRIMARY FIX: Target navbar directly when productpage class exists - works immediately, no JS needed */
/* Use :has() selector for modern browsers - highest priority */
@supports selector(:has(*)) {

  /* Force compact navbar core */
  html:has(.productpage) header.site-header .site-header__core,
  html:has(.productpage) header.site-header.scrolled .site-header__core {
    padding: 1rem 4vw !important;
    min-height: 65px !important;
  }

  /* Hide nav section on desktop */
  @media (min-width: 992px) {

    html:has(.productpage) header.site-header .site-header__nav,
    html:has(.productpage) .site-header__nav {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      min-height: 0 !important;
      max-height: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden !important;
      border: none !important;
      opacity: 0 !important;
    }

    html:has(.productpage) header.site-header .site-header__nav .navigation {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      min-height: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
    }

    /* Hide utility bar */
    html:has(.productpage) header.site-header .site-header__utility {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      min-height: 0 !important;
      max-height: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden !important;
    }
  }
}

/* Fallback: Use body class added by JavaScript */
body.product-detail-page header.site-header .site-header__core,
body.product-detail-page header.site-header.scrolled .site-header__core {
  padding: 1rem 4vw !important;
  min-height: 65px !important;
}

@media (min-width: 992px) {

  body.product-detail-page header.site-header .site-header__nav,
  body.product-detail-page .site-header__nav {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: none !important;
    opacity: 0 !important;
  }

  body.product-detail-page header.site-header .site-header__nav .navigation {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.product-detail-page header.site-header .site-header__utility {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}

/* Responsive spacing for different device views */
@media (max-width: 992px) {
  .productpage {
    margin-top: 50px;

  }
}

@media (max-width: 755px) {
  .productpage {
    margin-top: 30px;
  }
}

@media (max-width: 500px) {

  .productpage {
    margin-top: 20px;
  }
}

@media (max-width: 450px) {
  .productpage {
    margin-top: 0px;
  }
}

@media (max-width: 360px) {
  .productpage {
    margin-top: 0px;
  }
}

/* Enhanced Size Error Notification */
.size-error-notification {
  position: fixed;
  /* Use CSS variable for navbar height + 20px padding */
  top: calc(var(--site-header-height-desktop, 168px) + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
  z-index: 10019;
  /* Just below navbar (navbar is 10020) but above other content */
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: slideDown 0.4s ease-out, shake 0.5s ease-out 0.4s;
  min-width: 300px;
  max-width: 90%;
  text-align: center;
}

.size-error-notification i {
  font-size: 20px;
  animation: pulse 1s ease-in-out infinite;
}

.size-error-notification span {
  flex: 1;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(-50%) translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-50%) translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(-50%) translateX(5px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Mobile adjustments for size error */
@media (max-width: 991px) {
  .size-error-notification {
    top: calc(var(--site-header-height-tablet, 132px) + 20px);
  }
}

@media (max-width: 768px) {
  .size-error-notification {
    top: calc(var(--site-header-height-mobile, 96px) + 20px);
    font-size: 14px;
    padding: 14px 20px;
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .size-error-notification {
    top: calc(var(--site-header-height-mobile, 96px) + 20px);
    font-size: 13px;
    padding: 12px 18px;
    min-width: 260px;
    max-width: 95%;
  }
}


.gfg {
  font-family: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

.gfg {

  width: 100%;
  background-color: black;
}



/* Scoped to product page only - don't affect footer */
.productpage .container,
main.container {
  border-radius: 0;
  background-color: #ffffff;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}


.offers {
  text-align: center;
  color: #222;

}

.navbar navbar-inverse {
  margin-bottom: 0px;

}



/* Scoped to product page only - don't affect footer */
.productpage .container-fluid {
  padding-left: 0px;
}

/* Ensure footer container-fluid is not affected */
footer .container-fluid,
.footer .container-fluid {
  padding-left: inherit !important;
}

div .btn1 {
  position: absolute;
  top: 37%;
  left: 35%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  background-color: #c3b78f;
  color: white;
  font-size: 30px;
  padding: 20px 220px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
}



ul {
  margin-bottom: 0;
}



* {
  box-sizing: border-box;
}

/* Scoped to product page rows only - don't affect footer */
.productpage .row:not(.products-row):not(footer .row),
main.container .row:not(.products-row):not(footer .row) {
  display: flex;
}

/* Create three equal columns that sits next to each other */
.card {
  flex: 33.33%;
  padding: 0px;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 388px;
  margin: auto;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 40px;
}

.card-body {
  color: grey;
  font-size: 22px;
  font-weight: bold;
}


.btn-primary {
  outline: 0;
  padding: 14px 0;
  color: #000000;
  background-color: #ffffff;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 13px;
  border-radius: 0;
  border: 1px solid #000000;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  margin-top: 10px;
}

.btn-primary:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration-line: none;
}

.btn-primary:disabled {
  background-color: #f5f5f5;
  color: #999999;
  border-color: #e5e5e5;
  cursor: not-allowed;
}

.card button:hover {
  opacity: 0.7;

}




body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
}

/* 
h1,h2,h3,h4,h5,h6{
  text-align: center;
} */

.okok {
  color: #9d9d9d;
}

.okok a:hover {
  color: white;
}



/* Scoped to product page main container only */
.productpage main.container,
main.container.product-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
}

/* Ensure footer container and rows are not affected by product page styles */
footer .container,
.footer .container {
  max-width: 1170px !important;
  margin: auto !important;
  padding: inherit !important;
  display: block !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}

/* Ensure footer rows use Bootstrap grid system */
footer .row,
.footer .row {
  display: block !important;
  margin-right: -15px !important;
  margin-left: -15px !important;
}

footer .row::before,
footer .row::after,
.footer .row::before,
.footer .row::after {
  content: " ";
  display: table;
}

footer .row::after,
.footer .row::after {
  clear: both;
}

/* Columns */
.left-column {
  width: 50%;
  position: relative;
  padding: 0;
}

.right-column {
  width: 50%;
  margin-top: 0;
  padding: 0 60px;
  /* Adjusted padding */
  max-width: 600px;
  position: sticky;
  top: 100px;
  /* Sticky positioning for desktop */
  height: fit-content;
}


/* Left Column */
.left-column img {
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: all 0.3s ease;

}

.left-column img.active {
  opacity: 1;

}

/* Product Description */
.product-description {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.product-description span {
  font-size: 11px;
  color: #000000;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  display: block;
  margin-bottom: 10px;
}

.product-description h1 {
  font-weight: 300;
  font-size: 24px;
  color: #000000;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 10px 0 15px 0;
}

.product-description p {
  font-size: 14px;
  font-weight: 300;
  color: #666666;
  line-height: 22px;
  margin: 0;
}


/* Product Color */
.product-colors {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e5e5e5;
}

.product-colors span {
  font-size: 11px;
  color: #000000;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
  font-weight: 400;
}

.product-colors a {
  text-decoration: none;
}


/* Product Price */
.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.product-price span {

  font-weight: 400;
  color: #000000;
  margin-right: 10px;
  width: auto;
}

.product-price h3 {
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  margin: 0;
}

.product-price h3 p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.product-price h3 strike {
  color: #999999;
  font-weight: 300;
  margin-right: 10px;
}

.product-price h3 sub {
  font-size: 12px;
  color: #000000;
  font-weight: 400;
  vertical-align: baseline;
  margin-left: 8px;
}

.color-choose div {
  display: inline-block;
}

.color-choose input[type="radio"] {
  display: none;
}

.color-choose input[type="radio"]+label span {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: -1px 4px 0 0;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 50%;
}

.color-choose input[type="radio"]+label span {
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);
}

.color-choose input[type="radio"]#red+label span {
  background-color: #C91524;
}

.color-choose input[type="radio"]#blue+label span {
  background-color: #314780;
}

.color-choose input[type="radio"]#black+label span {
  background-color: #323232;
}

.color-choose input[type="radio"]:checked+label span {
  background-image: url(images/check-icn.svg);
  background-repeat: no-repeat;
  background-position: center;
}

/* Cable Configuration */
.cable-choose {
  margin-bottom: 20px;
}

.cable-choose button {
  border: 2px solid #E1E8EE;
  border-radius: 6px;
  padding: 13px 20px;
  font-size: 14px;
  color: #5E6977;
  background-color: #fff;
  cursor: pointer;
  transition: all .5s;
}

.cable-choose button:hover,
.cable-choose button:active,
.cable-choose button:focus {
  border: 2px solid #86939E;
  outline: none;
}

.cable-choose label {
  text-transform: uppercase !important;
}

.product-configuration {
  margin-bottom: 30px;
}

/* Product Configuration Paragraph - Base Font Size */
.product-configuration p {
  font-size: 15px;
  /* Increased from 14px */
}

/* Responsive Font Sizes for Product Configuration Paragraph */
/* Desktop and Large Tablets */
@media (max-width: 992px) {
  .product-configuration p {
    font-size: 15px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .product-configuration p {
    font-size: 14px;
  }
}

/* Small Tablets */
@media (max-width: 655px) {
  .product-configuration p {
    font-size: 13px;
    /* Set minimum legible size */
  }
}

/* Mobile Devices */
@media (max-width: 555px) {
  .product-configuration p {
    font-size: 13px;
    /* Set minimum legible size */
  }
}

/* Small Mobile Devices */
@media (max-width: 500px) {
  .product-configuration p {
    font-size: 13px;
    /* Set minimum legible size */
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 450px) {
  .product-configuration p {
    font-size: 13px;
    /* Set minimum legible size */
  }
}

/* Very Small Mobile Devices */
@media (max-width: 355px) {
  .product-configuration p {
    font-size: 13px;
    /* Set minimum legible size */
  }
}

/* Tiny Mobile Devices */
@media (max-width: 300px) {
  .product-configuration p {
    font-size: 13px;
    /* Set minimum legible size */
  }
}

.cable-config {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.cable-config a {
  color: #358ED7;
  text-decoration: none;
  font-size: 12px;
  position: relative;
  margin: 10px 0;
  display: inline-block;
}

.cable-config a:before {
  content: "?";
  height: 15px;
  width: 15px;
  border-radius: 50%;
  border: 2px solid rgba(53, 142, 215, 0.5);
  display: inline-block;
  text-align: center;
  line-height: 16px;
  opacity: 0.5;
  margin-right: 5px;
}

/* Shipping Options Note - matches website style */
.shipping-options-note {
  border-top: 1px solid #e5e5e5;
  margin-top: 30px;
  padding-top: 20px;
  font-family: "Montserrat", sans-serif;
}

.shipping-options-label {
  font-size: 13px;
  /* Increased from 11px */
  color: #000000;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
  font-weight: 400;
}

.shipping-options-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shipping-options-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shipping-options-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.shipping-option-name {
  font-size: 14px;
  /* Increased from 13px */
  font-weight: 400;
  color: #000000;
  display: block;
  line-height: 1.4;
}

.shipping-option-desc {
  font-size: 14px;
  /* Increased from 13px */
  font-weight: 300;
  color: #666666;
  display: block;
  line-height: 1.5;
}

.shipping-option-desc strong {
  font-weight: 400;
  color: #000000;
}



.cart-btn {
  display: inline-block;
  background-color: #7DC855;
  border-radius: 6px;
  font-size: 16px;
  color: #FFFFFF;
  text-decoration: none;
  padding: 12px 30px;
  transition: all .5s;
}

.cart-btn:hover {
  background-color: #64af3d;
}

/* Style for the size radio buttons */
.cable-choose input[type="radio"] {
  display: none;
}

.cable-choose label {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 10px 20px;
  background-color: #ffffff;
  color: #000000;
  cursor: pointer;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 400;
  min-width: 50px;
  text-align: center;
}

.cable-choose label:hover {
  border-color: #000000;
}

.cable-choose input[type="radio"]:checked+label {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.cable-config span {
  font-size: 11px;
  color: #000000;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
  font-weight: 400;
}


.backbutton {
  background-color: transparent;
  color: var(--zara-text, #1a1a1a);
  border: 1px solid var(--zara-border, #e5e5e5);
  padding: 8px 15px;
  border-radius: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 20px;
  margin: 30px;
}

.backbutton:hover {
  background-color: var(--zara-gray, #f5f5f5);
  border-color: var(--zara-text, #1a1a1a);
}







/* <!---------------------------------------- Style ph ------------------------------------------> for imgs  */







/* ============================================
 PRODUCT IMAGE GALLERY - CONTAINERPH STRUCTURE
 Modern, accessible, and responsive design
 ============================================ */

/* CSS Custom Properties for maintainability */
:root {
  --product-gallery-gap: 20px;
  --product-gallery-thumbnail-width: 146.6px;
  --product-gallery-thumbnail-height: 220px;
  --product-gallery-slide-width: 500px;
  --product-gallery-slide-height: 660px;
  --product-gallery-image-width: 439.8px;
  --product-gallery-image-height: 660px;
  --product-gallery-border-color: #e5e5e5;
  --product-gallery-border-hover: #000000;
  --product-gallery-transition: 0.3s ease;

}

/* Product Gallery Container Wrapper */
#divph {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Product Gallery Main Container - Best Practice Structure */
.containerph {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 40px;
  /* Increased gap for better desktop breathing room */
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Thumbnail Navigation Container */
.thumbnailsph {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
  height: var(--product-gallery-slide-height);
  /* Match slide height */
}

/* Vertical scroll for thumbnails in laptop/desktop view */
.thumbnailsph {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  scrollbar-color: var(--product-gallery-border-color) transparent;
  padding-right: 0px;
  /* Space for scrollbar */
}

/* Custom scrollbar styling */
.thumbnailsph::-webkit-scrollbar {
  width: 6px;
}

.thumbnailsph::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnailsph::-webkit-scrollbar-thumb {
  background-color: var(--product-gallery-border-color);
  border-radius: 3px;
}

.thumbnailsph::-webkit-scrollbar-thumb:hover {
  background-color: var(--product-gallery-border-hover);
}

.thumbnailsph li {
  flex: 0 0 auto;
  height: auto;
  margin: 0;
  padding: 0;
}

.thumbnailsph a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--product-gallery-transition);
}

.thumbnailsph a:hover {
  transform: scale(1.05);
}

.thumbnailsph a:focus {
  outline: 2px solid var(--product-gallery-border-hover);
  outline-offset: 2px;
}

.thumbnailsph img {
  width: 73.3px;
  height: 110px;
  object-fit: cover;
  object-position: center top;
  border: 0px solid var(--product-gallery-border-color);
  border-radius: 0;
  display: block;
  transition: border-color var(--product-gallery-transition),
    box-shadow var(--product-gallery-transition);
  background-color: #ffffff;
}

.thumbnailsph img:hover {
  border-color: var(--product-gallery-border-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Active thumbnail state - using :has() for modern browsers */
@supports selector(:has(*)) {

  .thumbnailsph li:has(a[href*="slide"]:target) img,
  .thumbnailsph li:has(a:focus) img {
    border-color: var(--product-gallery-border-hover);
    border-width: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
}

/* Main Image Slideshow Container */
.slidesph {
  position: relative;
  overflow: hidden;
  width: var(--product-gallery-slide-width);
  height: var(--product-gallery-slide-height);
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slidesph li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--product-gallery-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slidesph li:first-child,
.slidesph li:target {
  z-index: 3;
  opacity: 1;
  animation: slideIn var(--product-gallery-animation-duration) ease-out;
}

.slidesph li:not(:target):not(:first-child) {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.slidesph a {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.slidesph img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background-color: #ffffff;
  transition: transform var(--product-gallery-transition);
}

.slidesph img:hover {
  transform: scale(1.02);
}

/* Image Slide Animations - Optimized and Modern */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ============================================
 MOBILE DEVICES - HORIZONTAL SCROLL FOR THUMBNAILS
 With original thumbnail sizes and spacing
 ============================================ */

/* First, reset any conflicting styles for mobile */
@media (max-width: 992px) {
  .thumbnailsph {
    flex-direction: row !important;
    /* Force horizontal layout */
    flex-wrap: nowrap !important;
    /* Prevent wrapping */
    overflow-x: auto !important;
    /* Enable horizontal scrolling */
    overflow-y: hidden !important;
    /* Disable vertical scrolling */
    height: auto !important;
    /* Auto height */
    max-height: none !important;
    /* Remove max height */
    padding: 0 !important;
    /* Remove all padding */
    margin: 0 !important;

    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #e5e5e5 transparent;

    /* Flex container properties */
    display: flex !important;
    align-items: center;
    justify-content: flex-start;

    /* Touch-friendly scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

    /* Prevent text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  /* Custom scrollbar for WebKit browsers */
  .thumbnailsph::-webkit-scrollbar {
    height: 4px !important;
    display: block !important;
  }

  .thumbnailsph::-webkit-scrollbar-track {
    background: transparent !important;
  }

  .thumbnailsph::-webkit-scrollbar-thumb {
    background-color: #e5e5e5 !important;
    border-radius: 2px !important;
  }

  .thumbnailsph::-webkit-scrollbar-thumb:hover {
    background-color: #000000 !important;
  }

  /* Ensure each thumbnail item is properly sized */
  .thumbnailsph li {
    flex: 0 0 auto !important;
    /* Don't grow or shrink */
    margin: 0 !important;
    /* Remove all margins - gap handles spacing */
    padding: 0 !important;
    list-style: none !important;
  }

  /* Set consistent gap for horizontal thumbnail layout */
  .thumbnailsph {
    gap: 8px !important;
    /* Consistent spacing between thumbnails */
  }

  /* Thumbnail links */
  .thumbnailsph a {
    display: block !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Thumbnail images - USE YOUR ORIGINAL SIZES */
  .thumbnailsph img {
    /* Original sizes from your CSS at 768px breakpoint */
    width: 80px !important;
    height: 120px !important;
    object-fit: cover !important;
    object-position: center top !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    display: block !important;
    transition: border-color 0.3s ease !important;
    margin: 0 !important;
    /* Remove margin */
    padding: 0 !important;
    /* Remove padding */
  }

  .thumbnailsph img:hover {
    border-color: #000000 !important;
  }

  /* Active thumbnail state */
  .thumbnailsph a.active img,
  .thumbnailsph li.active img {
    border-color: #000000 !important;
    border-width: 2px !important;
  }
}

/* Specific styling for small tablets and mobile */
@media (max-width: 768px) {
  .containerph {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .thumbnailsph {
    width: 100% !important;
    min-height: 130px !important;
    /* Adjusted for original size */
    gap: 8px !important;
    /* Consistent gap for horizontal layout */
  }

  /* Keep original sizes from your existing CSS */
  .thumbnailsph img {
    width: 80px !important;
    /* Your original size */
    height: 120px !important;
    /* Your original size */
  }

  /* Main slides - remove extra spacing */
  .slidesph {
    width: 75% !important;
    height: auto !important;
    aspect-ratio: 3/4 !important;
    max-width: 500px !important;
    max-height: 660px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .slidesph img {
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Small mobile devices - using your existing breakpoint sizes */
@media (max-width: 655px) {
  .thumbnailsph {
    min-height: 115px !important;
    margin-top: 12px !important;
  }

  /* Your existing size at this breakpoint */
  .thumbnailsph img {
    width: 70px !important;
    /* Your original size */
    height: 105px !important;
    /* Your original size */
  }
}

@media (max-width: 555px) {
  .thumbnailsph {
    min-height: 100px !important;
    margin-top: 10px !important;
  }

  /* Your existing size at this breakpoint */
  .thumbnailsph img {
    width: 60px !important;
    /* Your original size */
    height: 90px !important;
    /* Your original size */
  }
}

@media (max-width: 500px) {
  .thumbnailsph {
    min-height: 95px !important;
    margin-top: 8px !important;
  }

  /* Your existing size at this breakpoint */
  .thumbnailsph img {
    width: 55px !important;
    /* Your original size */
    height: 82px !important;
    /* Your original size */
  }
}

@media (max-width: 450px) {
  .thumbnailsph {
    min-height: 85px !important;
    margin-top: 6px !important;
  }

  /* Your existing size at this breakpoint */
  .thumbnailsph img {
    width: 50px !important;
    /* Your original size */
    height: 75px !important;
    /* Your original size */
  }
}

@media (max-width: 355px) {
  .thumbnailsph {
    min-height: 75px !important;
    margin-top: 5px !important;
  }

  /* Your existing size at this breakpoint */
  .thumbnailsph img {
    width: 45px !important;
    /* Your original size */
    height: 68px !important;
    /* Your original size */
  }
}

@media (max-width: 300px) {
  .thumbnailsph {
    min-height: 65px !important;
    margin-top: 4px !important;
  }

  /* Your existing size at this breakpoint */
  .thumbnailsph img {
    width: 38px !important;
    /* Your original size */
    height: 57px !important;
    /* Your original size */
  }
}

/* Extra small mobile devices */
@media (max-width: 319px) {
  .thumbnailsph {
    min-height: 60px !important;
    margin-top: 3px !important;
  }

  /* Your existing size at this breakpoint */
  .thumbnailsph img {
    width: 35px !important;
    /* Your original size */
    height: 52px !important;
    /* Your original size */
  }
}

/* ============================================
 FIX POTENTIAL CONFLICTING STYLES
 Override any styles that might interfere
 ============================================ */

/* Remove any height constraints that might prevent scrolling */
.thumbnailsph {

  /* Remove any fixed height on mobile */
  @media (max-width: 992px) {
    height: auto !important;
    max-height: none !important;
  }
}

/* Ensure the container doesn't restrict scrolling */
.containerph {
  @media (max-width: 992px) {
    overflow: visible !important;
  }
}

/* Add JavaScript fallback class for active state */
.thumbnailsph .js-active-thumbnail img {
  border-color: #000000 !important;
  border-width: 2px !important;
}

/* Ensure thumbnails are always visible */
.thumbnailsph a {
  display: block !important;
  text-decoration: none !important;
  outline: none !important;
}

/* Focus states for accessibility */
.thumbnailsph a:focus img {
  outline: 2px solid #000000 !important;
  outline-offset: 2px !important;
}

/* Consistent gap spacing for mobile thumbnails - using gap property (best practice) */
@media (max-width: 992px) {
  .thumbnailsph {
    gap: 8px !important;
    /* Consistent horizontal gap */
  }

  /* Remove any margin-right that might interfere */
  .thumbnailsph li {
    margin-right: 0 !important;
  }
}

/* For smaller screens, reduce gap proportionally */
@media (max-width: 480px) {
  .thumbnailsph {
    gap: 6px !important;
  }
}

@media (max-width: 360px) {
  .thumbnailsph {
    gap: 4px !important;
  }
}

/* Add scroll snap for better UX on touch devices */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  .thumbnailsph {
    scroll-snap-type: x mandatory;
    scroll-padding: 0 10px;
  }

  .thumbnailsph li {
    scroll-snap-align: start;
  }
}

/* Fix for main slides container spacing */
.slidesph {
  @media (max-width: 992px) {
    padding: 0 !important;
    margin: 0 auto !important;
  }
}

.slidesph img {
  @media (max-width: 992px) {
    padding: 0 !important;
    margin: 0 !important;
  }
}


/* Scoped to product page only - don't affect footer */
.productpage .container-fluid {
  padding-left: 0px;
}

/* Ensure footer container-fluid is not affected */
footer .container-fluid,
.footer .container-fluid {
  padding-left: inherit !important;
}




ul {
  margin-bottom: 0;
}



.dropdown .dropbtn {
  cursor: pointer;
  font-size: 16px;
  border: none;
  outline: none;
  color: #9d9d9d;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropbtn:hover {
  color: white;
}


/*.navbar a:hover,
.dropdown:hover .dropbtn,
.dropbtn:focus {} */

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;

}

.dropdown-content a:hover {
  background-color: #ddd;
}

.show {
  display: block;
}

.container-fluid1 {
  padding: 60px 50px;
}

.bg-grey {
  background-color: #f6f6f6;
}


body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
}

/* Enhanced "You May Also Like" Section */
/* Products Section - matches index.php carousel */
.products-section {
  padding: 80px 5%;
  background-color: #ffffff;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

.section-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 50px;
  font-family: "Montserrat", sans-serif;
}

/* Products Carousel - matches index.php structure */
.products-carousel {
  position: relative;
  padding: 0 60px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.products-carousel.desktop-carousel {
  display: block;
}

.products-carousel.mobile-carousel {
  display: none;
}

.products-carousel .carousel-inner {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.products-carousel .item {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.products-carousel .row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin: 0 auto;
  padding: 0;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Tablet - matches index.php */
@media (max-width: 992px) {
  .products-section {
    padding: 60px 4%;
  }

  .products-carousel {
    padding: 0 50px;
    max-width: 100%;
    overflow: hidden;
  }

  .product-card {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }

  .products-carousel.desktop-carousel {
    display: none;
  }

  .products-carousel.mobile-carousel {
    display: block;
  }
}

/* Product Card - matches index.php */
.product-card {
  flex: 0 0 calc(25.333% - 20px);
  max-width: calc(25.333% - 20px);
  min-width: 0;
  background: transparent;
  border: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-link {
  text-decoration: none;
  display: block;
  position: relative;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-top: 130%;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 15px;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.02);
  opacity: 0.9;
}

.sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000000;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.product-info {
  padding: 0;
  text-align: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.product-brand {
  font-size: 11px;
  color: #000000;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 8px 0;
  font-family: "Montserrat", sans-serif;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.product-name {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 300;
  color: #000000;
  line-height: 1.4;
  font-family: "Montserrat", sans-serif;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.product-name a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-name a:hover {
  color: #666666;
}

.product-price {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  font-family: "Montserrat", sans-serif;
}

.product-price .regular-price {
  color: #000000;
}

.product-price .original-price {
  color: #999999;
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 300;
  margin-right: 8px;
}

.product-price .sale-price {
  color: #000000;
  font-size: 16px;
  font-weight: 400;
}

/* Products Carousel Control Specific Styles - matches index.php */
.products-carousel .carousel-control {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.products-carousel:hover .carousel-control {
  opacity: 1;
}

.products-carousel .carousel-control:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.products-carousel .carousel-control:active {
  transform: translateY(-50%) scale(0.95);
}

.products-carousel .carousel-control .glyphicon {
  color: #000000;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  cursor: pointer;
  opacity: 1;
  z-index: 16;
}

.products-carousel .carousel-control:hover .glyphicon {
  color: #ffffff;
  opacity: 1;
}

.products-carousel .carousel-control:active .glyphicon {
  transform: translate(-50%, -50%) scale(0.9);
}

.products-carousel .carousel-control.left {
  left: 0;
  right: auto;
}

.products-carousel .carousel-control.right {
  right: 0;
  left: auto;
}

/* Products Carousel Indicators Specific - matches index.php */
.products-carousel .carousel-indicators {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  bottom: -40px;
}

.products-carousel .carousel-indicators li {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background-color: #e5e5e5;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  flex-shrink: 0;
}

.products-carousel .carousel-indicators li:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

.products-carousel .carousel-indicators li.active {
  background-color: #000000;
  width: 24px;
  opacity: 1;
}

/* Legacy card styles for backward compatibility */
.card-img-top {
  /* height: 152px; */
  height: 252px;
}

.card {

  max-width: 167.77px;
}

.card-title,
.price,
.discount,
.discount-percentage {
  font-size: 10px;
  margin: 5px;
}

.brand span {
  font-size: 12px;
}

/* Legacy carousel control */
.carousel-control {
  width: 5%;
}

#overlay {
  z-index: 9999;
  cursor: pointer;
}

#overlay img {
  display: block;
  margin: 0 auto;
}

/* Image Viewer Overlay Styles */
.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  cursor: pointer;
}


.image-viewer-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.image-viewer-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #333;
  font-size: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-viewer-close:hover {
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #333;
  font-size: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.image-viewer-nav:hover {
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.image-viewer-prev {
  left: 30px;
}

.image-viewer-next {
  right: 30px;
}

.image-viewer-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: default;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .image-viewer-close {
    top: 5px;
    left: 5px;
    width: 35px;
    height: 35px;
    font-size: 28px;
  }

  .image-viewer-nav {
    width: 45px;
    height: 45px;
    font-size: 35px;
  }

  .image-viewer-prev {
    left: 15px;
  }

  .image-viewer-next {
    right: 15px;
  }

  .image-viewer-image {
    max-width: 95%;
    max-height: 85vh;
  }
}


/* .color-square {
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 1px solid #000;
    margin-right: 5px;
} */

/* Styling for product colors section */
/* .product-colors {
  margin-top: 20px;
}

.product-colors h3 {
  font-size: 18px;
  font-weight: bold;
} */

.color-square {
  display: inline-block;
  width: 80px;
  height: 120px;
  margin: 0 8px 8px 0;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Styling for product color image */
.color-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0%;

}


.color-square:hover {
  border: 1px solid #000000;
}

































@media (max-width: 1155px) {}

@media (max-width: 1055px) {
  .slidesph {
    width: 100%;
    max-width: 450px;
    height: 600px;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    margin: 0;
  }

  .thumbnailsph li {
    flex: 0 0 auto;
    height: auto;
  }

  .thumbnailsph img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
  }

}

@media (max-width: 955px) {}

@media (max-width: 855px) {}

@media (max-width: 795px) {
  .slidesph {
    width: 100%;
    max-width: 400px;
    height: 500px;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    margin: 0;
  }

  .thumbnailsph li {
    flex: 0 0 auto;
    height: auto;
  }

  .thumbnailsph img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
  }

  .product-description h1 {
    font-size: 42px;
  }

}

@media (max-width: 992px) {

  /* Stack columns on tablet */
  .productpage main.container,
  main.container.product-container {
    flex-direction: column;
    padding: 0 15px;
  }

  .left-column {
    width: 100%;
    padding: 0;
    margin-bottom: 30px;
  }

  .right-column {
    width: 100%;
    max-width: 600px;
    padding: 20px 30px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
  }

  #divph {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 10px;
  }

  .containerph {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* Reorganize image gallery for mobile - stack vertically */
  .thumbnailsph {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px !important;
    /* Consistent gap - override any conflicting rules */
    order: 2;
    margin-top: 15px;
  }

  /* Ensure no margin-right interferes with gap */
  .thumbnailsph li {
    margin-right: 0 !important;
  }

  .slidesph {
    order: 1;
    width: 100%;
    max-width: 500px;
    height: 600px;
    min-height: 500px;
    margin: 0 auto;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .thumbnailsph li {
    height: auto;
    flex: 0 0 auto;
  }

  .thumbnailsph img {
    width: 80px;
  }
}

/* Tablet/Small Laptop Range (993px - 1054px) - Optimized Two-Column Layout */
@media (min-width: 993px) and (max-width: 1054px) {

  /* CRITICAL: Override mobile stacking from 992px breakpoint */
  .productpage main.container,
  main.container.product-container {
    flex-direction: row !important;
    /* Force horizontal layout */
    padding: 0 25px !important;
    gap: 35px !important;
    max-width: 1040px !important;
    margin: 0 auto !important;
    align-items: flex-start !important;
  }

  /* Left column - Product Gallery (60% width for better image display) */
  .left-column {
    width: 60% !important;
    max-width: 600px !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  /* Right column - Product Info (40% width) */
  .right-column {
    width: 40% !important;
    max-width: 420px !important;
    padding: 20px 25px !important;
    margin: 0 !important;
    position: sticky !important;
    top: 80px !important;
    /* Stick below navbar */
    height: fit-content !important;
    align-self: flex-start !important;
  }

  /* Gallery Root Container */
  #divph,
  .product-gallery-root {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Gallery Inner Container - Desktop Layout */
  .containerph,
  .gallery-container {
    display: flex !important;
    flex-direction: row !important;
    /* Thumbnails on left, main image on right */
    gap: 15px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  /* Thumbnails - Vertical sidebar on left */
  .thumbnailsph,
  .gallery-thumbnails-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    order: 1 !important;
    /* Show first (on left) */
    width: 90px !important;
    max-height: 650px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding-right: 5px !important;
    scrollbar-width: thin !important;
  }

  .thumbnailsph li,
  .gallery-thumbnails-list li {
    flex: 0 0 auto !important;
    width: 90px !important;
    height: auto !important;
    margin: 0 !important;
  }

  .thumbnailsph img,
  .gallery-thumbnails-list img {
    width: 90px !important;
    height: 135px !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
  }

  .thumbnailsph img:hover,
  .gallery-thumbnails-list img:hover {
    opacity: 0.7 !important;
  }

  /* Main Image Container */
  .slidesph,
  .gallery-swiper-list {
    order: 2 !important;
    /* Show second (on right) */
    width: calc(100% - 105px) !important;
    /* Full width minus thumbnails and gap */
    max-width: 500px !important;
    height: 650px !important;
    min-height: 650px !important;
    margin: 0 !important;
    position: relative !important;
    flex-shrink: 1 !important;
  }

  .slidesph img,
  .gallery-swiper-list img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  /* Hide mobile swiper indicators */
  .swiper-indicators-container {
    display: none !important;
  }

  /* Product Info Styling */
  .product-description h1 {
    font-size: 30px !important;
    line-height: 1.2 !important;
    margin: 10px 0 16px 0 !important;
    font-weight: 500 !important;
  }

  .product-description p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
  }

  .product-description span {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  /* Color Selection */
  .product-colors {
    margin-bottom: 20px !important;
    padding-bottom: 18px !important;
  }

  .color-square {
    width: 75px !important;
    height: 105px !important;
    margin: 0 8px 8px 0 !important;
  }

  /* Size Selection */
  .cable-config {
    margin-bottom: 20px !important;
    padding-bottom: 18px !important;
  }

  .cable-choose {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .cable-choose label {
    font-size: 13px !important;
    padding: 12px 16px !important;
    min-width: 52px !important;
    text-align: center !important;
    flex: 0 0 auto !important;
  }

  /* Price */
  .product-price h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
  }

  /* Add to Cart Button */
  .btn-primary {
    font-size: 14px !important;
    padding: 15px 0 !important;
    width: 100% !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
  }

  /* Back Button - Keep visible and properly positioned */
  .backbutton,
  .productpage .backbutton {
    display: inline-flex !important;
    font-size: 12px !important;
    padding: 8px 16px !important;
    position: relative !important;
    margin-bottom: 15px !important;
  }

  .backbutton-container {
    position: relative !important;
    margin-top: 80px !important;
    margin-bottom: 20px !important;
  }
}

@media (max-width: 755px) {


  .productpage main.container,
  main.container.product-container {
    flex-direction: column;
    padding: 0 10px;
  }

  .left-column {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
  }

  .right-column {
    width: 100%;
    max-width: 550px;
    padding: 20px 35px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
  }

  /* Back button positioning - below navbar */
  .backbutton {
    font-size: 11px;
    padding: 8px 15px;
    margin-bottom: 20px;
  }


  /* Product description spacing */
  .product-description {
    margin-bottom: 25px;
    padding-bottom: 20px;
  }

  .product-description h1 {
    font-size: 28px;
    line-height: 1.3;
    margin: 12px 0 15px 0;
  }

  .product-description p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
  }

  /* Product colors section */
  .product-colors {
    margin-bottom: 25px;
    padding-bottom: 20px;
  }

  .product-colors span {
    font-size: 11px;
    margin-bottom: 12px;
    display: block;
  }

  .color-square {
    width: 70px;
    height: 100px;
    margin: 0 6px 8px 0;
    min-width: 55px;
  }

  /* Size selection */
  .cable-config {
    margin-bottom: 25px;
    padding-bottom: 20px;
  }

  .cable-config span {
    font-size: 11px;
    margin-bottom: 12px;
    display: block;
  }

  .cable-choose {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cable-choose label {
    font-size: 13px;
    padding: 12px 18px;
    margin: 0;
    min-width: 50px;
    text-align: center;
    flex: 0 0 auto;
  }

  /* Product price section */
  .product-price {
    margin-bottom: 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .product-price h3 {
    font-size: 20px;
    margin: 0;
  }

  .product-price h3 p {
    font-size: 20px;
  }

  /* Add to cart button */
  .btn-primary {
    font-size: 14px;
    padding: 14px 0;
    width: 100%;
    min-height: 48px;
    letter-spacing: 1.5px;
  }

  /* Shipping options note */
  .shipping-options-note {
    margin-top: 25px;
    padding-top: 18px;
  }

  .shipping-options-label {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .shipping-options-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .shipping-option-name {
    font-size: 13px;
  }

  .shipping-option-desc {
    font-size: 12px;
  }

  .card-img-top {
    /* height: 152px; */
    height: 160px;
  }

  .card {

    max-width: 106.66px;
  }

  .card-body h5,
  .price,
  .discount,
  .discount-percentage {
    font-size: 10px;
  }

  .card-body {
    padding-left: 5px;
    padding-right: 5px;


  }

  .card-title {
    margin: 5px;
    margin-bottom: 0px;
  }

  .brand span {
    font-size: 8px;
    margin: 0px;
  }

  /* Responsive "You May Also Like" - Mobile: 2 products */
  /* Mobile - matches index.php */
  .products-section {
    padding: 50px 3%;
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .products-carousel {
    padding: 0 40px;
    max-width: 100%;
    overflow: hidden;
  }

  .product-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .products-carousel .row {
    gap: 20px;
  }

  .product-image-wrapper {
    padding-top: 135%;
  }

  .product-brand {
    font-size: 10px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-price {
    font-size: 14px;
  }

  .products-carousel .carousel-control {
    width: 35px;
    height: 35px;
  }

  .products-carousel .carousel-control.left {
    left: 0;
    max-width: 100%;
  }

  .products-carousel .carousel-control.right {
    right: 0;
    max-width: 100%;
  }

}


@media (max-width: 655px) {

  /* Image gallery reorganization */
  #divph {
    padding: 0 5px;
  }

  .containerph {
    gap: 12px;
  }

  .slidesph {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 500px;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }

  .thumbnailsph {
    gap: 6px !important;
    /* Consistent gap for smaller screens */
    margin-top: 12px;
  }

  /* Remove any margin-right that might interfere */
  .thumbnailsph li {
    margin-right: 0 !important;
  }

  .thumbnailsph li {
    height: auto;
  }

  .thumbnailsph img {
    width: 70px;
    height: 105px;
  }

  /* Product information improvements */
  .right-column {
    padding: 20px 30px;
  }

  .product-description h1 {
    font-size: 24px;
  }

  .product-description p {
    font-size: 13px;
  }

  /* Color squares */
  .color-square {
    width: 70px;
    height: 100px;
    margin: 0 5px 8px 0;
    min-width: 50px;
  }

  /* Size buttons */
  .cable-choose {
    gap: 6px;
  }

  .cable-choose label {
    font-size: 12px;
    padding: 11px 16px;
    min-width: 45px;
  }

  /* Price */
  .product-price h3 {
    font-size: 18px;
  }

  .product-price h3 p {
    font-size: 18px;
  }

  /* Smaller mobile carousel adjustments */
  .products-carousel {
    padding: 0 45px;
    max-width: 100%;
  }

  .products-carousel .row {
    gap: 10px;
  }

  .product-card {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
  }

  .product-name {
    font-size: 12px;
  }

}

@media (max-width: 555px) {

  /* Main container */
  .productpage main.container,
  main.container.product-container {
    padding: 0 8px;
  }

  /* Back button */
  .backbutton {
    font-size: 11px;
    padding: 8px 15px;
    margin-bottom: 20px;
  }

  /* Image gallery */
  #divph {
    padding: 0;
  }

  .slidesph {
    width: 100%;
    max-width: 100%;
    min-height: 350px;
    max-height: 450px;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }

  .thumbnailsph {
    gap: 5px !important;
    /* Consistent gap for smaller screens */
    margin-top: 10px;
    padding: 0 5px;
  }

  /* Remove any margin-right that might interfere */
  .thumbnailsph li {
    margin-right: 0 !important;
  }

  .thumbnailsph li {
    height: auto;
  }

  .thumbnailsph img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    object-position: top;
  }

  /* Product information */
  .right-column {
    padding: 18px 25px;
  }

  .product-description {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .product-description h1 {
    font-size: 22px;
    margin: 10px 0 12px 0;
  }

  .product-description p {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Colors section */
  .product-colors {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .color-square {
    width: 45px;
    height: 65px;
    margin: 0 4px 6px 0;
    min-width: 45px;
  }

  /* Size selection */
  .cable-config {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .cable-choose {
    gap: 5px;
  }

  .cable-choose label {
    font-size: 11px;
    padding: 10px 14px;
    min-width: 40px;
  }

  /* Price */
  .product-price {
    margin-bottom: 20px;
    gap: 12px;
  }

  .product-price h3 {
    font-size: 18px;
  }

  .product-price h3 p {
    font-size: 18px;
  }

  /* Add to cart button */
  .btn-primary {
    font-size: 13px;
    padding: 13px 0;
    min-height: 46px;
  }

  /* Shipping options note */
  .shipping-options-note {
    margin-top: 20px;
    padding-top: 15px;
  }

  .shipping-options-label {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .shipping-options-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .shipping-option-name {
    font-size: 12px;
  }

  .shipping-option-desc {
    font-size: 11px;
  }

  /* Small Mobile - matches index.php */
  .products-section {
    padding: 40px 2%;
  }

  .section-title {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .products-carousel {
    padding: 0 50px;
    max-width: 100%;
    overflow: hidden;
  }

  .product-card {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  .products-carousel .row {
    gap: 15px;
  }

  .product-image-wrapper {
    padding-top: 140%;
    margin-bottom: 10px;
  }

  .product-brand {
    font-size: 9px;
    margin-bottom: 5px;
  }

  .product-name {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .product-price {
    font-size: 13px;
  }

  .product-price .original-price {
    font-size: 12px;
  }

  .product-price .sale-price {
    font-size: 13px;
  }

  .sale-badge {
    font-size: 9px;
    padding: 3px 6px;
    top: 8px;
    right: 8px;
  }

  .products-carousel .carousel-control {
    width: 30px;
    height: 30px;
  }

  .products-carousel .carousel-control .glyphicon {
    font-size: 12px;
  }


}

@media (max-width: 500px) {

  /* Main container */
  .productpage main.container,
  main.container.product-container {
    padding: 0 5px;
  }

  /* Back button */
  .backbutton {
    font-size: 11px;
    padding: 8px 15px;
    margin-bottom: 20px;
  }

  /* Image gallery - full width, better organization */
  #divph {
    padding: 0;
    margin: 0 auto;
  }

  .containerph {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 0px 50px;
  }


  .slidesph {
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    max-height: 400px;
    order: 1;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }

  .thumbnailsph {
    order: 2;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px !important;
    /* Consistent gap for small screens */
    margin-top: 8px;
    padding: 0;
  }

  /* Remove any margin-right that might interfere */
  .thumbnailsph li {
    margin-right: 0 !important;
  }

  .thumbnailsph li {
    height: auto;
    flex: 0 0 auto;
  }

  .thumbnailsph img {
    width: 55px;
    height: 82px;
    object-fit: cover;
    object-position: top;
  }

  /* Product information - better spacing */
  .right-column {
    padding: 15px 22px;
  }

  .product-description {
    margin-bottom: 18px;
    padding-bottom: 15px;
    margin-top: 0;
  }

  .product-description h1 {
    font-size: 20px;
    margin: 8px 0 10px 0;
    line-height: 1.3;
  }

  .product-description p {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Colors */
  .product-colors {
    margin-bottom: 18px;
    padding-bottom: 15px;
  }

  .color-square {
    width: 70px;
    height: 100px;
    margin: 0 3px 6px 0;
    min-width: 40px;
  }

  /* Size selection */
  .cable-config {
    margin-bottom: 18px;
    padding-bottom: 15px;
  }

  .cable-choose {
    gap: 4px;
  }

  .cable-choose label {
    font-size: 11px;
    padding: 9px 12px;
    min-width: 38px;
    margin: 0;
  }

  /* Price */
  .product-price {
    margin-bottom: 18px;
    gap: 10px;
  }

  .product-price h3 {
    font-size: 17px;
  }

  .product-price h3 p {
    font-size: 17px;
  }

  /* Add to cart button */
  .btn-primary {
    font-size: 12px;
    padding: 12px 0;
    min-height: 44px;
    letter-spacing: 1px;
  }

  /* Related products cards */
  .card-img-top {
    height: 102px;
  }

  .card {
    max-width: 67.9px;
  }

  .card-body h5,
  .price,
  .discount,
  .discount-percentage {
    font-size: 11px;
  }

  .card-body {
    padding-left: 5px;
    padding-right: 5px;
  }

  .card-title {
    margin: 5px;
    margin-bottom: 0px;
  }

  .brand span {
    font-size: 9px;
    margin: 0px;
  }
}


@media (max-width: 450px) {

  /* Main container */
  .productpage main.container,
  main.container.product-container {
    padding: 0 5px;
  }

  /* Back button */
  .backbutton {
    font-size: 11px;
    padding: 8px 15px;
    margin-bottom: 20px;
  }

  /* Image gallery */
  .slidesph {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    max-height: 380px;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }

  .thumbnailsph {
    gap: 3px !important;
    /* Consistent gap for very small screens */
    margin-top: 6px;
  }

  /* Remove any margin-right that might interfere */
  .thumbnailsph li {
    margin-right: 0 !important;
  }

  .thumbnailsph li {
    height: auto;
  }

  .thumbnailsph img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    object-position: top;
  }

  /* Product information */
  .right-column {
    padding: 12px 50px;
  }

  .product-description {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .product-description h1 {
    font-size: 18px;
    margin: 6px 0 8px 0;
  }

  .product-description p {
    font-size: 11px;
    line-height: 1.4;
  }

  /* Colors */
  .product-colors {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .color-square {
    width: 60px;
    height: 90px;
    margin: 0 3px 5px 0;
    min-width: 38px;
  }

  /* Size selection */
  .cable-config {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .cable-choose {
    gap: 3px;
  }

  .cable-choose label {
    font-size: 10px;
    padding: 8px 10px;
    min-width: 35px;
    margin: 0;
  }

  /* Price */
  .product-price {
    margin-bottom: 15px;
    gap: 8px;
  }

  .product-price h3 {
    font-size: 16px;
  }

  .product-price h3 p {
    font-size: 16px;
  }

  /* Add to cart button */
  .btn-primary {
    font-size: 11px;
    padding: 11px 0;
    min-height: 42px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 355px) {

  /* Main container */
  .productpage main.container,
  main.container.product-container {
    padding: 0 4px;
  }

  /* Back button */
  .backbutton {
    font-size: 11px;
    padding: 8px 15px;
    margin-bottom: 20px;
  }

  /* Image gallery */
  .slidesph {
    width: 100%;
    max-width: 100%;
    min-height: 280px;
    max-height: 350px;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }

  .thumbnailsph {
    gap: 2px !important;
    /* Consistent gap for extra small screens */
    margin-top: 5px;
  }

  /* Remove any margin-right that might interfere */
  .thumbnailsph li {
    margin-right: 0 !important;
  }

  .thumbnailsph li {
    height: auto;
  }

  .thumbnailsph img {
    width: 45px;
    height: 68px;
    object-fit: cover;
    object-position: top;
  }

  /* Product information */
  .right-column {
    padding: 10px 50px;
  }

  .product-description {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .product-description h1 {
    font-size: 16px;
    margin: 5px 0 6px 0;
  }

  .product-description p {
    font-size: 10px;
    line-height: 1.4;
  }

  /* Colors */
  .product-colors {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .color-square {
    width: 50px;
    height: 75px;
    margin: 0 2px 4px 0;
    min-width: 33px;
  }

  /* Size selection */
  .cable-config {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .cable-choose {
    gap: 2px;
  }

  .cable-choose label {
    font-size: 9px;
    padding: 7px 8px;
    min-width: 32px;
    margin: 0;
  }

  /* Price */
  .product-price {
    margin-bottom: 12px;
    gap: 6px;
  }

  .product-price h3 {
    font-size: 14px;
  }

  .product-price h3 p {
    font-size: 14px;
  }

  /* Add to cart button */
  .btn-primary {
    font-size: 10px;
    padding: 10px 0;
    min-height: 40px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 300px) {

  /* Main container */
  .productpage main.container,
  main.container.product-container {
    padding: 0 3px;
  }

  /* Back button */
  .backbutton {
    font-size: 11px;
    padding: 8px 15px;
    margin-bottom: 20px;
  }

  /* Image gallery */
  .slidesph {
    width: 100%;
    max-width: 100%;
    min-height: 250px;
    max-height: 320px;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }

  .thumbnailsph {
    gap: 2px !important;
    /* Consistent gap for tiny screens */
    margin-top: 4px;
  }

  /* Remove any margin-right that might interfere */
  .thumbnailsph li {
    margin-right: 0 !important;
  }

  .thumbnailsph li {
    height: auto;
  }

  .thumbnailsph img {
    width: 38px;
    height: 57px;
    object-fit: cover;
    object-position: top;
  }

  /* Product information */
  .right-column {
    padding: 8px 12px;
  }

  .product-description {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .product-description h1 {
    font-size: 14px;
    margin: 4px 0 5px 0;
  }

  .product-description p {
    font-size: 9px;
    line-height: 1.3;
  }

  /* Colors */
  .product-colors {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .color-square {
    width: 30px;
    height: 45px;
    margin: 0 2px 3px 0;
    min-width: 30px;
  }

  /* Size selection */
  .cable-config {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .cable-choose {
    gap: 2px;
  }

  .cable-choose label {
    font-size: 8px;
    padding: 6px 7px;
    min-width: 28px;
    margin: 0;
  }

  /* Price */
  .product-price {
    margin-bottom: 10px;
    gap: 5px;
  }

  .product-price h3 {
    font-size: 13px;
  }

  .product-price h3 p {
    font-size: 13px;
  }

  /* Add to cart button */
  .btn-primary {
    font-size: 9px;
    padding: 9px 0;
    min-height: 38px;
    letter-spacing: 0.5px;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE EXTRA SMALL (< 320px)
   ============================================ */
@media (max-width: 319px) {

  /* Main container */
  .productpage main.container,
  main.container.product-container {
    padding: 0 2px;
  }

  /* Back button */
  .backbutton {
    font-size: 11px;
    padding: 8px 15px;
    margin-bottom: 20px;
  }

  /* Image gallery */
  .slidesph {
    width: 100%;
    max-width: 100%;
    min-height: 230px;
    max-height: 300px;
  }

  .slidesph img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }

  .thumbnailsph {
    gap: 1px !important;
    /* Consistent gap for smallest screens */
    margin-top: 3px;
  }

  /* Remove any margin-right that might interfere */
  .thumbnailsph li {
    margin-right: 0 !important;
  }

  .thumbnailsph li {
    height: auto;
  }

  .thumbnailsph img {
    width: 35px;
    height: 52px;
    object-fit: cover;
    object-position: top;
  }

  /* Product information */
  .right-column {
    padding: 6px 10px;
  }

  .product-description {
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .product-description h1 {
    font-size: 13px;
    margin: 3px 0 4px 0;
  }

  .product-description p {
    font-size: 8px;
    line-height: 1.3;
  }

  /* Colors */
  .product-colors {
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .color-square {
    width: 28px;
    height: 42px;
    margin: 0 2px 3px 0;
    min-width: 28px;
  }

  /* Size selection */
  .cable-config {
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .cable-choose {
    gap: 1px;
  }

  .cable-choose label {
    font-size: 7px;
    padding: 5px 6px;
    min-width: 26px;
    margin: 0;
  }

  /* Price */
  .product-price {
    margin-bottom: 8px;
    gap: 4px;
  }

  .product-price h3 {
    font-size: 12px;
  }

  .product-price h3 p {
    font-size: 12px;
  }

  /* Add to cart button */
  .btn-primary {
    font-size: 8px;
    padding: 8px 0;
    min-height: 36px;
    letter-spacing: 0.3px;
  }

  /* Extra Small Mobile - matches index.php */
  .products-section {
    padding: 30px 2%;
  }

  .section-title {
    font-size: 12px;
    margin-bottom: 25px;
  }

  .products-carousel {
    padding: 0 35px;
    max-width: 100%;
    overflow: hidden;
  }

  .product-card {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
  }

  .products-carousel .row {
    gap: 8px;
    max-width: 100%;
  }

  .product-image-wrapper {
    padding-top: 145%;
    margin-bottom: 8px;
  }

  .product-brand {
    font-size: 8px;
    margin-bottom: 4px;
    letter-spacing: 1px;
  }

  .product-name {
    font-size: 10px;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .product-price {
    font-size: 11px;
  }

  .product-price .original-price {
    font-size: 10px;
  }

  .product-price .sale-price {
    font-size: 11px;
  }

  .sale-badge {
    font-size: 8px;
    padding: 2px 5px;
    top: 6px;
    right: 6px;
  }

  .products-carousel .carousel-control {
    width: 28px;
    height: 28px;
  }

  .products-carousel .carousel-control.left {
    left: 0;
    max-width: 100%;
  }

  .products-carousel .carousel-control.right {
    right: 0;
    max-width: 100%;
  }

  .products-carousel .carousel-control .glyphicon {
    font-size: 11px;
  }

  .products-carousel .carousel-indicators {
    bottom: -35px;
  }

  .products-carousel .carousel-indicators li {
    width: 6px;
    height: 6px;
    margin: 0 3px;
  }

  .products-carousel .carousel-indicators li.active {
    width: 20px;
  }

  /* Legacy card styles */
  .card-img-top {
    height: 90px;
  }

  .card {
    max-width: 60px;
  }

  .card-body h5,
  .price,
  .discount,
  .discount-percentage {
    font-size: 9px;
  }

  .card-body {
    padding-left: 3px;
    padding-right: 3px;
  }

  .card-title {
    margin: 3px;
    margin-bottom: 0px;
  }

  .brand span {
    font-size: 7px;
    margin: 0px;
  }
}

/* Mobile Swiper CSS (Zara Style) */
@media (max-width: 991px) {
  .product-gallery-root {
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100px;
    display: block !important;
    overflow: visible !important;
    /* Force LTR for consistent image sorting across languages */
  }

  .gallery-container {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex;
    /* Ensure child swiper stays logically LTR */
  }

  .gallery-swiper-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* Prevent items from wrapping to next line */
    white-space: nowrap !important;
    /* Ensure items stay on one line */
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    min-height: 200px;
    background-color: #fff;
    /* Maintain LTR flow for horizontal images */
  }

  /* Hide scrollbar */
  .gallery-swiper-list::-webkit-scrollbar {
    display: none;
  }

  .gallery-swiper-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .gallery-swiper-list li.swiper-slide {
    flex: 0 0 100% !important;
    flex-shrink: 0 !important;
    /* Extra insurance against compression */
    width: 100% !important;
    min-width: 100% !important;
    scroll-snap-align: center !important;
    /* Center-aligned for more robust tracking */
    scroll-snap-stop: always !important;
    /* Don't skip images on fast swipe */
    position: relative !important;
    display: block !important;
    list-style: none !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .gallery-swiper-list li.swiper-slide a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Force images to be visible and correctly sized */
  .gallery-swiper-list li.swiper-slide img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    transition: none !important;
    max-height: 80vh;
    object-fit: contain;
  }

  /* Indicators - Zara Aesthetic */
  .swiper-indicators-container {
    padding: 12px 20px;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    background: #fff;
    width: 100%;
    margin-top: 0;
    z-index: 10;
    position: relative;
    /* Indicators fill from left to right consistently */
  }

  .gallery-indicator-bar {
    height: 1.5px !important;
    background-color: #e5e5e5;
    flex: 1;
    max-width: 60px;
    transition: background-color 0.3s ease;
  }

  .gallery-indicator-bar.active {
    background-color: #000;
  }

  /* Layout adjustments */
  .gallery-thumbnails-list {
    display: none !important;
  }

  .left-column {
    width: 100% !important;
    padding: 0 !important;
    height: auto !important;
    min-height: auto !important;
  }

  .right-column {
    width: 100% !important;
    padding: 24px 40px !important;
    max-width: none !important;
    margin: 0 !important;
    background: #fff;
  }

  .productpage main.container {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 100px 0 0 0 !important;
    padding: 0px;

  }

  /* Clean up back button for mobile - make it discrete */
  .productpage .backbutton {
    position: absolute !important;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7) !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    margin-top: 120px !important;
  }

  /* RTL adjustment for mobile back button */
  [dir="rtl"] .productpage .backbutton {
    left: auto !important;
    right: 15px !important;
  }

  /* Remove extra margin on the back button container */
  div[style*="margin-top: 80px"] {
    margin-top: 0 !important;
    height: 0 !important;
  }
}

/* Base state for indicators (hidden on desktop) */
.swiper-indicators-container {
  display: none;
}