/* GymCore WooCommerce Styling */
/* Brand Colors: Royal Blue #0032A0, Black #000, White #FFF, Accent Indigo #6366F1 */
/* Fonts: Barlow Condensed 700/800 uppercase headings, Inter 400/500/700 body */

/* =============================================
   GLOBAL WOOCOMMERCE ELEMENTS
   ============================================= */

.woocommerce,
.woocommerce-page {
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4,
.woocommerce h5,
.woocommerce h6,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3,
.woocommerce-page h4,
.woocommerce-page h5,
.woocommerce-page h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   BUTTONS
   ============================================= */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input[type="button"],
.woocommerce input[type="submit"],
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input[type="button"],
.woocommerce-page input[type="submit"],
.woocommerce-page #respond input#submit {
  background-color: #0032A0;
  color: #FFF;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input[type="button"]:hover,
.woocommerce input[type="submit"]:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input[type="button"]:hover,
.woocommerce-page input[type="submit"]:hover,
.woocommerce-page #respond input#submit:hover {
  background-color: #001f75;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input[type="button"].alt,
.woocommerce input[type="submit"].alt,
.woocommerce #respond input#submit.alt,
.woocommerce-page a.button.alt,
.woocommerce-page button.button.alt,
.woocommerce-page input[type="button"].alt,
.woocommerce-page input[type="submit"].alt,
.woocommerce-page #respond input#submit.alt {
  background-color: #0032A0;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input[type="button"].alt:hover,
.woocommerce input[type="submit"].alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce-page a.button.alt:hover,
.woocommerce-page button.button.alt:hover,
.woocommerce-page input[type="button"].alt:hover,
.woocommerce-page input[type="submit"].alt:hover,
.woocommerce-page #respond input#submit.alt:hover {
  background-color: #001f75;
}

/* =============================================
   FORM INPUTS & FIELDS
   ============================================= */

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce input[type="tel"],
.woocommerce textarea,
.woocommerce select,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="password"],
.woocommerce-page input[type="number"],
.woocommerce-page input[type="tel"],
.woocommerce-page textarea,
.woocommerce-page select {
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce input[type="password"]:focus,
.woocommerce input[type="number"]:focus,
.woocommerce input[type="tel"]:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.woocommerce-page input[type="text"]:focus,
.woocommerce-page input[type="email"]:focus,
.woocommerce-page input[type="password"]:focus,
.woocommerce-page input[type="number"]:focus,
.woocommerce-page input[type="tel"]:focus,
.woocommerce-page textarea:focus,
.woocommerce-page select:focus {
  outline: none;
  border-color: #0032A0;
  box-shadow: 0 0 0 3px rgba(0, 50, 160, 0.1);
}

/* =============================================
   CART PAGE
   ============================================= */

.woocommerce table.cart {
  border-collapse: collapse;
  margin-bottom: 24px;
}

.woocommerce table.cart thead,
.woocommerce-page table.cart thead {
  background-color: #f8f9fa;
}

.woocommerce table.cart th,
.woocommerce-page table.cart th {
  border: 1px solid #CBD5E1;
  padding: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: left;
}

.woocommerce table.cart td,
.woocommerce-page table.cart td {
  border: 1px solid #CBD5E1;
  padding: 12px;
  font-size: 16px;
  font-weight: 400;
}

.woocommerce table.cart tbody tr:hover,
.woocommerce-page table.cart tbody tr:hover {
  background-color: rgba(0, 50, 160, 0.02);
}

.woocommerce table.cart .product-name a {
  color: #0032A0;
  text-decoration: none;
  font-weight: 600;
}

.woocommerce table.cart .product-name a:hover {
  color: #001f75;
  text-decoration: underline;
}

.woocommerce table.cart .product-price,
.woocommerce-page table.cart .product-price {
  color: #0032A0;
  font-weight: 600;
}

.woocommerce .quantity {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty {
  width: 60px;
  padding: 6px;
  text-align: center;
  border: 1px solid #CBD5E1;
  border-radius: 0;
}

.woocommerce .quantity button,
.woocommerce-page .quantity button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #CBD5E1;
  background-color: #f8f9fa;
  border-radius: 0;
  cursor: pointer;
  font-weight: 700;
}

.woocommerce .quantity button:hover,
.woocommerce-page .quantity button:hover {
  background-color: #e2e8f0;
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */

.woocommerce-checkout {
  max-width: 100%;
}

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

.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
}

.woocommerce-checkout .form-row label span.required {
  color: #e11d48;
}

.woocommerce-checkout .form-row.form-row-first,
.woocommerce-checkout .form-row.form-row-last {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}

.woocommerce-checkout .form-row.form-row-first {
  margin-right: 4%;
}

.woocommerce-checkout h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0032A0;
}

.woocommerce #payment {
  background-color: #f8f9fa;
  padding: 16px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
}

.woocommerce #payment ul.payment_methods {
  margin-bottom: 16px;
}

.woocommerce #payment ul.payment_methods li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #CBD5E1;
}

.woocommerce #payment ul.payment_methods li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.woocommerce #payment ul.payment_methods li label {
  font-weight: 500;
}

/* =============================================
   ORDER RECEIVED PAGE
   ============================================= */

.woocommerce-order {
  margin: 24px 0;
}

.woocommerce-order-details {
  margin-bottom: 32px;
}

.woocommerce-order-details__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0032A0;
}

.woocommerce-order table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-order table.shop_table thead {
  background-color: #f8f9fa;
}

