/* === Woo Category/Layout Styles === */
.woo-grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Sidebar on the left */
.woo-grid__sidebar {
  flex: 0 0 280px;
}

/* Products on the right */
.woo-grid__products {
  flex: 1 1 auto;
  min-width: 0; /* prevents overflow */
}

/* Make widgets tidy */
.woo-grid__sidebar .widget {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.woo-grid__sidebar .widget:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.woo-grid__sidebar .widget-title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

/* Product grid spacing harmonized with sidebar */
.products {
  row-gap: 2rem;
  column-gap: 2rem;
}

/* Hero tweaks if needed */
.category-hero {
  color: inherit;
  margin-bottom: 2rem;
}

/* Responsive: stack on small screens */
@media (max-width: 960px) {
  .woo-grid {
    flex-direction: column;
  }
  .woo-grid__sidebar {
    flex-basis: auto;
    width: 100%;
    order: 0;
  }
  .woo-grid__products {
    order: 1;
  }
}

/* === Checkout page layout (Blocks checkout) === */

body.woocommerce-checkout,
body.page-template-default.page {
    /* soft background */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Main checkout block wrapper */
body .wc-block-checkout {
    max-width: 1100px;
    margin: 40px auto 80px;
    padding: 40px 40px 50px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

/* Title above (block page title) */
body.woocommerce-checkout h1.wp-block-post-title {
    max-width: 1100px;
    margin: 40px auto 20px;
    font-size: 2.4rem;
    font-weight: 700;
}

/* Order summary column card */
body .wc-block-checkout .wc-block-components-sidebar {
    background: #F5EBDD; /* secondary */
    border-radius: 20px;
    padding: 20px;
}

/* Little spacing tweaks */
body .wc-block-checkout .wc-block-components-main,
body .wc-block-checkout .wc-block-components-sidebar {
    padding-left: 10px;
    padding-right: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    body .wc-block-checkout {
        margin: 20px auto 40px;
        padding: 24px 18px 30px;
        border-radius: 18px;
    }

    body.woocommerce-checkout h1.wp-block-post-title {
        margin-top: 24px;
        padding: 0 16px;
        font-size: 1.9rem;
    }
}

/* =========================================
   CART PAGE – THEMES APP STYLE (FINAL)
   ========================================= */

/* Background + overall padding */
body.woocommerce-cart {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body.woocommerce-cart .wp-site-blocks {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Main cart card (white rounded container) */
body .wc-block-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 40px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

/* Cart title */
body.woocommerce-cart h1.wp-block-post-title {
    max-width: 1200px;
    margin: 10px auto 20px;
    font-size: 2.3rem;
    font-weight: 700;
    color: #2E2E2E; /* dark */
}

/* Layout: left (items) & right (totals) spacing */
body .wc-block-cart .wc-block-components-main {
    padding-right: 32px !important;
}

body .wc-block-cart .wc-block-components-sidebar {
    background: #F5EBDD;          /* secondary */
    border-radius: 20px;
    padding: 28px 24px 30px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    margin-top: 12px;             /* small breathing room from top edge */
}

/* Sidebar headings & totals */
body .wc-block-components-title {
    font-size: 1rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 600;
    color: #2E2E2E;
    margin-bottom: 18px;
}

body .wc-block-components-totals-item {
    padding: 10px 0;
    font-size: .95rem;
}

body .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #B70766; /* primary */
}

/* Buttons in sidebar */
body .wc-block-cart .wc-block-components-button:not(.is-link),
body .wc-block-cart .wc-block-components-checkout-place-order-button {
    width: 100%;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: .95rem;
    font-weight: 600;
    background: #007E7C;          /* accent */
    box-shadow: 0 10px 25px rgba(0,126,124,0.25);
}

body .wc-block-cart .wc-block-components-button:not(.is-link):hover,
body .wc-block-cart .wc-block-components-checkout-place-order-button:hover {
    background: #005a58;
}

/* Apple Pay / express buttons: keep full-width, rounded */
body .wc-block-cart .wc-block-components-express-checkout {
    margin: 18px 0;
}
body .wc-block-cart .wc-block-components-express-checkout button {
    border-radius: 999px;
}

/* Divider inside sidebar */
body .wc-block-cart .wc-block-components-divider {
    margin: 24px 0;
}

/* =====================
   CART ITEMS – CARDS
   ===================== */

body .wc-block-cart-items {
    border-radius: 22px;
    background: #F5EBDD;
    padding: 18px 18px 8px;
}

/* Individual item card */
body .wc-block-cart-items__row {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 14px;
    margin-bottom: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

/* Product image */
body .wc-block-cart-item__image {
    border-radius: 14px;
    overflow: hidden;
}

/* Product name */
body .wc-block-cart-item__product {
    font-weight: 600;
    color: #2E2E2E;
}
body .wc-block-cart-item__product a {
    text-decoration: none;
    color: inherit;
}
body .wc-block-cart-item__product a:hover {
    color: #B70766;
}

/* Meta (stitching, blackout, size…) */
body .wc-block-cart-item__description {
    font-size: 0.9rem;
    color: #555;
}

/* Save badge text if you use it */
body .wc-block-cart-item__badge {
    background: #B70766;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Price / total */
body .wc-block-cart-item__total,
body .wc-block-cart-item__price {
    color: #B70766;
    font-weight: 700;
}

/* Remove item link */
body .wc-block-cart-item__remove-link {
    color: #B70766;
    font-size: 0.85rem;
    text-decoration: underline;
}

/* ====================================
   QUANTITY – REMOVE BIG OVAL, KEEP NICE
   ==================================== */

/* Remove the long pill background */
body .wc-block-cart-item__quantity {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Actual +/- selector – small rounded rectangle */
body .wc-block-components-quantity-selector {
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
    padding: 4px 10px !important;
    min-width: 110px;
}

/* Remove any pill pseudo-elements */
body .wc-block-components-quantity-selector::before,
body .wc-block-components-quantity-selector::after {
    display: none !important;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
    body .wc-block-cart {
        padding: 24px 18px 30px;
        border-radius: 22px;
    }

    body.woocommerce-cart h1.wp-block-post-title {
        margin: 0 auto 16px;
        padding: 0 16px;
        font-size: 2rem;
    }

    body .wc-block-cart .wc-block-components-main {
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 24px;
    }

    body .wc-block-cart .wc-block-components-sidebar {
        margin-top: 0;
    }

    body .wc-block-cart-items {
        padding: 14px 10px 6px;
    }
}

/* =========================================
   ORDER RECEIVED / THANK YOU PAGE STYLES
   ========================================= */

/* Background + spacing similar to cart/checkout */
body.woocommerce-order-received {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body.woocommerce-order-received .wp-site-blocks {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Main order confirmation card */
body.woocommerce-order-received .wc-block-order-confirmation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 40px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.06);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    gap: 32px;
}

/* Stack columns on mobile */
@media (max-width: 900px) {
    body.woocommerce-order-received .wc-block-order-confirmation {
        grid-template-columns: 1fr;
        padding: 24px 18px 30px;
        border-radius: 22px;
        margin: 0 12px;
    }
}

/* Header / title section */
body.woocommerce-order-received .wc-block-order-confirmation__header,
body.woocommerce-order-received .wc-block-order-confirmation-status {
    margin-bottom: 16px;
}

body.woocommerce-order-received .wc-block-order-confirmation__title,
body.woocommerce-order-received .wc-block-order-confirmation h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #2E2E2E; /* dark */
    margin: 0 0 6px;
}

body.woocommerce-order-received .wc-block-order-confirmation__intro {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Success pill/badge */
body.woocommerce-order-received .wc-block-order-confirmation-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #EAF7F6;
    color: #007E7C; /* accent */
    font-size: 0.85rem;
    font-weight: 600;
}

/* Left column: summary + addresses */
body.woocommerce-order-received .wc-block-order-confirmation-summary,
body.woocommerce-order-received .wc-block-order-confirmation-order-overview,
body.woocommerce-order-received .wc-block-order-confirmation-addresses {
    margin-bottom: 22px;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary h2,
body.woocommerce-order-received .wc-block-order-confirmation-order-overview h2,
body.woocommerce-order-received .wc-block-order-confirmation-addresses h2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin: 0 0 10px;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary table,
body.woocommerce-order-received .wc-block-order-confirmation-order-overview table {
    width: 100%;
    border-collapse: collapse;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary th,
body.woocommerce-order-received .wc-block-order-confirmation-summary td,
body.woocommerce-order-received .wc-block-order-confirmation-order-overview th,
body.woocommerce-order-received .wc-block-order-confirmation-order-overview td {
    padding: 6px 0;
    font-size: 0.95rem;
}

/* Right column: totals card (mirrors cart totals) */
body.woocommerce-order-received .wc-block-order-confirmation-totals,
body.woocommerce-order-received .wc-block-order-confirmation__totals,
body.woocommerce-order-received [class*="order-confirmation"] [class*="totals"] {
    background: #F5EBDD; /* secondary */
    border-radius: 24px;
    padding: 24px 24px 28px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

body.woocommerce-order-received .wc-block-order-confirmation-totals h2,
body.woocommerce-order-received .wc-block-order-confirmation__totals h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2E2E2E;
    margin: 0 0 14px;
}

body.woocommerce-order-received .wc-block-order-confirmation-totals table {
    width: 100%;
    border-collapse: collapse;
}

body.woocommerce-order-received .wc-block-order-confirmation-totals th,
body.woocommerce-order-received .wc-block-order-confirmation-totals td {
    padding: 8px 0;
    font-size: 0.95rem;
}

body.woocommerce-order-received .wc-block-order-confirmation-totals tfoot th,
body.woocommerce-order-received .wc-block-order-confirmation-totals tfoot td {
    font-weight: 700;
    font-size: 1.05rem;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* Grand total highlight */
body.woocommerce-order-received .wc-block-order-confirmation-totals tfoot td,
body.woocommerce-order-received .wc-block-order-confirmation-totals tfoot .amount {
    color: #B70766; /* primary */
}

/* Buttons / actions under confirmation */
body.woocommerce-order-received .wc-block-order-confirmation-actions a.button,
body.woocommerce-order-received .wc-block-order-confirmation-actions a.wp-element-button {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #007E7C;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,126,124,0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-order-received .wc-block-order-confirmation-actions a.button:hover,
body.woocommerce-order-received .wc-block-order-confirmation-actions a.wp-element-button:hover {
    background: #005a58;
    transform: translateY(-1px);
    box-shadow: 0 14px 35px rgba(0,126,124,0.35);
}

/* Generic link colour on thank-you page */
body.woocommerce-order-received a {
    color: #B70766;
}

body.woocommerce-order-received a:hover {
    color: #8b054f;
}

/* -----------------------------------------
   CLASSIC THANK-YOU TEMPLATE (tables)
   ----------------------------------------- */

/* Main wrapper card for classic thank-you layout */
body.woocommerce-order-received .woocommerce {
    max-width: 1200px;
    margin: 40px auto 60px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.06);
    padding: 32px 32px 40px;
    box-sizing: border-box;
}

/* Page heading ("Thank you. Your order has been received.") */
body.woocommerce-order-received .woocommerce > .woocommerce-order {
    margin-top: 10px;
}

body.woocommerce-order-received .woocommerce-order h1,
body.woocommerce-order-received .woocommerce-order .woocommerce-notice {
    font-size: 2.1rem;
    font-weight: 700;
    color: #2E2E2E; /* dark */
    margin: 0 0 18px;
}

/* Order overview (order number, date, email, total, payment) */
body.woocommerce-order-received .woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

body.woocommerce-order-received .woocommerce-order-overview li {
    list-style: none;
    font-size: 0.93rem;
}

body.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block;
    font-weight: 600;
    color: #2E2E2E;
    margin-top: 2px;
}

/* Order details & addresses tables */
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin: 20px 0 12px;
}

body.woocommerce-order-received .woocommerce-table--order-details,
body.woocommerce-order-received .woocommerce-customer-details address {
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #FDFBFA;
    padding: 16px 18px;
}

body.woocommerce-order-received .woocommerce-table--order-details th,
body.woocommerce-order-received .woocommerce-table--order-details td {
    padding: 10px 8px;
    font-size: 0.95rem;
}

body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    font-weight: 600;
}

/* Addresses side-by-side on desktop */
body.woocommerce-order-received .woocommerce-customer-details {
    max-width: 880px;
    margin: 30px auto 0;
}

body.woocommerce-order-received .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    column-gap: 32px;
    row-gap: 0;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
    margin: 0;
    clear: both;
    position: relative;
}

/* Remove any theme floats / clearfix that break grid alignment */
body.woocommerce-order-received .woocommerce-columns--addresses::before,
body.woocommerce-order-received .woocommerce-columns--addresses::after {
    content: none !important;
    display: none !important;
}

body.woocommerce-order-received .woocommerce-columns--addresses .woocommerce-column {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
}

body.woocommerce-order-received .woocommerce-column__title {
    margin-bottom: 10px;
}

body.woocommerce-order-received .woocommerce-customer-details address {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    body.woocommerce-order-received .woocommerce {
        margin: 24px 12px 40px;
        padding: 24px 18px 30px;
        border-radius: 22px;
    }

    body.woocommerce-order-received .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

