/*********************************************
 * PAGE-SPECIFIC STYLES
 *********************************************/

/* Catalogue Page */
body.catalogue-page {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
body.catalogue-page .wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
body.catalogue-page .sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-sizing: border-box;
  margin: 0 auto;
}
body.catalogue-page .search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 5px;
  width: 100%;
  padding: 10px 0;
}
body.catalogue-page .search-container .search-input {
  width: 40%;
  max-width: 800px;
  font-size: 16px;
  padding: 10px;
  border: 2px solid;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
body.catalogue-page .search-container .search-button img {
  max-width: 100%;
}
body.catalogue-page .search-container .search-button {
  flex: 0 0 auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.catalogue-page .tagsbox {
  display: none;
}
body.catalogue-page .tagsbox.show {
  display: block;
  max-height: 200px;
  overflow-y: auto;
}
body.catalogue-page .hashtag-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}
body.catalogue-page .arrow-icon {
  margin-left: 5px;
  font-size: 18px;
  transition: transform 0.3s ease;
}
body.catalogue-page .hashtag-toggle:hover .arrow-icon {
  transform: translateY(-3px);
  color: black;
}


#tag-indicator, .tag-indicator {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;          
  border-width: 1px;            
  border-style: solid;          
  max-width: 820px;
  white-space: nowrap; 
}
.tag-indicator .chip::before { content: "#"; margin-right: 2px; }


#tag-indicator > span:first-child,
.tag-indicator > span:first-child { font-weight: 200; margin-right: 2px; }

#tag-indicator #mode-toggle,
.tag-indicator #mode-toggle {
  display: inline-block;
  padding: 6px 12px;
  line-height: 1;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.tag-indicator .mode-toggle:hover,
#tag-indicator .mode-toggle:hover {
  background: var(--hover);
}



/* chips (#tag ×) */
#tag-indicator .chip,
.tag-indicator .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .92rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#tag-indicator .chip:focus-visible,
.tag-indicator .chip:focus-visible {
  outline-offset: 2px;
}


/* Suggested related tags */
.suggested-tags { margin-top: 10px; }
.suggested-tags .suggested-label {
  margin: 8px 0 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}
.suggested-tags .suggested-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Smaller, lighter chips than the main filter chips */
.suggested-tags .tag-suggestion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px dotted var(--border, #dcdce6);
  background: #fafaff;             /* distinct from regular chips */
  font-size: 0.82rem;               /* smaller */
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease, border-color .15s ease;
}
.suggested-tags .tag-suggestion:hover {
  background: #f0f0ff;
  border-color: #c8c8f0;
}




/* make sure sidebar tags always clickable */
.tagsbox a { pointer-events: auto; }


body.catalogue-page .footer-logo img {
  max-width: 40%;
}
.sidebar h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #86068b;
}
.filter-dropdown {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 2px solid;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
}
.filter-dropdown:hover {
  border-color: #86068b;
}

/* Catalogue Main Content & Product Cards */
.catalogue-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 20px;
  box-sizing: border-box;
}
/* Container keeps width/margins */
#product-container {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0;
  box-sizing: border-box;
}

/* The inner track becomes the grid */
#product-container .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 150px));
  justify-content: start;
  gap: 18px;
}