.woocommerce-order table.shop_table th {
  border: 1px solid #CBD5E1;
  padding: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: left;
}

.woocommerce-order table.shop_table td {
  border: 1px solid #CBD5E1;
  padding: 12px;
  font-size: 16px;
}

.woocommerce-order-details__addresses address {
  font-style: normal;
  line-height: 1.8;
}

/* =============================================
   MY ACCOUNT PAGE
   ============================================= */

.woocommerce-MyAccount-navigation {
  margin-bottom: 32px;
}

.woocommerce-MyAccount-navigation-Link {
  display: block;
  padding: 12px 16px;
  margin-bottom: 8px;
  background-color: #f8f9fa;
  border-left: 4px solid transparent;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation-Link:hover {
  background-color: #e2e8f0;
  border-left-color: #0032A0;
}

.woocommerce-MyAccount-navigation-Link.is-active {
  background-color: #0032A0;
  color: #FFF;
  border-left-color: #0032A0;
  font-weight: 600;
}

.woocommerce-MyAccount-content {
  padding: 24px;
  background-color: #FFF;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
}

.woocommerce-MyAccount-content h2 {
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0032A0;
}

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

.woocommerce table.my_account_orders thead {
  background-color: #f8f9fa;
}

.woocommerce table.my_account_orders th {
  border: 1px solid #CBD5E1;
  padding: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: left;
}

.woocommerce table.my_account_orders td {
  border: 1px solid #CBD5E1;
  padding: 12px;
  font-size: 16px;
}

.woocommerce table.my_account_orders tbody tr:hover {
  background-color: rgba(0, 50, 160, 0.02);
}

/* =============================================
   SUBSCRIPTION TABLES
   ============================================= */

.woocommerce table.shop_table.subscription_details,
.woocommerce table.my_account_subscriptions {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.woocommerce table.subscription_details thead,
.woocommerce table.my_account_subscriptions thead {
  background-color: #f8f9fa;
}

.woocommerce table.subscription_details th,
.woocommerce table.my_account_subscriptions th {
  border: 1px solid #CBD5E1;
  padding: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: left;
}

.woocommerce table.subscription_details td,
.woocommerce table.my_account_subscriptions td {
  border: 1px solid #CBD5E1;
  padding: 12px;
  font-size: 16px;
}

.woocommerce-subscription-amount {
  color: #0032A0;
  font-weight: 600;
}

.woocommerce-subscription-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.woocommerce-subscription-status.active {
  background-color: #d1fae5;
  color: #065f46;
}

.woocommerce-subscription-status.on-hold {
  background-color: #fef3c7;
  color: #92400e;
}

.woocommerce-subscription-status.pending {
  background-color: #dbeafe;
  color: #0c2d6b;
}

.woocommerce-subscription-status.expired {
  background-color: #fee2e2;
  color: #7f1d1d;
}

/* =============================================
   PRODUCT SINGLE PAGE
   ============================================= */

.woocommerce div.product .woocommerce-product-rating {
  margin-bottom: 16px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.6;
}

.woocommerce div.product .price {
  color: #0032A0;
  font-weight: 700;
  font-size: 24px;
  margin: 16px 0;
}

.woocommerce div.product .woocommerce-variation-add-to-cart {
  margin-top: 16px;
}

.woocommerce div.product .variations_form {
  margin-bottom: 20px;
}

.woocommerce div.product .variations_form label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.woocommerce div.product form.cart .quantity {
  margin-right: 16px;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
  background-color: #0032A0;
  color: #FFF;
  border: none;
  border-radius: 4px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background-color: #001f75;
}

/* =============================================
   NOTICES
   ============================================= */

.woocommerce-message,
.woocommerce-success,
.woocommerce-notice,
.woocommerce-error {
  padding: 16px;
  margin-bottom: 20px;
  border-left: 4px solid transparent;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.woocommerce-message,
.woocommerce-success {
  background-color: #d1fae5;
  color: #065f46;
  border-left-color: #10b981;
}

.woocommerce-message a,
.woocommerce-success a {
  color: #065f46;
  font-weight: 600;
}

.woocommerce-notice {
  background-color: #dbeafe;
  color: #0c2d6b;
  border-left-color: #3b82f6;
}

.woocommerce-notice a {
  color: #0c2d6b;
  font-weight: 600;
}

.woocommerce-error {
  background-color: #fee2e2;
  color: #7f1d1d;
  border-left-color: #ef4444;
}

.woocommerce-error a {
  color: #7f1d1d;
  font-weight: 600;
}

/* =============================================
   PRODUCT GRID
   ============================================= */

.woocommerce ul.products li.product {
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
  border-color: #0032A0;
  box-shadow: 0 4px 12px rgba(0, 50, 160, 0.1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  color: #000;
  text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link:hover {
  color: #0032A0;
}

.woocommerce ul.products li.product .price {
  color: #0032A0;
  font-weight: 700;
  font-size: 18px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .woocommerce-checkout .form-row.form-row-first,
  .woocommerce-checkout .form-row.form-row-last {
    width: 100%;
    margin-right: 0;
  }

  .woocommerce table.cart th,
  .woocommerce table.cart td,
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 8px;
    font-size: 14px;
  }

  .woocommerce div.product form.cart button.single_add_to_cart_button {
    width: 100%;
  }

  .woocommerce-MyAccount-navigation-Link {
    padding: 10px 12px;
  }

  .woocommerce-MyAccount-content {
    padding: 16px;
  }
}
