/* ==============================================
   GLOBAL / GENERIC STYLES
============================================== */

html {
  overflow-y: scroll;
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

.hidden {
  display: none;
}

.indent-text {
  padding-left: 20px;
  color: #555;
  font-size: 0.95rem;
}

select,
select:focus {
  background-color: #fff;
  border: none;
  outline: none;
  box-shadow: none;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
}

.close-modal {
  position: absolute;
  top: 27px;
  right: 27px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  width: 35px;
  height: 35px;
  cursor: pointer;
  z-index: 1050;
}

/* Hide utilities */
.hide-on-desktop { display: none; }
@media (max-width: 768px) {
  .hide-on-desktop {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000;
    margin: 20px 0;
  }
  .hide-on-mobile { display: none; }
}

/* Navbar cleanup */
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
  font-weight: normal !important;
}

.navbar-toggler-icon {
  transition: none !important;
}

/* ==============================================
   CATEGORY CAROUSEL
============================================== */

#carouselCategoriesWrapper {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: var(--brand-primary, #fff);
}

#carouselCategoriesWrapper .carousel-divider {
  margin: 0;
  padding: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

#carouselCategoriesWrapper .carousel-container {
  overflow: hidden;
  padding: 6px 0;
  text-align: center;
}

.owl-stage {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Category button style — SINGLE unified version */
.item.category {
  background: #fff;
  color: #222;
  font-size: .9rem;
  font-weight: 500;
  font-family: 'Raleway', 'Helvetica Neue', sans-serif;
  padding: 6px 14px;
  margin: 0 2px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid #dcdcdc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.item.category:hover,
.item.category.active {
  background: #f8f9fa;
  border-color: #b5b5b5;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .item.category {
    font-size: 0.85rem;
    padding: 3px 12px;
    margin: 0 4px;
  }
}

/* Owl nav controls */
.owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.owl-nav button {
  pointer-events: all;
  background: #fff;
  border: 1px solid #cfcfcf;
  color: var(--brand-primary, #2b6cb0);
  font-size: 1rem;
  padding: 3px 10px;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.owl-nav button:hover {
  background: #f8f9fa;
  border-color: #b5b5b5;
  transform: translateY(-1px);
}

/* ==============================================
   COLOR SWATCHES
============================================== */

.swatch-circle,
.circle-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #000;
  background-image: linear-gradient(to right, var(--bg-color) 50%, var(--font-color) 50%);
}

.circle-swatch input[type="radio"] {
  display: none;
}

.circle-swatch input[type="radio"]:checked + .swatch-circle {
  outline: 3px solid #8B0000;
  outline-offset: 3px;
}

/* SVG Checkbox */
.svg-checkbox {
  display: inline-block;
  position: relative;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: 2px solid transparent;
}

.svg-checkbox.selected {
  border: 2px solid #007185 !important;
  box-shadow: 0 0 5px #007185;
}

.checkbox-container {
  display: flex;
  gap: 10px;
}

/* ==============================================
   STICKY FOOTER
============================================== */

main,
#home_section {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* ==============================================
   INPUT RESET / ERROR ICONS
============================================== */

.position-relative {
  position: relative;
}

.position-relative input.form-control {
  padding-right: 60px;
}

.position-relative .reset-icon,
.position-relative .error-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}

.position-relative .error-icon {
  right: 35px;
  color: #dc3545;
}

/* ==============================================
   UNIFIED SKELETON LOADER (FINAL VERSION)
============================================== */

.skeleton {
  width: 100%;
  height: 100%;
  background: #eee;
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  animation: shimmer 1.6s infinite linear;
}

/* SINGLE unified animation */
@keyframes shimmer {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

/* ==============================================
   IMAGE RATIO (FAST MOBILE LOAD)
============================================== */

.product-image-container .square-inner,
.carousel-item .square-inner,
.product-image,
.carousel-item img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.description {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}


.size-btn.disabled-size {
  opacity: 0.4;
  cursor: not-allowed !important;
}

.brand-logo {
    width: 88px;
    height: 88px;
}

.brand-logo-2 {
    width: 88px;
    height: 40px;
}

/* .product-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}*/

.add-to-cart.loading {
  opacity: 0.7;
  pointer-events: none;
}
.add-to-cart.loading::after {
  content: '...';
  margin-left: 4px;
}



