.skyrise-commerce-page {
  background: #f6f7fa;
  padding: 56px 16px;
  overflow-x: hidden;
  box-sizing: border-box;
}

.skyrise-commerce-shell {
  max-width: min(1200px, 100%);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.skyrise-commerce-container {
  background: #ffffff;
  border: 1px solid #e3eaf4;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(2, 20, 44, 0.06);
  padding: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.woocommerce,
.woocommerce-page {
  direction: rtl;
  text-align: right;
  color: #102a4a;
  font-family: "Cairo", sans-serif;
  box-sizing: border-box;
  max-width: 100%;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4,
.woocommerce h5,
.woocommerce h6,
.woocommerce .page-title,
.woocommerce .entry-title {
  color: #0a2343;
  font-weight: 800;
}

.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  border: 1px solid #d5e1f0;
  border-radius: 12px;
  background: #f8fbff;
  color: #102a4a;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: linear-gradient(135deg, var(--shell-green, #0fba1e) 0%, #0ca61b 100%);
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 186, 30, 0.2);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea31a 0%, #099417 100%);
  box-shadow: 0 10px 20px rgba(15, 186, 30, 0.26);
  transform: translateY(-1px);
}

.woocommerce table.shop_table {
  border: 1px solid #d8e4f3;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
}

.woocommerce table.shop_table thead th {
  background: #eef4fb;
  color: #0f2f57;
  font-weight: 700;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: #e6edf7;
  color: #102a4a;
  padding: 12px;
}

.woocommerce .quantity .qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-select select {
  border: 1px solid #d1dfef;
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: #102a4a;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus,
.wc-block-components-select select:focus {
  border-color: var(--shell-blue, #066eb7);
  box-shadow: 0 0 0 3px rgba(6, 110, 183, 0.12);
  outline: 0;
}

.woocommerce form .form-row label,
.wc-block-components-text-input label,
.wc-block-components-select label,
.wc-block-components-checkbox label {
  color: #0e2a4d;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.woocommerce-cart table.cart .product-thumbnail img,
.wc-block-components-product-image img {
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #dbe6f3;
  background: #f4f8fc;
  max-width: 80px;
  height: auto;
}

.woocommerce-cart table.cart .product-name a {
  color: #0a2343;
  font-weight: 600;
  text-decoration: none;
  display: block;
  word-break: break-word;
}

.woocommerce-cart table.cart .product-name a:hover {
  color: var(--shell-blue, #066eb7);
}

.woocommerce .cart_totals,
.woocommerce-checkout-review-order,
.wc-block-cart__totals,
.wc-block-checkout__totals-wrapper,
.woocommerce-checkout #payment {
  border: 1px solid #d8e4f3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 20, 44, 0.05);
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.woocommerce-checkout #payment {
  background: #f7fbff;
  margin-top: 30px;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom-color: #dce7f5;
  padding: 0;
  margin: 0 0 20px;
}

.woocommerce-checkout #payment div.payment_box {
  background: #edf5ff;
  color: #3b4d65;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #edf5ff;
}

#add_payment_method .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  width: max-content;
  margin-bottom: 0;
  text-align: center;
  padding: 14px;
  font-size: 16px;
}

.woocommerce .cart_totals.calculated_shipping h2,
.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
  font-size: 1.25em;
  margin-bottom: 15px;
  border: none;
  padding-bottom: 10px;
}

.woocommerce .cart-collaterals,
.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review,
.woocommerce form.checkout,
.woocommerce-cart form.woocommerce-cart-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.woocommerce-cart table.cart td.actions .coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-width: min(200px, 100%);
  flex: 1;
  margin: 0;
}

.woocommerce-cart table.cart td.actions .coupon .button {
  margin: 0;
  white-space: nowrap;
}

.woocommerce-cart form.woocommerce-cart-form button[name="update_cart"] {
  cursor: pointer;
}

.woocommerce-cart form.woocommerce-cart-form button[name="update_cart"][disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.woocommerce form .form-row {
  margin-bottom: 20px;
  padding: 0;
}

.woocommerce-checkout .select2-container .select2-selection--single {
  height: 50px;
  border-radius: 12px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 10px;
}

/* My Account Styles */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid #d8e4f3;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid #e8eef7;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
  border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 14px;
  color: var(--shell-blue, #066eb7);
  text-decoration: none;
  font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: rgba(6, 110, 183, 0.09);
  color: #054e84;
}

.woocommerce-account .woocommerce-MyAccount-content {
  border: 1px solid #d8e4f3;
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 20, 44, 0.05);
}

/* Mobile & Overflow Fixes */
@media (max-width: 980px) {
  .skyrise-commerce-page {
    padding: 34px 12px;
  }

  .skyrise-commerce-container {
    border-radius: 14px;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive thead {
    display: none;
  }

  .woocommerce table.shop_table_responsive tbody th,
  .woocommerce table.shop_table_responsive tbody td {
    display: block;
    text-align: right;
    clear: both;
    width: 100%;
    box-sizing: border-box;
  }

  .woocommerce table.shop_table_responsive tbody td::before {
    content: attr(data-title) ": ";
    font-weight: 700;
    float: right;
    margin-left: 10px;
  }

  .woocommerce .cart_totals table.shop_table_responsive tbody th {
    display: none !important;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text,
  .woocommerce-cart table.cart td.actions .coupon .button {
    width: 100%;
    min-width: 0;
  }

  #add_payment_method .wc-proceed-to-checkout a.checkout-button,
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
  .woocommerce-checkout .wc-proceed-to-checkout a.checkout-button {
    margin-top: 15px;
  }
}

.woocommerce img,
.woocommerce-page img {
  width: 128px !important;
}

input#coupon_code {
  padding: 10px;
  border-radius: 15px;
  font-family: inherit;
}

button {
  font-family: inherit;
}
