/*********************************************
 * 8) BREAK POINTS - MEDIA QUERIES (FROM SMALL TO LARGER)
 *********************************************/
/*Up to 539px */
@media (max-width: 539px) {
  .main-content {
    width: 100%; /* IMPORTENT */
    margin: 0; /* IMPORTENT */
    padding: 0; /* IMPORTENT */
  }
  .nav-buttons {
    display: none;
  }
  .icon-container {
    transform: scale(0.5);
    transform-origin: top right;
    margin-top: 5px;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
  }
  .hamburger-menu span {
    display: block;
    width: 25px;
    height: 5px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 90%;
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    box-sizing: border-box;
    opacity: 80%;
  }
  .nav-menu a {
    padding: 10px 15px;
    text-decoration: none;
    color: black;
    font-family: 'Courier New', monospace;
    font-size: 16px;
  }
  .nav-menu a:hover {
    color: white;
  }
  .nav-menu.show {
    display: flex;
  }
  .logo-container {
    position: static;
    transform: none;
    margin: 0 auto;
  }

  /* Responsive - MAIN CONTENT AREA */
  body.catalogue-page .search-container {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  body.catalogue-page .search-container .search-input {
    width: 90%;
  }
  body.catalogue-page .search-container .search-button {
    width: auto;
    align-self: flex-end;
  }
  body.catalogue-page #product-container {
    width: 94%;
  }

  body.catalogue-page #product-container .product-grid {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
    justify-content: center;
    gap: 16px;
  }

  body.catalogue-page .product-card {
    width: 100%;
    min-height: 260px;
    padding: 8px;
  }

  body.catalogue-page .product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
  }

  body.catalogue-page .product-card-tag {
    font-size: 1em;
    line-height: 1.25;
  }

  body.catalogue-page .plus-add-to-set {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .preview-total {
    text-align: center;
    margin-top: 12px;
  }
  .checkout-button {
    width: auto;
    padding: 8px 16px;
    font-size: 0.9em;
  }

  /* Responsive - SIDEBAR/SEARCH BOX */
  .wrapper {
    flex-direction: column;
    width: 100%;
  }
  .sidebar {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    margin-bottom: 20px;
    order: -1;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-sizing: border-box;
    background: var(--accent);
    box-shadow: 2px 0 8px var(--shadow-color);    
  }
  .tagsbox {
    display: none;
  }
  .tagsbox.show {
    display: block;
    max-height: 200px;
    overflow-y: auto;
  }
  .separator-line {
    width: 100%;
    border-top: 1px solid gray;
    margin-top: -10px;
  }
  .hashtag-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
  }
  .hashtags a {
  font-size: 1rem;
  }
  .arrow-icon {
    margin-left: 5px;
    font-size: 18px;
    transition: transform 0.3s ease;
  }
  .hashtag-toggle:hover .arrow-icon {
    transform: translateY(-3px);
    color: black;
  }

  /* Responsive WHATS-HOTT */
  .notification-box-large {
    width: 90%;
  }
.hot-carousel-track .product-card {
  flex: 0 0 160px;
  width: 160px;
  min-height: 260px;
  padding: 8px;
  margin-bottom: 0;
}

.hot-carousel-track .product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hot-carousel-track .product-card-tag {
  font-size: 0.8em;
  line-height: 1.25;
}
  /* Responsive HOW-TO */
  .carousel-container,
  .accordion-container,
  .nail-tips-section {
    padding: 0 1em;
    max-width: 90%;
  }
  .carousel {
    gap: 1em;
  }
  .tip-card {
    flex: 0 0 80%;
    max-width: 80%;
  }
  .tip-image {
    height: 120px;
  }
  .read-more-btn {
    font-size: 0.9em;
    padding: 0.4em 0.8em;
  }
  .carousel-btn {
    font-size: 1.2em;
    padding: 0.3em;
  }
  .carousel-indicator {
    gap: 0.3em;
  }
  .dot {
    width: 6px;
    height: 6px;
  }

    /* Product modal / nail selector mobile */
  .modal {
    align-items: flex-start;
    padding-top: 30px;
  }

  .modal-content {
    width: min(90vw, 390px);
    max-height: 84vh;
    padding: 14px 12px;
  }

  .selector-layout {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .selector-product-panel {
    border-right: none;
    border-bottom: 1px dashed var(--primary);
    padding-bottom: .5rem;
  }

  .selector-product-img {
    max-width: 200px;
  }

  .selector-product-price {
    width: fit-content;
    min-width: 130px;
    margin: 0.75rem auto 0;
    padding: 2px 12px;
  }

  .selector-modal-title {
    font-size: 1.35rem;
  }

  .modal-intro {
    font-size: 0.9rem;
  }

  .hand-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px auto;
    width: fit-content;
  }

  .hand-btn {
    width: min(100%, 220px);
  }

  .size-grid {
    grid-template-columns: repeat(5, auto);
  }

}

