
/* =========================================
   ARTISTIC PROFILES - PRODUCT CSS
========================================= */

/* ===== PRODUCTS MIDDLE SECTION ===== */

.products-section {
  width: 100%;
  padding: 60px 30px;
  background: #f8f8f8;
  box-sizing: border-box;
  overflow: hidden;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  min-width: 0;
  width: 100%;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.14);
}

/* Product Images */

.product-card > img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

/* Product Information */

.product-content {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
  color: #171717;
}

.product-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 12px;
}

/* Product Button */

.product-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: 1px solid #111;
  border-radius: 20px;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}

.product-btn:hover {
  background: #fff;
  color: #111;
}

/* ===== TRY PREVIEW SECTION ===== */

.try-preview {
  padding: 100px 6%;
  background: linear-gradient(to right, #f4f4f4, #fff);
  box-sizing: border-box;
}

.try-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Left Side */

.try-left {
  flex: 1;
  min-width: 0;
}

.try-left h2 {
  font-size: 42px;
  margin: 0 0 20px;
  font-weight: 500;
}

.try-left p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 25px;
}

.try-left ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.try-left ul li {
  margin-bottom: 10px;
  color: #333;
}

.try-btn {
  display: inline-block;
  padding: 14px 34px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  letter-spacing: 1px;
  transition: background 0.3s ease;
}

.try-btn:hover {
  background: #444;
}

/* Right Side */

.try-right {
  flex: 1;
  min-width: 0;
}

/* Mini Preview App */

.mini-app {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.mini-app h3 {
  margin: 0 0 15px;
  font-weight: 500;
}

.mini-preview {
  position: relative;
  margin-top: 15px;
  display: none;
}

.mini-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.mini-blind {
  position: absolute;
  top: 25%;
  left: 30%;
  width: 40%;
  height: 45%;
  background: #999;
  opacity: 0.9;
  border: 2px solid #222;
}

/* ===== FULL PREVIEW APP ===== */

.app {
  width: 100%;
  max-width: 560px;
  margin: 30px auto;
  padding: 15px;
  background: #fff;
  box-shadow: 0 0 12px #ccc;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  text-align: center;
  box-sizing: border-box;
}

#preview {
  position: relative;
  margin: 15px 0;
  display: none;
}

#preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

#blind {
  position: absolute;
  top: 25%;
  left: 30%;
  width: 40%;
  height: 45%;
  background: #999;
  opacity: 0.95;
  cursor: move;
  border: 2px solid #222;
}

.group {
  margin: 8px 0;
}

.group button {
  padding: 6px 12px;
  margin: 3px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.group button:hover {
  background: #000;
}

#colorBox button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #666;
  cursor: pointer;
}

input[type="range"] {
  width: 100%;
  max-width: 100%;
}

/* ===== INDEX PRODUCT IMAGE FIXES ===== */

.index-product-image {
  height: 330px !important;
  overflow: hidden;
  background: #f5f5f5;
}

.index-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}

.index-product-card:hover .index-product-image img {
  transform: none !important;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .products-section {
    padding: 45px 20px;
  }

  .products-grid {
    gap: 20px;
  }

  .product-card > img {
    height: 220px;
  }

  .product-content {
    padding: 16px;
  }

  .product-content h3 {
    font-size: 18px;
  }

  .try-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .try-left,
  .try-right {
    width: 100%;
  }

  .try-left h2 {
    font-size: 34px;
  }

  .try-preview {
    padding: 70px 5%;
  }
}

/* =========================================
   MOBILE RESPONSIVE
   TWO PRODUCTS PER ROW
========================================= */

@media (max-width: 600px) {
  .products-section {
    padding: 25px 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .product-card {
    width: 100%;
    min-width: 0;
    border-radius: 9px;
  }

  .product-card > img {
    width: 100%;
    height: 145px;
    object-fit: cover;
  }

  .product-content {
    padding: 12px 8px 14px;
  }

  .product-content h3 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .product-content p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .product-btn {
    padding: 9px 12px;
    margin-top: 8px;
    font-size: 12px;
  }

  /* Center the last product when there are 9 cards */

  .product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }

  .product-card:last-child:nth-child(odd) > img {
    height: 160px;
  }

  /* Try Preview */

  .try-preview {
    padding: 50px 18px;
  }

  .try-container {
    gap: 30px;
  }

  .try-left h2 {
    font-size: 29px;
  }

  .try-left p {
    font-size: 14px;
  }

  .try-btn {
    padding: 12px 25px;
    font-size: 13px;
  }

  .mini-app {
    padding: 15px;
  }

  /* Full Preview App */

  .app {
    width: 100%;
    margin: 20px auto;
    padding: 12px;
  }

  #blind {
    border-width: 1px;
  }

  .group button {
    padding: 7px 10px;
    font-size: 12px;
  }

  /* Index Images */

  .index-product-image {
    height: 220px !important;
  }
}

/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 360px) {
  .products-section {
    padding: 20px 8px;
  }

  .products-grid {
    gap: 8px;
  }

  .product-card > img {
    height: 120px;
  }

  .product-content {
    padding: 10px 7px;
  }

  .product-content h3 {
    font-size: 13px;
  }

  .product-content p {
    font-size: 11px;
    line-height: 1.45;
  }

  .product-btn {
    padding: 8px 9px;
    font-size: 11px;
  }

  .product-card:last-child:nth-child(odd) > img {
    height: 135px;
  }

  .try-left h2 {
    font-size: 25px;
  }

  .index-product-image {
    height: 180px !important;
  }
}
