/* =========================================================
   AGOSSA COMMERCE v4.1
   Minimal premium cart + Shopify-inspired checkout + PDP tabs
   Final override layer
   ========================================================= */

:root {
  --ag41-ink: #20201e;
  --ag41-muted: #77746e;
  --ag41-soft: #f7f7f4;
  --ag41-line: #e8e7e2;
  --ag41-line-strong: #d9d8d2;
  --ag41-radius: 12px;
}

/* ---------------- CART ---------------- */
body.woocommerce-cart .agossa-cart-page-v40 {
  width: min(calc(100% - 64px), 1280px) !important;
  padding: 46px 0 96px !important;
}
body.woocommerce-cart .agossa-cart-heading-v40 {
  align-items: end !important;
  margin-bottom: 34px !important;
  padding-bottom: 18px !important;
}
body.woocommerce-cart .agossa-cart-eyebrow-v40 {
  margin-bottom: 7px !important;
  font-size: 9px !important;
  letter-spacing: .17em !important;
}
body.woocommerce-cart .agossa-cart-heading-v40 h1 {
  font-size: clamp(32px, 2.8vw, 42px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.04em !important;
}
body.woocommerce-cart .agossa-cart-count-v40 { font-size: 12px !important; }
body.woocommerce-cart .agossa-cart-layout-v40 {
  grid-template-columns: minmax(0, 1fr) 350px !important;
  gap: 74px !important;
}
body.woocommerce-cart .agossa-cart-columns-v40,
body.woocommerce-cart .agossa-cart-item-v40 {
  grid-template-columns: minmax(320px, 1fr) 160px 112px 122px !important;
  gap: 18px !important;
}
body.woocommerce-cart .agossa-cart-item-v40 {
  min-height: 118px !important;
  padding: 19px 0 !important;
}
body.woocommerce-cart .agossa-cart-product-v40 {
  grid-template-columns: 22px 76px minmax(0,1fr) !important;
  gap: 15px !important;
}
body.woocommerce-cart .agossa-cart-image-v40,
body.woocommerce-cart .agossa-cart-image-v40 a,
body.woocommerce-cart .agossa-cart-image-v40 img {
  width: 76px !important;
  height: 76px !important;
  border-radius: 8px !important;
}
body.woocommerce-cart .agossa-cart-copy-v40 h2 { font-size: 14px !important; margin-bottom: 5px !important; }
body.woocommerce-cart .agossa-cart-copy-v40 p { font-size: 12px !important; }
body.woocommerce-cart .agossa-cart-summary-v40 {
  min-width: 0 !important;
  padding-left: 0 !important;
}
body.woocommerce-cart .agossa-cart-summary-card-v40 {
  border-color: var(--ag41-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 38px rgba(24,24,22,.035) !important;
}
body.woocommerce-cart .agossa-cart-summary-head-v40,
body.woocommerce-cart .agossa-cart-delivery-v40,
body.woocommerce-cart .agossa-cart-totals-lines-v40,
body.woocommerce-cart .agossa-cart-grand-v40 {
  padding-left: 22px !important;
  padding-right: 22px !important;
}
body.woocommerce-cart .agossa-cart-checkout-v40 a.checkout-button {
  min-height: 54px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  letter-spacing: .02em !important;
}
body.woocommerce-cart .agossa-cart-secure-v40 { opacity: .78 !important; }

/* ---------------- PRODUCT INFO / REVIEWS ---------------- */
.single-product .agossa-product-tabs-v36 {
  padding: 64px 0 84px !important;
  border-top: 1px solid var(--ag41-line) !important;
}
.single-product .agossa-product-tabs-inner-v36 {
  width: min(calc(100% - 64px), 1160px) !important;
}
.single-product .agossa-product-tabs-head-v36 { margin-bottom: 17px !important; }
.single-product .agossa-product-tab-nav-v36,
.single-product .woocommerce-tabs ul.tabs.agossa-product-tab-nav-v36 {
  gap: 28px !important;
  border-top: 0 !important;
  border-bottom-color: var(--ag41-line) !important;
}
.single-product .agossa-product-tab-nav-v36 li a {
  padding: 15px 0 14px !important;
  font-size: 12px !important;
}
.single-product .agossa-product-tab-panel-v36,
.single-product .woocommerce-Tabs-panel.agossa-product-tab-panel-v36 {
  max-width: 100% !important;
  padding-top: 32px !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}
.single-product .agossa-product-tab-panel-v36 > h2,
.single-product .agossa-product-tab-panel-v36 .woocommerce-Reviews-title {
  margin-bottom: 18px !important;
  font-size: 21px !important;
  font-weight: 550 !important;
}
.single-product .agossa-product-tab-panel-v36 > p,
.single-product .agossa-product-tab-panel-v36 .woocommerce-product-details__short-description {
  max-width: 780px !important;
}
.single-product .agossa-product-tab-panel-v36 table.shop_attributes {
  max-width: 760px !important;
  border-top: 1px solid var(--ag41-line) !important;
}
.single-product .agossa-product-tab-panel-v36 table.shop_attributes th,
.single-product .agossa-product-tab-panel-v36 table.shop_attributes td {
  padding: 13px 0 !important;
  border-bottom: 1px solid var(--ag41-line) !important;
  background: transparent !important;
}
.single-product .agossa-product-tab-panel-v36 table.shop_attributes th {
  width: 180px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #7e7a73 !important;
}
.single-product #reviews.woocommerce-Reviews {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 380px !important;
  gap: 64px !important;
  align-items: start !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.single-product #reviews #comments,
.single-product #reviews #review_form_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.single-product #reviews ol.commentlist {
  margin: 0 !important;
  padding: 0 !important;
}
.single-product #reviews ol.commentlist li {
  margin: 0 !important;
  padding: 21px 0 !important;
  border-bottom: 1px solid var(--ag41-line) !important;
}
.single-product #reviews ol.commentlist li:first-child { border-top: 1px solid var(--ag41-line) !important; }
.single-product #reviews ol.commentlist li img.avatar {
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--ag41-soft) !important;
}
.single-product #reviews ol.commentlist li .comment-text {
  margin-left: 54px !important;
  padding: 0 !important;
  border: 0 !important;
}
.single-product #reviews .star-rating { font-size: 12px !important; }
.single-product #reviews #review_form_wrapper {
  padding: 24px !important;
  border: 1px solid var(--ag41-line) !important;
  border-radius: 12px !important;
  background: #fbfbf9 !important;
}
.single-product #reviews #reply-title {
  display: block !important;
  margin-bottom: 7px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--ag41-ink) !important;
}
.single-product #reviews #commentform label {
  margin-bottom: 7px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #5f5c56 !important;
}
.single-product #reviews #commentform input[type="text"],
.single-product #reviews #commentform input[type="email"],
.single-product #reviews #commentform textarea {
  width: 100% !important;
  border: 1px solid var(--ag41-line-strong) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.single-product #reviews #commentform input[type="text"],