@media (max-width: 755px) {
  .howto-img {
    display: none;
  }
  .lucky-content {
    width: 95%;
    max-width: 95%;
    padding: 1rem;
  }

  .slot-machine {
    gap: 0.5rem;
  }

  .reel {
    width: 60px;
    height: 100px;
  }

  .reel-label-scale {
    font-size: 0.7rem;
  }

  /* // Rotation prompt (comment out, functions seems unnecessary for mobile)//      */
  /* Overlay that covers the whole modal content */
  /* .rotate-prompt {
    display: none; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: inherit;
    pointer-events: all;
  }

  .rotate-prompt p {
    display: block;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  } */

   .preview-container.open {
    width: calc(100% - 18px);
    max-height: 82vh;
    padding-top: 12px;
  }

  .preview-total-icon {
    display: none;
  }


    /* Responsive - CART STATUS TRIGGER COLLAPSED */
.preview-status-shell {
  width: calc(100% - 18px);
  bottom: 10px;
}

.preview-status-shell.is-open {
  width: calc(100% - 18px);
  bottom: calc(24px + min(62vh, 620px) - 38px);
}

.preview-status-shell .set-status-trigger {
  width: 100%;
  padding: 10px 62px 10px 14px;
  gap: 10px;
}
  #set-status-count {
    font-size: 0.92rem;
  }

  #set-status-message {
    font-size: 0.72rem;
  }

  .set-status-action {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .set-status-thumb {
    width: 30px;
    height: 30px;
  }

}

/* MOBILE VIEW: 540px - 950px */
@media (min-width: 540px) and (max-width: 950px) {
  .main-content {
    width: 100%; /* IMPORTENT */
    margin: 0; /* IMPORTENT */
    padding: 0; /* IMPORTENT */
  }

  .nav-buttons  {
    display: none;
  }
  .icon-container {
    transform: scale(0.6);
    transform-origin: top right;
    margin-top: 5px;
    right: 3px;
    top: 5px;
    gap: 15px;
  }
  /* Hamburger & Nav Menu Repeated (some overlap with above) */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
  }
  .hamburger-menu span {
    width: 25px;
    height: 5px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 90%;
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    box-sizing: border-box;
    opacity: 80%;
  }
  .nav-menu a {
    padding: 10px 15px;
    color: black;
    font-family: 'Courier New', monospace;
    font-size: 16px;
  }
  .nav-menu a:hover {
    color: white;
  }
  .nav-menu.show {
    display: flex;
  }
  .logo-container {
    position: static;
    transform: none;
    margin: 0 auto;
  }
  .notification-box-large {
    width: 90%;
  }
  .wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .sidebar {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    margin-bottom: 20px;
    order: -1;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-sizing: border-box;
    background: var(--accent);
    box-shadow: 2px 0 8px var(--shadow-color);    

  }
  .tagsbox {
    display: none;
  }
  .tagsbox.show {
    display: block;
    max-height: 200px;
    overflow-y: auto;
  }
  .separator-line {
    width: 100%;
    border-top: 1px solid gray;
    margin-top: -10px;
  }
  .hashtag-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
  }
    .hashtags a {
  font-size: 1rem;
  }
  .arrow-icon {
    margin-left: 5px;
    font-size: 18px;
    transition: transform 0.3s ease;
  }
  .hashtag-toggle:hover .arrow-icon {
    transform: translateY(-3px);
    color: black;
  }
  .checkout-button {
    width: auto;
    padding: 8px 16px;
    font-size: 0.9em;
  }
  body.catalogue-page .product-card-tag {
    font-size: 1em;
  }

    /* Responsive WHATS-HOTT */
