/* Granny-Mass Standalone CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --primary: #005f5f;
  --primary-container: #0c7a7a;
  --background: #f8f9f9;
  --surface: #ffffff;
  --border: #e1e3e3;
  --text-primary: #191c1c;
  --text-muted: #4e6262;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Modal transitions */
.modal-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #0c7a7a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #005f5f;
}

/* =====================================================
   Single Product Page (WooCommerce)
   ===================================================== */

.gm-single-product .product_title,
.gm-single-product h1.product_title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #191c1c;
  line-height: 1.25;
  margin: 0;
}

@media (min-width: 640px) {
  .gm-single-product .product_title,
  .gm-single-product h1.product_title {
    font-size: 2rem;
  }
}

.gm-single-price .price,
.gm-single-price .woocommerce-Price-amount {
  color: #005f5f;
  font-weight: 700;
}

.gm-single-price del {
  opacity: 0.55;
  font-size: 0.85em;
  margin-right: 0.35em;
}

.gm-single-price ins {
  text-decoration: none;
}

/* Product gallery / image */
.gm-single-product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.gm-single-product .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.gm-single-product .woocommerce-product-gallery__image img,
.gm-single-product .wp-post-image {
  max-height: 360px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  display: block;
}

.gm-single-product .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.gm-single-product .flex-control-thumbs li {
  width: 64px;
  margin: 0;
}

.gm-single-product .flex-control-thumbs img {
  border: 1px solid #e1e3e3;
  border-radius: 0.5rem;
  cursor: pointer;
  opacity: 0.7;
}

.gm-single-product .flex-control-thumbs img.flex-active,
.gm-single-product .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: #0c7a7a;
}

/* Variation form */
.gm-variations-form .gm-variations {
  border-collapse: collapse;
}

.gm-variations-form .gm-variation-select,
.gm-variations-form select {
  width: 100%;
  max-width: 280px;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  background: #f8f9f9;
  border: 1px solid #e1e3e3;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  color: #191c1c;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23005f5f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
}

.gm-variations-form .gm-variation-select:focus,
.gm-variations-form select:focus {
  outline: none;
  border-color: #005f5f;
  box-shadow: 0 0 0 2px rgba(0, 95, 95, 0.15);
}

.gm-variations-form .single_variation {
  margin-bottom: 0.75rem;
}

.gm-variations-form .woocommerce-variation-price .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #005f5f;
}

.gm-variations-form .woocommerce-variation-availability {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Quantity + Add to cart button */
.gm-add-to-cart-wrap .quantity,
.gm-simple-cart .quantity {
  display: inline-flex;
  align-items: center;
}

.gm-add-to-cart-wrap .qty,
.gm-simple-cart .qty,
.gm-variations-form .qty {
  width: 4rem;
  padding: 0.6rem 0.5rem;
  text-align: center;
  background: #f8f9f9;
  border: 1px solid #e1e3e3;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #191c1c;
}

.gm-add-to-cart-wrap .qty:focus,
.gm-simple-cart .qty:focus {
  outline: none;
  border-color: #005f5f;
}

.gm-btn-add-cart,
.gm-add-to-cart-wrap .single_add_to_cart_button,
.gm-variations-form .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: #005f5f !important;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  border: none !important;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none !important;
}

.gm-btn-add-cart:hover,
.gm-add-to-cart-wrap .single_add_to_cart_button:hover,
.gm-variations-form .single_add_to_cart_button:hover {
  background: #0c7a7a !important;
}

.gm-add-to-cart-wrap .single_add_to_cart_button.disabled,
.gm-variations-form .single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Stock status */
.gm-single-product .stock {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.gm-single-product .stock.in-stock {
  color: #0c7a7a;
}

.gm-single-product .stock.out-of-stock {
  color: #dc2626;
}

/* Product tabs (Description / Additional info) */
.gm-single-product .woocommerce-tabs {
  margin: 0;
}

.gm-single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border-bottom: 1px solid #e1e3e3;
}

.gm-single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.gm-single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4e6262;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.gm-single-product .woocommerce-tabs ul.tabs li.active a,
.gm-single-product .woocommerce-tabs ul.tabs li a:hover {
  color: #005f5f;
  border-bottom-color: #005f5f;
}

.gm-single-product .woocommerce-tabs .panel {
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.gm-single-product .woocommerce-tabs .panel h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #191c1c;
  margin-bottom: 0.75rem;
}

.gm-single-product .woocommerce-tabs .panel p,
.gm-single-product .woocommerce-Tabs-panel--description {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #4e6262;
}

.gm-single-product .woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.gm-single-product .woocommerce-product-attributes th,
.gm-single-product .woocommerce-product-attributes td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #edeeee;
  text-align: left;
  vertical-align: top;
}

.gm-single-product .woocommerce-product-attributes th {
  font-weight: 600;
  color: #3e4948;
  width: 35%;
  background: #f8f9f9;
}

.gm-single-product .woocommerce-product-attributes td {
  color: #191c1c;
}

/* Notices on product page */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  border: 1px solid #e1e3e3;
  background: #fff;
}

.woocommerce-notices-wrapper .woocommerce-message {
  border-color: #0c7a7a;
  color: #005f5f;
}

/* Hide default WC sale flash if we use badge */
.gm-single-product .onsale {
  display: none;
}

/* Variation reset link */
.reset_variations {
  font-size: 0.7rem !important;
}

/* Product quick-view modal: keep content clear of close button */
#product-modal > div {
  position: relative;
}
#product-modal-content {
  padding-top: 0.25rem;
  padding-right: 0.25rem;
}
#product-modal .absolute.right-3 {
  z-index: 30;
}
