/**
 * Fashion Minimalist WooCommerce Styles
 * Custom styles for WooCommerce components
 */

/* Shop Page */
.woocommerce-result-count {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.woocommerce-ordering {
  margin-bottom: 20px;
}

.woocommerce-ordering select {
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: 14px;
}

/* Product Grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product {
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

.product:hover {
  transform: translateY(-5px);
}

.product .woocommerce-loop-product__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  transition: opacity 0.3s ease;
}

.product:hover img {
  opacity: 0.9;
}

.woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #222;
  line-height: 1.4;
}

.woocommerce-loop-product__title:hover {
  color: #666;
}

.price {
  font-size: 16px;
  font-weight: 500;
  color: #222;
  margin-bottom: 15px;
}

.price ins {
  text-decoration: none;
  font-weight: 500;
}

.price del {
  color: #999;
  margin-right: 8px;
  font-size: 14px;
}

.add_to_cart_button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.add_to_cart_button:hover {
  background-color: #444;
  color: #fff;
}

.added_to_cart {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

/* On Sale Badge */
.onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #222;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  z-index: 1;
}

/* Single Product */
.single-product .product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.single-product .images {
  position: relative;
}

.single-product .woocommerce-product-gallery {
  margin-bottom: 20px;
}

.single-product .woocommerce-product-gallery__wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-product .woocommerce-product-gallery__image {
  position: relative;
  overflow: hidden;
}

.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

.woocommerce-product-gallery__trigger {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #222;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.single-product .images:hover .woocommerce-product-gallery__trigger {
  opacity: 1;
}

.flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.flex-control-thumbs li {
  list-style: none;
  margin: 0;
  flex: 0 0 auto;
}

.flex-control-thumbs img {
  width: 80px;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs img.flex-active {
  opacity: 1;
}

/* Product Summary */
.single-product .summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-product .product_title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 10px;
  line-height: 1.2;
}

.single-product .price {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

/* Variations */
.variations_form {
  margin-bottom: 30px;
}

.variations {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.variations .label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.variations .value {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variations select {
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: 14px;
  min-width: 200px;
}

/* Color Swatches */
.variable-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.variable-item.color-variable-item {
  border-radius: 50%;
}

.variable-item:hover {
  border-color: #222;
}

.variable-item.selected {
  border-color: #222;
  box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.2);
}

/* Add to Cart */
.single_add_to_cart_button {
  width: 100%;
  padding: 15px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.single_add_to_cart_button:hover {
  background-color: #444;
}

.single_add_to_cart_button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Product Meta */
.product_meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #666;
  margin-top: 20px;
}

.product_meta>span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.product_meta a {
  color: #666;
  transition: color 0.3s ease;
}

.product_meta a:hover {
  color: #222;
}

/* Tabs */
.woocommerce-tabs {
  margin-top: 60px;
}

.woocommerce-tabs .wc-tabs {
  display: flex;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid #eee;
}

.woocommerce-tabs .wc-tabs li {
  margin: 0;
}

.woocommerce-tabs .wc-tabs li a {
  display: block;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.woocommerce-tabs .wc-tabs li.active a {
  color: #222;
  border-bottom-color: #222;
}

.woocommerce-tabs .wc-tabs li a:hover {
  color: #222;
}

.woocommerce-tabs .wc-tab {
  padding: 30px 0;
}

.woocommerce-tabs h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 20px;
}

/* Related Products */
.related.products {
  margin-top: 60px;
}

.related.products>h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 30px;
  text-align: center;
}

/* Cart Page */
.woocommerce-cart-form {
  margin-bottom: 40px;
}

.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.shop_table th {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #222;
}

.shop_table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.shop_table .product-thumbnail img {
  width: 80px;
  height: auto;
}

.shop_table .product-name a {
  font-size: 16px;
  font-weight: 400;
  color: #222;
  text-decoration: none;
}

.shop_table .product-name a:hover {
  color: #666;
}

.quantity input {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

.actions {
  text-align: right;
}

.coupon {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.coupon input {
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: 14px;
}

.button {
  padding: 10px 20px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  background-color: #444;
  color: #fff;
}

/* Cart Totals */
.cart-collaterals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.cart_totals {
  background-color: #f8f8f8;
  padding: 30px;
}

.cart_totals h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.cart_totals table {
  width: 100%;
  border-collapse: collapse;
}

.cart_totals th {
  text-align: left;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

.cart_totals td {
  text-align: right;
  padding: 10px 0;
  font-size: 14px;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
  font-weight: 500;
  color: #222;
  font-size: 16px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.checkout-button {
  width: 100%;
  padding: 15px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 20px;
}

.checkout-button:hover {
  background-color: #444;
  color: #fff;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
  }

  .single-product .product {
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .single-product .product {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .woocommerce-tabs .wc-tabs {
    flex-wrap: wrap;
  }

  .woocommerce-tabs .wc-tabs li {
    flex: 1 1 auto;
  }

  .woocommerce-tabs .wc-tabs li a {
    padding: 10px 15px;
    font-size: 12px;
  }

  .cart-collaterals {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .shop_table {
    font-size: 14px;
  }

  .shop_table th,
  .shop_table td {
    padding: 10px;
  }

  .coupon {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .single-product .product_title {
    font-size: 1.5rem;
  }

  .woocommerce-tabs .wc-tabs {
    border-bottom: none;
  }

  .woocommerce-tabs .wc-tabs li {
    width: 100%;
  }

  .woocommerce-tabs .wc-tabs li a {
    border-bottom: 1px solid #eee;
  }

  .woocommerce-tabs .wc-tabs li.active a {
    border-bottom-color: #222;
  }

  .shop_table .product-thumbnail img {
    width: 60px;
  }

  .cart_totals {
    padding: 20px;
  }
}