/* ===== VARIABLES & CONSTANTS ===== */
:root {
  --primary-color: #8a1d1f;
  --text-color: #4a4a4a;
  --border-color: #ccc;
  --border-radius: 4px;
  --transition-speed: 0.3s;
  --font-serif: "adobe-calson-pro", Georgia, serif;
  --font-knockout: "Knockout 27 A", "Knockout 27 B", sans-serif;
}

/* ===== LAYOUT ===== */
.woocommerce .product {
  padding: 0px 32px 0px 32px;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}

.single-product .site-main,
.single-product .content-area {
  max-width: none !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}

.wp-block-woocommerce-checkout {
  width: 800px;
  max-width: 100%; /* Responsive fallback */
}

.woocommerce-notices-wrapper {
  margin-top: 200px;
}

/* ===== BUTTONS ===== */
.single_add_to_cart_button,
.add_to_cart_button, .wp-block-button__link {
  background-color: var(--primary-color) !important;
  color: white !important;
  font-family: var(--font-knockout);
  font-size: 20px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease, 
              color var(--transition-speed) ease;
}

.single_add_to_cart_button:hover,
.add_to_cart_button:hover,.wp-block-button__link:hover {
  background-color: white !important;
  color: var(--primary-color) !important;
}

/* ===== PRODUCT INFO ===== */
.woocommerce-Price-amount,
.stock {
  color: var(--primary-color) !important;
}

.variations {
  font-family: var(--font-serif);
  font-size: 22px; /* Fixed syntax error */
}

/* ===== FORM ELEMENTS ===== */
label {
  font-family: serif;
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 8px;
  display: inline-block;
}

select {
  width: 150px;
  padding: 8px 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: white;
  color: #333;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color var(--transition-speed) ease;
}

select:focus {
  outline: none;
  border-color: var(--primary-color);
}

select:hover {
  border-color: #999;
}

/* ===== HIDDEN ELEMENTS ===== */
.product_meta,
.kiwi-article-bar,
.woocommerce-tabs ul.tabs {
  display: none;
}

/* WooCommerce Modal Popup */
#wc-product-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#wc-product-modal[style*="display: flex"] {
  display: flex !important;
}
#wc-product-modal > div {
  position: relative;
  width: 95vw !important;
  max-width: 1000px !important;
  min-width: 300px;
  height: 90vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

#wc-product-modal iframe {
  width: 100% !important;
  min-width: 0 !important;
  height: 100%;
  border: 0;
  background: #fff;
  display: block;
}

/* Make WooCommerce product content inside the iframe responsive */
.woocommerce .product,
.single-product .site-main,
.single-product .content-area {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
  overflow-x: hidden;
}
#wc-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s;
}
#wc-modal-close:hover {
  background: #eee;
}