/* ==========================================================================
   PRODUCT & PRICING LAYOUT
   ========================================================================== */


.custom-size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.size-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.size-btn:hover {
  border-color: #000;
}

.size-btn.selected {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

#product {
  display: flex; 
}

#productdescription .spacer{
  margin-bottom: 0.5em;
}

#productdescription ul li,
#productdescription p{
  font-size: 1.4em;
  line-height: 1.8em;
}

#product_price {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 2.5em; 
  color: #f24; 
  margin-top: 0.5em;
}

#product_prices {
  width: 100%;
  border-collapse: separate;
  border: 1px solid #222; 
  border-radius: 0.5em;  
  border-spacing: 0;
}

#product_prices th {
  background: #222;
  color: #fff; 
  font-weight: normal;
}

#product_prices th,
#product_prices td {
  border: 1px solid #111;
  padding: 0.5em; 
  text-align: left;
}

/* ==========================================================================
   ADD TO BAG FORM
   ========================================================================== */

#addtobagform { 
  padding: 0.5em;
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  max-width: 450px;
  margin-bottom: 50px;
  padding-bottom: 0;
}

#addtobagform .elements { 

  margin-bottom: 0.5em;
}

#addtobagform label {
  margin-bottom: 6px;
}

#addtobagform select,
#addtobagform input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 0.95rem;
  color: #1f2937;
  background-color: #f9fafb;
  border: 1px solid #eee;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

#addtobagform select:hover,
#addtobagform input[type="number"]:hover {
  border-color: #eee;
}

#addtobagform select:focus,
#addtobagform input[type="number"]:focus {
  background-color: #fff;
  border-color: #444;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

#addtobagform select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

#addtobagform .form_footer,
#addtobagform .submit_element
{
  display: block;
}

 
#addtobagform .submit_element .submit {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center; 
  width: 100%;
  height: 100px;
  background-color: #8ff; 
  color: #000;
  font-size: 1.4em;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}


#addtobagform .submit_element .submit::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 0.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
  padding: 0.5em;
  border-radius: 0.5em;
}
/* ==========================================================================
   PRODUCT GRID & IMAGES
   ========================================================================== */
#relatedProds{
  margin-top: 50px;
}

.productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, auto));
  gap: 0.5em;
  padding: 1em;
  margin: 0;
  justify-content: start;
  align-items: start;
} 

.productGrid a img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5em;
}

.productGrid a span {
  display: block;
  width: 100%; 
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.product-image {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-image.visible {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   UTILITIES & ZOOM CONTROLS
   ========================================================================== */

.tick {
  background: #eee;
  padding: 0.5em;
  margin-top: 0.5em;
  border-radius: 0.5em;
  font-size: 1em!important;
} 

.brandIcon {
  background: #000;
  background: radial-gradient(#000, #444);
  display: block;
  width: 287px;
  border-radius: 0.5em;
  color: #fff !important;
  padding: 0.5em;
  text-align: center;

  margin-top: 40px;
}

.brandIcon img {
  display: block;
}

.brandIcon span {
  
}

#funkyZoom img {
  border: 1px solid #eee; 
  border-radius: 0.5em; 
  max-width: 800px; 
  width: 100%;
  margin-bottom: 0.5em;
}

.funkyzoom {
  position: relative;
  display: inline-block;
}

.funkyzoom #zoomControl {
  position: absolute;
  width: 50%;
  height: 50%;
  display: none;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1560px) {
  #product {
    flex-direction: column;
  }

  #product .leftcol {
    text-align: center;
  }

}

@media (max-width: 1000px) {
  #addtobagform {
    flex-direction: column;
  }
  
}

@media (max-width: 800px) {



  .brandIcon{
    width: auto;
  }

  #addtobagform .elements {
    flex-direction: column;
  }


  .productGrid a span{text-align: center;}
}