/* WooCommerce Specific Styling for Sayed Scarf Theme */

/* WooCommerce Breadcrumbs */
.woocommerce-breadcrumb {
  margin: 20px 0 30px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.woocommerce-breadcrumb a {
  color: var(--sayed-wine);
}

.woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

/* Shop Archive / Catalog Page */
.sayed-shop-header {
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--sayed-border);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.sayed-shop-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--sayed-wine-dark);
  margin: 0;
}

.woocommerce-ordering select {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--sayed-border);
  background-color: #fff;
  color: var(--sayed-text-main);
  outline: none;
}

/* WooCommerce Notices & Alerts */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 14px 20px;
  margin: 0 0 24px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.woocommerce-message {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.woocommerce-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.woocommerce-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  list-style: none;
}

/* Quantity Stepper */
.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.quantity input.qty {
  width: 48px;
  height: 40px;
  text-align: center;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  -moz-appearance: textfield;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 36px;
  height: 40px;
  background: #f9fafb;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #4b5563;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: #f3f4f6;
  color: var(--sayed-wine);
}

/* Product Variation Form */
.variations_form {
  margin-bottom: 24px;
}

.variations {
  width: 100%;
  margin-bottom: 16px;
}

.variations td.label {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--sayed-wine-dark);
  vertical-align: middle;
  width: 70px;
}

.variations td.value select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

/* Color Swatches / Circles preview */
.sayed-color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.color-swatch-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d1d5db;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color-swatch-dot:hover,
.color-swatch-dot.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--sayed-wine);
}

/* Cart & Checkout Pages */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  padding: 40px 0 60px;
}

.woocommerce-cart-form__contents {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.woocommerce-cart-form__contents th,
.woocommerce-cart-form__contents td {
  padding: 16px;
  border-bottom: 1px solid var(--sayed-border);
  text-align: right;
}

.woocommerce-cart-form__contents th {
  background: var(--sayed-bg-soft);
  font-weight: 700;
  color: var(--sayed-wine-dark);
}

.cart-collaterals {
  background: var(--sayed-bg-soft);
  padding: 24px;
  border-radius: var(--sayed-radius);
  border: 1px solid var(--sayed-border);
  max-width: 480px;
  margin-right: auto;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
}

@media (max-width: 880px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-box {
  background: #fff;
  border: 1px solid var(--sayed-border);
  border-radius: var(--sayed-radius);
  padding: 24px;
}

.checkout-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--sayed-wine-dark);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sayed-border);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--sayed-dark);
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--sayed-wine);
  box-shadow: 0 0 0 3px rgba(75, 12, 28, 0.1);
}

#place_order {
  width: 100%;
  background: linear-gradient(135deg, var(--sayed-wine), var(--sayed-wine-dark));
  color: #fff;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#place_order:hover {
  background: linear-gradient(135deg, var(--sayed-wine-light), var(--sayed-wine));
  transform: translateY(-2px);
}

/* Standard Single Product Add to Cart Form */
form.cart:not(#sayed-express-order-form) {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.single_add_to_cart_button.button {
  background: var(--sayed-wine-dark) !important;
  color: #fff !important;
  border: 1px solid rgba(216, 180, 119, 0.4) !important;
  padding: 12px 26px !important;
  border-radius: 40px !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.single_add_to_cart_button.button:hover {
  background: var(--sayed-wine) !important;
  color: #fff !important;
  border-color: var(--sayed-gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 12, 28, 0.25);
}