.single-product #reviews #commentform input[type="email"] { min-height: 44px !important; padding: 0 12px !important; }
.single-product #reviews #commentform textarea { min-height: 116px !important; padding: 11px 12px !important; resize: vertical !important; }
.single-product #reviews #commentform input:focus,
.single-product #reviews #commentform textarea:focus { border-color: #77746e !important; outline: 0 !important; }
.single-product #reviews #commentform .form-submit input.submit {
  min-height: 46px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #171716 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

/* ---------------- CHECKOUT / SHOPIFY-LIKE ---------------- */
body.woocommerce-checkout,
body.woocommerce-checkout .site,
body.woocommerce-checkout #page,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .woocommerce { background: #fff !important; }
body.woocommerce-checkout .agossa-checkout-form { margin: 0 !important; }
body.woocommerce-checkout .agossa-checkout-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 720px) 430px !important;
  gap: 0 !important;
  width: min(100%, 1210px) !important;
  min-height: calc(100vh - 62px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body.woocommerce-checkout .agossa-checkout-left {
  min-width: 0 !important;
  padding: 54px 68px 80px 32px !important;
  border-right: 1px solid var(--ag41-line) !important;
}
body.woocommerce-checkout .agossa-checkout-inner {
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.woocommerce-checkout .agossa-checkout-logo { margin: 0 0 34px !important; }
body.woocommerce-checkout .agossa-checkout-logo img { max-width: 146px !important; max-height: 38px !important; }
body.woocommerce-checkout .agossa-checkout-intro {
  margin: 0 0 30px !important;
  padding: 0 0 24px !important;
  border-bottom: 1px solid var(--ag41-line) !important;
}
body.woocommerce-checkout .agossa-checkout-eyebrow { display: none !important; }
body.woocommerce-checkout .agossa-checkout-intro h1 {
  margin: 0 0 7px !important;
  font-family: inherit !important;
  font-size: 25px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
  color: var(--ag41-ink) !important;
}
body.woocommerce-checkout .agossa-checkout-intro p {
  max-width: 520px !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: var(--ag41-muted) !important;
}
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3,
body.woocommerce-checkout .agossa-checkout-payment h2 {
  margin: 0 0 16px !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -.015em !important;
  color: var(--ag41-ink) !important;
}
body.woocommerce-checkout .agossa-checkout-fields { margin: 0 !important; }
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
  margin: 0 0 30px !important;
}
body.woocommerce-checkout .agossa-checkout-form .form-row { margin-bottom: 11px !important; }
body.woocommerce-checkout .agossa-checkout-form .form-row label:not(.checkbox) {
  margin: 0 0 6px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: #5e5b55 !important;
}
body.woocommerce-checkout .agossa-checkout-form input.input-text,
body.woocommerce-checkout .agossa-checkout-form textarea,
body.woocommerce-checkout .agossa-checkout-form select,
body.woocommerce-checkout .agossa-checkout-form .select2-container .select2-selection--single {
  min-height: 48px !important;
  padding: 0 13px !important;
  border: 1px solid #d8d7d1 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 13px !important;
  color: var(--ag41-ink) !important;
}
body.woocommerce-checkout .agossa-checkout-form textarea { min-height: 94px !important; padding-top: 11px !important; }
body.woocommerce-checkout .agossa-checkout-form input.input-text:focus,
body.woocommerce-checkout .agossa-checkout-form textarea:focus,
body.woocommerce-checkout .agossa-checkout-form select:focus,
body.woocommerce-checkout .agossa-checkout-form .select2-container--focus .select2-selection--single {
  border-color: #79766f !important;
  outline: none !important;
}
body.woocommerce-checkout .agossa-checkout-payment {
  margin: 32px 0 0 !important;
  padding: 26px 0 0 !important;
  border-top: 1px solid var(--ag41-line) !important;
}
body.woocommerce-checkout .agossa-checkout-payment > p {
  margin: -8px 0 15px !important;
  font-size: 11px !important;
  color: var(--ag41-muted) !important;
}
body.woocommerce-checkout .agossa-checkout-payment #payment ul.payment_methods {
  border: 1px solid #d8d7d1 !important;
  border-radius: 9px !important;
  background: #fff !important;
}
body.woocommerce-checkout .agossa-checkout-payment #payment ul.payment_methods li {
  padding: 15px 16px !important;
  border-bottom: 1px solid var(--ag41-line) !important;
}
body.woocommerce-checkout .agossa-checkout-payment #payment div.payment_box {
  margin: 13px -16px -15px !important;
  padding: 13px 16px !important;
  background: var(--ag41-soft) !important;
  font-size: 11px !important;
}
body.woocommerce-checkout .agossa-checkout-payment #place_order {
  min-height: 52px !important;
  margin-top: 16px !important;
  border-radius: 8px !important;
  background: #171716 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: .02em !important;
}
body.woocommerce-checkout .agossa-checkout-actions-bottom { margin-top: 18px !important; }
body.woocommerce-checkout .agossa-back-cart { font-size: 11px !important; color: #615e58 !important; }

body.woocommerce-checkout .agossa-checkout-right {
  min-width: 0 !important;
  padding: 54px 32px 80px 44px !important;
  background: #f7f7f5 !important;
}
body.woocommerce-checkout .agossa-order-summary {
  position: sticky !important;
  top: 82px !important;
  width: 100% !important;
  max-width: 390px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.woocommerce-checkout .agossa-order-summary-eyebrow { display: none !important; }
body.woocommerce-checkout .agossa-order-summary-title {
  margin: 0 0 20px !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -.015em !important;
  color: var(--ag41-ink) !important;
}
body.woocommerce-checkout .agossa-review-products {
  gap: 0 !important;
  padding-bottom: 14px !important;
  border-bottom-color: #deddd8 !important;
}
body.woocommerce-checkout .agossa-review-product {
  grid-template-columns: 60px minmax(0,1fr) auto !important;
  gap: 12px !important;
  padding: 8px 0 !important;
}
body.woocommerce-checkout .agossa-review-product-image,
body.woocommerce-checkout .agossa-review-product-image img {
  width: 60px !important;
  height: 60px !important;
  border-radius: 8px !important;
}
body.woocommerce-checkout .agossa-review-product-image span {
  top: -7px !important;
  right: -7px !important;
  width: 20px !important;
  height: 20px !important;
  background: #77746e !important;
  font-size: 9px !important;
}
body.woocommerce-checkout .agossa-review-product-info strong {
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
body.woocommerce-checkout .agossa-review-product-info .variation,
body.woocommerce-checkout .agossa-review-product-info dl.variation { font-size: 10px !important; color: #77746e !important; }
body.woocommerce-checkout .agossa-review-product-price,
body.woocommerce-checkout .agossa-review-product-price .amount {
  padding-right: 0 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
body.woocommerce-checkout .agossa-remove-checkout-item { display: none !important; }
body.woocommerce-checkout .agossa-review-coupon { padding: 14px 0 !important; border-bottom-color: #deddd8 !important; }
body.woocommerce-checkout .agossa-coupon-toggle { font-size: 11px !important; text-decoration: underline !important; text-underline-offset: 3px !important; }
body.woocommerce-checkout .agossa-coupon-code,
body.woocommerce-checkout .agossa-apply-coupon { height: 44px !important; border-radius: 8px !important; }
body.woocommerce-checkout .agossa-review-totals { padding-top: 12px !important; }
body.woocommerce-checkout .agossa-review-row { padding: 6px 0 !important; font-size: 11px !important; }
body.woocommerce-checkout .agossa-review-row strong,
body.woocommerce-checkout .agossa-review-row .amount { font-size: 11px !important; }
body.woocommerce-checkout .agossa-review-total {
  margin-top: 12px !important;
  padding-top: 16px !important;
  border-top-color: #d3d2cd !important;
}
body.woocommerce-checkout .agossa-review-total,
body.woocommerce-checkout .agossa-review-total strong,
body.woocommerce-checkout .agossa-review-total .amount {
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 650 !important;
}

@media (max-width: 1180px) {
  body.woocommerce-cart .agossa-cart-layout-v40 { gap: 48px !important; grid-template-columns: minmax(0,1fr) 330px !important; }
  body.woocommerce-cart .agossa-cart-columns-v40,
  body.woocommerce-cart .agossa-cart-item-v40 { grid-template-columns: minmax(290px,1fr) 145px 100px 112px !important; gap: 14px !important; }
  body.woocommerce-checkout .agossa-checkout-layout { grid-template-columns: minmax(0, 650px) 390px !important; width: min(100%, 1080px) !important; }
  body.woocommerce-checkout .agossa-checkout-left { padding-left: 26px !important; padding-right: 46px !important; }
  body.woocommerce-checkout .agossa-checkout-right { padding-left: 34px !important; padding-right: 26px !important; }
}

@media (max-width: 991.98px) {
  body.woocommerce-cart .agossa-cart-page-v40 { width: min(calc(100% - 36px), 760px) !important; padding-top: 34px !important; }
  body.woocommerce-cart .agossa-cart-layout-v40 { grid-template-columns: 1fr !important; gap: 34px !important; }
  body.woocommerce-cart .agossa-cart-summary-v40 { max-width: none !important; }
  .single-product #reviews.woocommerce-Reviews { grid-template-columns: 1fr !important; gap: 34px !important; }
  body.woocommerce-checkout .agossa-checkout-layout { grid-template-columns: 1fr !important; width: min(100% - 32px, 720px) !important; padding: 26px 0 56px !important; }
  body.woocommerce-checkout .agossa-checkout-left { order: 2 !important; padding: 30px 0 0 !important; border-right: 0 !important; }
  body.woocommerce-checkout .agossa-checkout-right { order: 1 !important; padding: 0 0 28px !important; border-bottom: 1px solid var(--ag41-line) !important; background: #fff !important; }
  body.woocommerce-checkout .agossa-checkout-inner,
  body.woocommerce-checkout .agossa-order-summary { max-width: none !important; margin: 0 !important; }
  body.woocommerce-checkout .agossa-order-summary { position: static !important; }
}

@media (max-width: 575.98px) {
  body.woocommerce-cart .agossa-cart-page-v40 { width: calc(100% - 24px) !important; padding: 26px 0 60px !important; }
  body.woocommerce-cart .agossa-cart-heading-v40 { margin-bottom: 24px !important; }
  body.woocommerce-cart .agossa-cart-heading-v40 h1 { font-size: 31px !important; }
  .single-product .agossa-product-tabs-v36 { padding: 44px 0 58px !important; }
  .single-product .agossa-product-tabs-inner-v36 { width: calc(100% - 28px) !important; }
  .single-product #reviews #review_form_wrapper { padding: 18px !important; }
  body.woocommerce-checkout .agossa-checkout-layout { width: calc(100% - 24px) !important; padding-top: 18px !important; }
  body.woocommerce-checkout .agossa-checkout-logo { margin-bottom: 24px !important; }
  body.woocommerce-checkout .agossa-checkout-intro h1 { font-size: 22px !important; }
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last { float: none !important; width: 100% !important; }
}
