/*
Theme Name: SigmaEtsy Digital Store
Theme URI: https://sigmaetsy.com
Author: Muhammad Nadir
Description: Shopify-style editable WooCommerce digital downloads theme with Drag-and-Drop Homepage Section Builder, Poppins typography, 1:1 square product containers, 5-6+ image gallery, and mobile-first layout.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: sigmaetsy
Tags: e-commerce, woocommerce, digital-downloads
*/

html, body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222222;
  background-color: #ffffff;
  margin: 0;
  overflow-x: hidden;
}

h1, .entry-title, .product_title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 500 !important;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 1:1 Square Product Image Container */
.sigma-square-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background-color: #f5f5f4;
  border: 1px solid rgba(229, 229, 229, 0.9);
}

.sigma-square-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sigma-product-card:hover .sigma-square-box img {
  transform: scale(1.04);
}

/* WooCommerce Add to Cart Button Styling */
.woocommerce-add-to-cart-wrap .single_add_to_cart_button {
  width: 100%;
  background-color: #222222 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 14px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer;
}

.woocommerce-add-to-cart-wrap .single_add_to_cart_button:hover {
  background-color: #3a3a3a !important;
}

/* Single Product 5-6+ Gallery */
.sigma-gallery-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sigma-thumb-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 72px;
  flex-shrink: 0;
  max-height: 540px;
  overflow-y: auto;
}

.sigma-thumb-btn {
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #f5f5f4;
}

.sigma-thumb-btn.active {
  border-color: #222222;
}

.sigma-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sigma-main-stage {
  position: relative;
  flex: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f4;
  border: 1px solid #e5e5e5;
}

.sigma-main-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .sigma-gallery-wrap {
    flex-direction: column-reverse;
  }
  .sigma-thumb-strip {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .sigma-thumb-btn {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
  }
}