.hot-carousel-track .product-card {
  flex: 0 0 160px;
  width: 160px;
  min-height: 260px;
  padding: 8px;
  margin-bottom: 0;
}

.hot-carousel-track .product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hot-carousel-track .product-card-tag {
  font-size: 0.8em;
  line-height: 1.25;
}

  /* RESPONSIVE HOW-TO MOBILE*/
  .carousel-container,
  .accordion-container,
  .nail-tips-section {
    padding: 0 1em;
    max-width: 90%;
  }

  .carousel {
    gap: 1em;
  }
  .tip-card {
    flex: 0 0 70%;
    max-width: 70%;
  }
  .tip-image {
    height: 150px;
  }
  .read-more-btn {
    font-size: 1em;
    padding: 0.5em 1em;
  }
  .carousel-btn {
    font-size: 1.5em;
    padding: 0.2em;
  }
  .left-btn {
    left: 0;
  }
  .right-btn {
    right: 0;
  }
  .carousel-indicator {
    margin-top: 1em;
    gap: 0.4em;
  }
  .dot {
    width: 8px;
    height: 8px;
  }

  /* Product modal / nail selector tablet */
.modal-content {
  width: min(92vw, 620px);
}

.selector-layout {
  grid-template-columns: 180px 1fr;
  gap: 1rem;
}

.selector-product-img {
  max-width: 160px;
}

.hand-btn {
  padding: 10px 16px;
}
}

/* DESKTOP VIEW: min-width: 901px */
@media (min-width: 950px) {
  .nav-menu, .hamburger-menu, .hashtag-toggle {
    display: none;
  }
}

/* optional: keep the filter bar visible while scrolling */
@media (min-width: 768px) {
  #tag-indicator, .tag-indicator, .filter-bar {
    position: sticky;
    top: 8px;
    z-index: 5;
  }
}

/* TABLET VIEW: 951px - 1024px */
@media (min-width: 951px) and (max-width: 1024px) {
  .main-content {
    width: 85%;
    margin: 0 auto 20px;
  }
  .icon-container {
    transform: scale(0.8);
    transform-origin: top right;
  }
   /* RESPONSIVE HOW-TO TABLET */
  .carousel-container {
    max-width: 100%;
    margin: 0 auto;
  }
  .carousel {
    gap: 2em;
  }
  .tip-card {
    flex: 0 0 33%;
    max-width: 33%;
  }
  .tip-image {
    height: 180px;
  }
  .read-more-btn {
    font-size: 1em;
    padding: 0.6em 1.2em;
  }
  .carousel-btn {
    font-size: 1.8em;
    padding: 0.5em;
  }
  .carousel-indicator {
    margin-top: 1em;
    gap: 0.5em;
  }
  .dot {
    width: 10px;
    height: 10px;
  }
  .preview-total {
    text-align: center;
    margin-top: 12px;
  }
  .checkout-button {
    width: auto;
    padding: 8px 16px;
    font-size: 0.9em;
  }
  
}

/* Mid-size desktop screens: 1025px–1244px */
@media (min-width: 1025px) and (max-width: 1244px) {
 
  .hand-section {
    flex-wrap: nowrap;
    gap: 6px;
  }

}
/*********************************************
 * LOG IN / SIGN UP PAGE
 *********************************************/
#login-form input,
#login-form button{
  display: block;
  margin: 0 auto;
}

#login-form a {
  color: #333;
  text-decoration: underline;
  transition: color 0.3s;
}

/*********************************************
 * CONTACT US FORM SECTION
 *********************************************/

@media (max-width: 600px) {
  .contact-row {
    flex-direction: column;
    gap: 0;
  }
  .contact-field {
    width: 100%;
  }
  #message {
    width: 100%;
  }
  #char-counter {
    width: 100%;
  }
}



