/* NATURAL BLOCK RESET - NO FLEX VERTICAL CENTERING */
html,
body,
body.layout-main,
body.shopping-cart-index,
body.account-index,
body.action-index {
    display: block !important;
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #FAF6EC !important;
    background: #FAF6EC !important;
}

#wrapper,
#page,
#main,
#container,
.w-main-page,
.layout-main,
.site-wrapper,
div[class*="wrapper"] {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.main-content,
.site_width.main-content,
#cart-page,
.cart-page,
.cart-box,
.w-cart-products {
    margin: 10px auto 15px auto !important;
    padding: 0 !important;
    display: block !important;
}
/* ==========================================================================
   ISERBA777 MASTER STYLING & SHOPPING CART ZERO-GAP STICKY FOOTER RESET
   ========================================================================== */

html {
    height: 100% !important;
    background-color: #0D0D0D !important;
    background: #0D0D0D !important;
}

body, 
body.layout-main,
body.shopping-cart-index,
body.account-index,
body.action-index {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #FAF6EC !important;
    background: #FAF6EC !important;
}

/* Header & Middle Bars Tight Padding */
div.header-logo-bar[style],
.header-logo-bar {
    padding: 10px 0 5px 0 !important;
    flex: 0 0 auto !important;
}

div.header-middle-bar[style],
.header-middle-bar {
    padding: 4px 0 8px 0 !important;
    flex: 0 0 auto !important;
}

/* UNIVERSAL BLOCK LAYOUT RESET FOR SHOPPING CART PAGE */
body.shopping-cart-index,
body.context-shopping-cart,
body.action-shopping-cart,
body[class*="cart"],
#cart-page,
.cart-page,
.iserba-cart-wrapper,
.w-cart-products,
.w-block-box {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.main-content,
.site_width.main-content {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
}

/* SPECIFICALLY FORCE EMPTY CART CARD POSITION DIRECTLY BELOW HEADER WITH TIGHT MARGIN */
.cart-empty-block,
div.cart-empty-block,
div[class*="cart-empty"],
div[id*="cart-empty"],
.cart-empty-message,
div.cart-empty-message {
    margin: 10px auto 15px auto !important;
    padding: 30px 24px !important;
    max-width: 680px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cart-table-card.is-empty,
.cart-table-card:has(#emptyCartState:not([style*="display: none"])),
.cart-table-card:has(.cart-empty-message:not([style*="display: none"])) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* TRUST BADGES CARD SPACING BELOW EMPTY CART CARD */
body.shopping-cart-index .trust-badges-card,
body.shopping-cart-index div[class*="trust"],
.trust-badges-card {
    margin: 10px auto 15px auto !important;
    max-width: 1240px !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    padding: 16px 20px !important;
}

/* ==========================================================================
   SHOPPING CART DESIGN SYSTEM (GOLD THEME)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-page: #FAF6EC;
  --bg-card: #FFFFFF;
  --bg-subtle: #FFFDF8;
  --border-gold: #EADBCE;
  --border-light: #EFE8DA;
  --text-dark: #2C2523;
  --text-muted: #78716A;
  --gold-primary: #9A6915;
  --gold-heading: #633E0B;
  --gold-light: #F7EEDC;
  --gold-badge: #8C5917;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

.shopping-cart-page-wrapper {
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  line-height: 1.5;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px 40px;
}

.cart-empty-message,
.cart-empty-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(140, 89, 23, 0.05);
  margin: 20px auto 30px;
  max-width: 680px;
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #EEDC9A 0%, #B8860B 100%);
  color: #FFFFFF;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
}

.cart-empty-message h3,
.cart-empty-block h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-heading);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-empty-message p,
.cart-empty-block p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cart-table-card {
  background: #FFFFFF;
  border: 1px solid #EADBCE;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(140, 89, 23, 0.05);
  padding: 24px;
  margin-bottom: 24px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8C5917;
  text-transform: uppercase;
  border-bottom: 1px solid #EFE8DA;
}

.cart-table td {
  padding: 24px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #EFE8DA;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-img-box {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  border: 1px solid #EFE8DA;
  padding: 6px;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: #2C2523;
}

.product-sku {
  font-size: 12px;
  color: #78716A;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #EADBCE;
  background: #FFFDF8;
  border-radius: 6px;
  height: 38px;
}

.qty-btn {
  width: 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #633E0B;
  background: #FAF6EC;
  border: none;
  cursor: pointer;
}

.qty-input {
  width: 44px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #2C2523;
  background: transparent;
}

.btn-remove-item {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #EADBCE;
  background: #FFFDF8;
  color: #8C5917;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid #C4A47C;
  border-radius: 24px;
  background: #FFF;
  font-size: 12.5px;
  font-weight: 800;
  color: #8C5917;
  text-transform: uppercase;
}

.bottom-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.grid-card {
  background: #FFF;
  border: 1px solid #EADBCE;
  border-radius: 16px;
  padding: 28px;
}

.btn-fill-gold, .btn-checkout-full {
  background: linear-gradient(180deg, #A47424 0%, #82540E 100%);
  color: #FFF;
  border-radius: 6px;
  font-weight: 800;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