.product-card {
  background-color: #fff;
  border: 2px solid #99999977;
  border-radius: 10px;
  text-align: center;
  padding: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 150px;
  min-height: 260px;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 2em;
  position: relative;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.product-card-price {
  font-size: 0.85em;
  color: #fc0303;
  font-weight: 900;
  margin: 6px 0 2px;
  background-color: #6666665e;
}

.product-card-tag {
  font-size: 0.8em;
  line-height: 1.25;
  color: #666;
  margin: 0 0 22px 0;
}
.plus-add-to-set {
  width: 30px;
  height: 30px;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  bottom: -15px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.plus-add-to-set:hover {
  background-color: #86068b;
}


.no-products-message {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-top: 20px;
}
.back-to-all {
  display: block;
  text-align: center;
  color: #007bff;
  text-decoration: none;
  margin-top: 10px;
}
.back-to-all:hover {
  text-decoration: underline;
}
body.catalogue-page .site-footer {
  box-sizing: border-box;
}

/*********************************************
 * PRODUCT MODAL / NAIL SELECTOR
 *********************************************/

/* ------------------------------
   Modal shell / overlay
------------------------------ */

#product-modal {
  display: none;
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(247, 190, 254, 0.219);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  width: min(92vw, 640px);
  max-height: 90vh;
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-body {
  max-height: 90vh;
  overflow-y: auto;
  padding: 10px 6px 6px;
}

.selector-modal-title {
  margin-top: 0;
  margin-bottom: 1rem;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #86068b;
  z-index: 20;
}


/* ------------------------------
  Two-column selector layout
------------------------------ */

.selector-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: center;  
}

.selector-options-panel {
  min-width: 0;
  text-align: center;
}

.selector-product-panel {
  text-align: center;
  border-right: 1px dashed var(--primary);
}

.selector-product-img-wrap {
  border-radius: 18px;
  background: #fff;
  padding: 1rem;
}

.selector-product-img {
  width: 100%;
  max-width: 230px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.selector-product-price {
  margin: 1rem;
  font-weight: 700;
  background-color: var(--primary);

}


/* ------------------------------
   Intro / section labels
------------------------------ */

.modal-intro {
  margin-top: 0;
}

.selector-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  margin-top: 4px;
  margin-bottom: 4px;
}


/* ------------------------------
   Hand buttons
------------------------------ */

.hand-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.hand-btn {
  border: 2px solid;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hand-btn:hover {
  color: #fff;
}

.hand-btn.active {
  background: #86068b;
  color: #fff;
  border-color: #86068b;
}


/* ------------------------------
   Size grid / size buttons
------------------------------ */

.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 0fr);
  gap: 5px;
  margin: 15px 0;
  justify-content: center;
}

.size-btn {
  background: #fff;
  border: 2px solid;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.5em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-btn.active-size {
  color: #fff;
}

.size-btn.sold-out,
.size-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #eee;
  border-color: #ccc;
  color: #777;
  text-decoration: line-through;
}

.size-btn.sold-out:hover,
.size-btn:disabled:hover {
  transform: none;
}


/* ------------------------------
   Size guide / selector messages
------------------------------ */

.selector-error {
  min-height: 1.2rem;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #b00020;
  text-align: center;
}

.size-guide-link a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.selector-confirm {
  min-height: 1.2rem;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 0.85rem;
  text-align: center;
  border-radius: 6px;
  line-height: 1.3;
  opacity: 0.95;
}

.selector-confirm.is-success {
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.selector-confirm.is-error {
  background: rgba(211, 47, 47, 0.12);
  color: #b00020;
  border: 1px solid rgba(176, 0, 32, 0.25);
}


/* ------------------------------
   Add to Set button
------------------------------ */

.add-to-set {
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
}

.add-to-set:hover {
  background-color: #86068b;
}

.add-to-set:disabled {
  background: #ccc !important;
  cursor: not-allowed;
}
/* --------------------------------------------- */

.sasa-toast{
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background:#222;color:#fff;border-radius:999px;padding:10px 14px;gap:12px;
  display:flex; align-items:center; box-shadow:0 8px 24px rgba(0,0,0,.25); z-index:9999;
}
.sasa-toast button{background:#fff;color:#222;border:0;border-radius:999px;padding:6px 10px;font-weight:700;cursor:pointer}
.sasa-toast.hide{opacity:0;transform:translateX(-50%) translateY(6px);transition:.2s ease}

/* .preview-tile.is-busy { opacity:.6; pointer-events:none; } */

.loadmore-btn:hover {
  color: var(--shadow-color);
}