/************  ≤ 900px : TWO ROWS, horizontal scroll  ************/
@media (max-width: 900px) {
  .preview-container {
    width: calc(100% - 18px);
  }

  .preview-rail {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    overflow-x: visible;
    overflow-y: visible;
    align-items: start;
  }

  .preview-tile {
    width: auto;
    max-width: none;
  }

  .preview-tile .tile-img {
    width: 110px;
    height: 110px;
  }

  .preview-tile .tile-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .preview-tile .chip {
    font-size: 0.78rem;
    padding: 2px 8px;
  }

  .preview-total {
    gap: 14px;
    padding: 18px 18px 22px;
  }

  .checkout-button {
    min-width: 0;
    width: 100%;
    max-width: 340px;
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  .preview-total-right {
    flex: 1;
    min-width: 0;
  }

  .preview-checkout-secure {
    font-size: 0.68rem;
    text-align: center;
    line-height: 1.3;
  }

}

/************  ≤ 540px : tighter tiles  ************/
@media (max-width: 540px) {
  .preview-rail { 
    grid-auto-columns: clamp(130px, 46vw, 180px); 
    gap: 8px 10px; }
  .preview-tile { 
    padding: 10px; 
    min-height: 0;
  }
  .preview-tile .tile-img {
    width: 108px;
    height: 108px;
  }
  .preview-tile .chip {
    font-size: 0.78rem;
  }
  .preview-total {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .preview-total-divider {
    display: none;
  }
  .preview-total-left,
  .preview-total-right {
    width: 100%;
    text-align: center;
  }
  #preview-subtotal {
    font-size: 2rem;
  }
}

/************  ≥ 901px : ONE ROW (desktop)  ************/
@media (min-width: 901px) {
  .preview-rail {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    overflow-x: visible;
    overflow-y: visible;
    align-items: start;
  }

  .preview-tile {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

}



/*********************************************
 * FOOTER AND BUILD GUIDE RESPONSIVE 
 -final goal for all elements to match media-
 *********************************************/

 /* MOBILE: stack 1 column */
@media (max-width: 650px) {
  .build-guide-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px;
  }

  .build-guide-sparkle {
    display: none;
  }

  .build-guide-item {
    grid-template-columns: 58px 1fr;
  }
    .build-guide-strip {
    padding: 14px;
    gap: 10px;
  }

  .build-guide-item {
    grid-template-columns: 42px 1fr;
    gap: 8px;
    padding: 10px;
  }

  .build-guide-icon {
    width: 38px;
    height: 38px;
  }

  .build-guide-item h3 {
    font-size: 0.78rem;
  }

  .build-guide-item p {
    font-size: 0.68rem;
    line-height: 1.25;
  }
    .build-guide-item .social-tag {
    display: none;
  }

  /* Footer */

  .footer-links-row {
    grid-template-columns: repeat(3,1fr);
    gap: 0;
  }

  .footer-links-row-column:not(:last-child) {
    border-right: 1px dashed rgba(255,105,180,.45);
  }

  .footer-links-row-column {
  padding: 0 1rem;   /* adjust to taste */
  box-sizing: border-box;
}

  .footer-promo-row {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .footer-newsletter {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-newsletter form {
    width: 100%;
    max-width: 340px;
    flex-direction: column;
  }

  .footer-newsletter input {
    width: 70%;
  }

  .footer-socials {
    justify-content: center;
    margin: 0 auto;
  }

  .footer-trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .footer-promo-item {
    justify-content: center;
  }

  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
}

/* TABLET: */
@media (min-width: 651px) and (max-width: 1280px) {
  .build-guide-strip {
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    padding: 20px;
  }

  .build-guide-sparkle {
    display: none;
  }

  .build-guide-item {
    grid-template-columns: 62px 1fr;
  }

  /* Footer */

.footer-links-row {
  grid-template-columns: repeat(3,1fr);
  gap: 0;
}

.footer-links-row-column:not(:last-child) {
  border-right: 1px dashed rgba(255,105,180,.45);
}

  .footer-promo-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-newsletter {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-newsletter form {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
    margin: 0 auto;
  }

  .footer-trust-row {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    justify-self: center;
  }

  .footer-trust-row .footer-promo-item {
    justify-content: center;
  }
.footer-legal {
  text-align: center;
}
}

@media (max-width: 1280px) {
  .build-guide-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .build-guide-sparkle {
    display: none;
  }

  .build-guide-item {
  min-height: 150px;
  padding: 14px;
  border: 1px dashed var(--primary);
  border-radius: 12px;
  background: rgba(255,255,255,.35);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
  background-color: var(--accent);

}

}
