/* General Layout */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

/* Headings */
.shirtsHeading {
  padding: 1rem 2rem;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filterName {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

/* Buttons */
button {
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  background-color: #1a73e8;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

button:hover {
  background-color: #155bc1;
}

.deleteFilterButton {
  background-color: #e53935;
}

.deleteFilterButton:hover {
  background-color: #c62828;
}

.editButton,
.deleteProduct {
  background-color: #eee;
  color: #444;
  margin: 10px 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.filteredProductsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  height: auto;
}
.filterButtons{
  display: flex;
  justify-content: space-around;
  align-items: center;
  
}
.filterButtons svg{
  margin-right: 20px;
  fill: black;
}
.productContainer {
  width: 100px;
  background-color: rgba(88, 75, 75, 0);
  border-radius: 10px;
}

.productName {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Swipe prompt */
.swipeLeft {
  font-size: 1rem;
  text-align: center;
  color: #666;
  margin: 1rem 0;
}

/* Arrows */
.forwardArrow,
.backwardArrow {
  font-size: 2rem;
  cursor: pointer;
  display: inline-block;
}

/* Category Popup */
.addProductCatagoryPopupContainer {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.addProductCatagoryPopup {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.addCategoryHeading {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Cart popup */
.cart-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
}

.popup-content h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.popup-content p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

#closeCartPopup,
#closeNoColorPopup {
  background-color: #4caf50;
}

#closeCartPopup:hover,
#closeNoColorPopup:hover {
  background-color: #388e3c;
}

/* Loader */
.pageLoaderContainer {
  display: none; /* Show only when needed */
  position: relative;
  top: 0; left: 0;
  width: 100%;
  height: 400px;
  background: rgba(255,255,255,0.7);
  z-index: 5 !important;
  justify-content: center;
  align-items: center;
}
.apparelEditorButton{
  z-index: 6;
}
.pageLoaderProductsPage {
  width: 60px;
  height: 60px;
  border: 5px solid #ccc;
  border-top: 5px solid rgb(161, 0, 0);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20% auto;
}
.productCard {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 1rem;
  width: 300px;
  text-align: center;
  margin: 1rem;
  transition: transform 0.2s;
  position: relative;
  cursor: pointer;
}
.productCard:hover {
  transform: translateY(-5px);
}
.popupImageWrapper{
  position: relative;
  width: 100%;
}
.productImage {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.productTitle {
  font-weight: 600;
  font-size: 1rem;
  margin: 0.5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.productPrice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.coinIcon {
  width: 20px;
  height: 20px;
}

.productColorSelector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

/* Fullscreen backdrop */
#productWithDetailsPopupBackdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

/* Popup container */
.productPopup {
  background: #fff;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.closePopupButton {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: black;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.closePopupButton:hover{
  background: transparent;
}

/* Content layout */
.popupContent {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
}

.popupImageSection {
  flex: 1 1 300px;
  position: relative;
}

.popupProductImage {
  width: 100%;
  border-radius: 8px;
}

.popupDetails {
  flex: 1 1 300px;
}

.popupProductTitle {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.popupPrice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.popupSection {
  margin-bottom: 1rem;
}

.popupColorSelector {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  width: 370px;
  overflow-x: scroll;
}

.colorCircle {
  width: 24px;
  height: 24px;
  border-radius: 5%;
  border: 2px solid #ccc;
  cursor: pointer;
}
.colorCircle:disabled,
.colorCircle.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #aaa;
}

.popupSizeSelector {
  padding: 8px;
  border-radius: 6px;
  width: 100%;
}
.popupSizeSelector:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}
.glow-select{
  outline: none;
  animation: qcGlow 1.2s ease-in-out 0s 2;
  box-shadow: 0 0 0 2px var(--glow-color, #f59e0b), 0 0 14px var(--glow-color, #f59e0b);
  border-color: var(--glow-color, #f59e0b) !important;
}
@keyframes qcGlow {
  0%   { box-shadow: 0 0 0 0 var(--glow-color, #f59e0b), 0 0 0 var(--glow-color, #f59e0b); }
  50%  { box-shadow: 0 0 0 2px var(--glow-color, #f59e0b), 0 0 16px var(--glow-color, #f59e0b); }
  100% { box-shadow: 0 0 0 0 var(--glow-color, #f59e0b), 0 0 0 var(--glow-color, #f59e0b); }
}
.sizeStatusMessage{
  margin-top: 6px;
  font-size: 0.92rem;
  color: #b00020;
  display: none;
}

.popupLogoSelector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  position: relative;
  height: 150px;
  overflow-y: auto;
  overflow-x: hidden;
  align-items: flex-start;
}


.popupLogoPreview {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  min-width: 60px;
  min-height: 60px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

/* Diagonal split preview for logo presets (front/back) */
.logoSplitPreview {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
/* keep hovered tile above its dropdown edge so the tile stays visible */
.logoSplitPreview:hover{
  z-index: 10000;
}
.logoSplitPreview .split-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #00000045;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.4));
  z-index: 2;
}
/* Top-left triangle (shows front) */
.logoSplitPreview .split-front {
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
/* Bottom-right triangle (shows back) */
.logoSplitPreview .split-back {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
/* Optional subtle diagonal separator */
.logoSplitPreview::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 49%, rgba(0,0,0,0.28) 50%, transparent 51%);
}

/* Corner labels for clarity */
.logoSplitPreview .corner-label {
  position: absolute;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 2px 4px;
  border-radius: 4px;
  z-index: 5;
}
.logoSplitPreview .corner-label.front { top: 3px; left: 3px; }
.logoSplitPreview .corner-label.back { bottom: 3px; right: 3px; }

/* Dropdown removed */

.addToCartButton {
  margin-top: 1rem;
  width: 100%;
  background-color: #000000;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.addToCartButton:hover {
  background-color: #777777;
}
.popupImageSection button{
   position: absolute;
   top: 50%;
   transform: translate(-50%, -50%);
   background-color: rgba(0, 0, 0, 0.363) !important;
   opacity: 0;
   transition: all 0.3s ease;
   z-index: 10;
}
.rightArrow{
  left: 100%;
}
.leftArrow{
  left: 0%;
}
.logoImage {
  position: absolute;
  z-index: 10;
  pointer-events: none; /* optional: let clicks go through */
}
.apparelEditorButton {
  position: fixed;
  bottom: 21px;
  right: 140px;
  height: 55px;
  width: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #c10000, #000000);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 2px 2px 4px rgba(255, 255, 255, 0.2),
    inset -2px -2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.apparelEditorButton:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.5),
    inset 2px 2px 6px rgba(255, 255, 255, 0.25),
    inset -3px -3px 8px rgba(0, 0, 0, 0.6);
}

.apparelEditorButton:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    inset 3px 3px 6px rgba(0, 0, 0, 0.6);
}

.apparelEditorButton svg {
  width: 32px;
  height: 32px;
  fill: white;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
  transition: transform 0.2s ease;
}

.apparelEditorButton:hover svg {
  transform: scale(1.1);
}

.apparelEditorButton:hover{
  background-color: grey;
}
#addCatagory {
  position: fixed;
  bottom: 21px;
  right: 200px;
  height: 55px;
  width: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg,#c10000cc, #000000);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 2px 2px 4px rgba(255, 255, 255, 0.2),
    inset -2px -2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#addCatagory:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.5),
    inset 2px 2px 6px rgba(255, 255, 255, 0.25),
    inset -3px -3px 8px rgba(0, 0, 0, 0.6);
}

#addCatagory:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    inset 3px 3px 6px rgba(0, 0, 0, 0.6);
}

#addCatagory svg {
  width: 32px;
  height: 32px;
  fill: white;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
  transition: transform 0.2s ease;
}

#addCatagory:hover svg {
  transform: scale(1.1);
}

.editProductButton, .deleteProductButton{
  background: transparent;
  position: absolute;
  top: 10px;
  left: 10px;
}
.deleteProductButton{
  left: 60px;
}
.deleteProductButton:hover {
  background: transparent;
}
.editProductButton:hover {
  background: transparent;
}
.editProductButton:hover svg{
  fill: #1a73e8;
}
.deleteProductButton:hover svg {
  fill: rgb(255, 0, 0);
}
/* Backdrop for delete popup */
.deletePopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Popup content box */
.deletePopup .popupContent {
  background: white;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Buttons container */
.deletePopup .popupActions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Confirm button */
.confirmDelete {
  background: #e63946;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.confirmDelete:hover {
  background: #c82333;
}

/* Cancel button */
.cancelDelete {
  background: #e0e0e0;
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cancelDelete:hover {
  background: #d5d5d5;
}
.stockStatus{
  color: green;
}
.addProductCatagoryPopupContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* dark transparent overlay */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.addProductCatagoryPopup {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: fadeInPopup 0.3s ease-in-out;
}

@keyframes fadeInPopup {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.addCategoryHeading {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #333;
}

.newCategoryName {
  width: 90%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.newCategoryName:focus {
  border-color: #000000;
}

.addCategpryButtons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.addCategpryButtons button {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.closeCategoryPopup {
  background-color: #f5f5f5;
  color: #333;
}

.closeCategoryPopup:hover {
  background-color: #e0e0e0;
}

.addProductCatagoryButton {
  background-color: #000000;
  color: #fff;
}

.addProductCatagoryButton:hover {
  background-color: #0056b3;
}
.fancyDraftRibbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  height: 100%;
  pointer-events: none;
}
.loaderPageBackdrop{
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0px;
  right: 0px;
}
.fancyDraftRibbon span {
  position: absolute;
  top: 12px;
  left: -45px;
  width: 200px;
  background: linear-gradient(45deg, #e91e1e, #b02727);
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 0;
  text-align: center;
  transform: rotate(-45deg);
  animation: ribbonPulse 2s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
}
/* Container overlay for loader */
.addToCartLoader {
  position: absolute;          /* overlay inside product popup */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;      /* stack spinner + text */
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85); /* translucent white overlay */
  z-index: 999;                /* on top of popup content */
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  backdrop-filter: blur(3px);  /* subtle blur for modern effect */
  border-radius: 8px;          /* match your popup shape */
}

/* Spinner circle */
.addToCartLoader .loader {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;      /* light gray base */
  border-top: 4px solid #b60000; /* accent color (blue) */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

.descriptionButton, .specsButton{
  background-color: black;
}

.descriptionButton:hover, .specsButton:hover{
  background-color: #777777;
}

.descriptionPopupBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;                /* add .is-open to show */
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.descriptionPopupBackdrop.is-open{
  display: flex;
}

.descriptionPopup{
  background: #fff;
  width: min(900px, 92vw);
  max-height: 85vh;
  overflow: auto;
  border-radius: 12px;
  padding: 20px;
  margin: 0;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
}

.closeDescriptionPopup{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}


.closeDescriptionPopup:hover{
 background-color: #777777;
}

.specsPopupBackdrop{
  position: fixed;
  height: 100%;
  width: 100%; 
  background-color: rgba(0, 0, 0, 0.158);
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: center;
}

.specsPopup{
  width: 500px;
  background-color: #c7c7c700;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.specs-table thead {
  background: #000000;
  color: white;
}

.specs-table th,
.specs-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.specs-table tr:nth-child(even) {
  background: #eeeeee;
}

.specs-table tr:hover {
  background: #b1b1b1;
}

/* Spinner animation */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Text */
.addToCartLoader span {
  color: #000000;              /* match spinner accent */
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}


@keyframes ribbonPulse {
  0% {
    transform: rotate(-45deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(-45deg) scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: rotate(-45deg) scale(1);
    opacity: 1;
  }
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media screen and (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .popupImageWrapper{
    width: 50%;
  }
  .popupDetails {
    flex: 1 1 auto;
    max-width: 100%;
  }
  .popupProductTitle{
    margin: 0px;
  }
  .popupSection{
    margin-bottom: 0px;
  }
  .popupPrice{
    margin-bottom: 0px;
  }
  .popupDetails h3{
     margin: 0px;
  }
  .popupLogoSelector{
    height: auto;
    min-height: 56px;
    max-height: 140px;
    overflow-x: hidden;
    overflow-y: auto;
    flex-wrap: wrap;
    position: relative;
    align-items: flex-start;
    padding-bottom: 4px;
  }
  .popupImageSection{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .shirtsHeading {
    padding: 0.5rem 1rem;
  }

  .filterName {
    font-size: 1.2rem;
  }

  .productCard {
    width: 90%;
    margin: 0.5rem auto;
    padding: 0.8rem;
  }

  .productImage {
    max-width: 100%;
  }

  .popupContent {
    flex-direction: column;
    padding: 1rem;
    max-height: calc(92vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .popupDetails, .popupImageSection {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .productPopup {
    padding: 1rem;
    width: 95%;
    max-height: 92vh;
    overflow: hidden;
  }

  .popupProductTitle, .popupPrice, .popupSection {
    font-size: 0.9rem;
  }

  .popupColorSelector {
    width: 100%;
  }

  .popupLogoPreview {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .popupSizeSelector {
    font-size: 0.9rem;
  }

  .apparelEditorButton,
  #storeManagerButton,
  #addCatagory,
  .addProductCatagoryPopupContainer {
    display: none !important;
    pointer-events: none;
  }

  .addCategoryHeading {
    font-size: 1.2rem;
  }

  .newCategoryName {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .addCategpryButtons button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .addProductCatagoryPopup {
    padding: 1rem;
  }

  .closePopupButton {
    font-size: 1.2rem;
    z-index: 20;
  }
}

/* Mobile product detail view */
@media screen and (max-width: 700px) {
  body.product-detail-open {
    overflow: hidden;
  }

  #productWithDetailsPopupBackdrop {
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    background: #fff;
  }

  .productPopup {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
    overflow: hidden;
    animation: none;
    background: #fff;
  }

  .productPopup .closePopupButton {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #171717;
    font-size: 21px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .productPopup .popupContent {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 0 0 calc(94px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .productPopup .popupImageSection {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 300px;
    height: auto;
    padding: 14px 36px;
    box-sizing: border-box;
    background: #f7f7f7;
    border-bottom: 1px solid #ebebeb;
  }

  .productPopup .popupImageWrapper {
    width: 100% !important;
    height: auto;
    max-width: 520px;
  }

  .productPopup .popupProductImage {
    width: 100% !important;
    height: auto !important;
    object-fit: initial !important;
    display: block;
    border-radius: 0;
  }

  .productPopup .popupImageSection button {
    top: 50%;
    width: 38px;
    height: 42px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #202020 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transform: translateY(-50%);
  }

  .productPopup .leftArrow {
    left: 10px;
  }

  .productPopup .rightArrow {
    right: 10px;
    left: auto;
  }

  .productPopup .popupDetails {
    width: 100%;
    max-width: none;
    padding: 22px 18px 32px;
    box-sizing: border-box;
  }

  .productPopup .popupProductTitle {
    margin: 0 44px 14px 0;
    color: #181818;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .productPopup .descriptionButton,
  .productPopup .specsButton {
    min-height: 36px;
    margin: 0 5px 14px 0;
    padding: 7px 12px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #f7f7f7;
    color: #303030;
    font-size: 13px;
    font-weight: 600;
  }

  .productPopup .stockStatus,
  .productPopup .officeStockStatus {
    margin: 4px 0;
    font-size: 14px;
  }

  .productPopup .popupPrice {
    min-height: 36px;
    margin: 8px 0 22px;
    font-size: 1.3rem;
    font-weight: 700;
  }

  .productPopup .popupSection {
    margin: 0 0 24px;
    padding-top: 20px;
    border-top: 1px solid #ededed;
  }

  .productPopup .popupSection > label {
    display: block;
    margin-bottom: 11px;
    color: #242424;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }

  .productPopup .popupColorSelector {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 5px 4px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .productPopup .colorCircle {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #c9c9c9;
    scroll-snap-align: start;
  }

  .productPopup .colorCircle.selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #a10d14;
  }

  .productPopup .colorCircle:focus-visible,
  .productPopup .popupLogoPreview:focus-visible,
  .productPopup .popupSizeSelector:focus-visible {
    outline: 3px solid rgba(161, 13, 20, 0.2);
    outline-offset: 2px;
  }

  .productPopup .popupLogoSelector {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 2px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .productPopup .popupLogoPreview {
    flex: 0 0 68px;
    width: 68px;
    min-width: 68px;
    height: 68px;
    min-height: 64px;
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    scroll-snap-align: start;
  }

  .productPopup .popupSizeSelector {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #fff;
    color: #171717;
    font-size: 16px;
  }

  .productPopup .addToCartButton {
    position: fixed;
    right: 16px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 16px;
    z-index: 35;
    width: auto;
    min-height: 56px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 7px;
    background: #a10d14;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.96), 0 -8px 24px 12px rgba(255, 255, 255, 0.96), 0 5px 16px rgba(75, 0, 0, 0.18);
  }

  .productPopup .addToCartButton:hover,
  .productPopup .addToCartButton:focus-visible {
    background: #820a10;
    outline: 3px solid rgba(161, 13, 20, 0.2);
    outline-offset: 2px;
  }
}
