/*
Theme Name: Bagels
Description: Specific styles of the theme relative to this website.
*/

/* =============================================
   ROOT
   ============================================= */
:root {
    --nav-h: 65px;
    --clr-dark: #1a1a1a;
    --clr-mid:  #6b6b6b;
    --clr-border: #e8e8e8;
    --clr-bg:   #f7f7f7;
    --radius: 4px;
    --trans: all 0.2s ease-in-out;
}

/* =============================================
   NAVIGATION
   ============================================= */
#site-header {
    background-color: whitesmoke;
    border-bottom: 1px solid var(--clr-border);
    border-top: none;
    min-height: var(--nav-h);
    transition: box-shadow 0.25s ease;
}

#site-header.sticky {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

#site-header .flex-parent {
    display: flex;
    align-items: center;
    min-height: var(--nav-h);
}

/* Logo */
#site-header .navbar-brand {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 20px 0 0;
    float: none;
}

#site-header .navbar-brand img {
    max-height: 46px;
    width: auto;
}

/* Desktop nav links */
#site-header .navbar-nav > li > a {
    color: rgb(34, 34, 34);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: var(--nav-h);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 14px;
    padding-right: 14px;
}

#site-header .navbar-nav > li.header-icon-menu-item > a {
    font-size: 25px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Dropdown menu */
#site-header .dropdown-menu {
    border: 1px solid var(--clr-border);
    border-top: 2px solid var(--clr-dark);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    padding: 8px 0;
    margin-top: 0;
}

#site-header .dropdown-menu > li > a {
    font-size: 13px;
    padding: 9px 20px;
    color: #333;
    font-weight: 400;
}

/* Search toggle icon */
.nav-search ul.navbar-nav > li > a {
    line-height: var(--nav-h);
    padding-top: 0;
    padding-bottom: 0;
    color: var(--clr-dark);
    font-size: 16px;
}

/* Search dropdown panel */
.nav-search-field {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: 14px 20px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.nav-search-field.visible {
    display: block;
}

.nav-search-close {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.nav-search-field .form-control {
    border-radius: var(--radius) 0 0 var(--radius);
    border: 1px solid var(--clr-border);
    height: 42px;
    font-size: 14px;
    box-shadow: none;
}

.nav-search-field .btn-default {
    border-radius: 0 var(--radius) var(--radius) 0;
    border: 1px solid var(--clr-border);
    border-left: none;
    background: var(--clr-bg);
    height: 42px;
    color: #555;
}

/* Cart icon — desktop */
.nav-cart {
    position: relative;
    margin-left: 6px;
}

.nav-cart .nav-cart-toggler {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--clr-dark);
    font-size: 18px;
    height: var(--nav-h);
    padding: 0 10px;
    text-decoration: none;
}

.nav-cart .cart-totals {
    display: flex;
    align-items: center;
}

.nav-cart .cart-totals .count {
    color: #fff;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
}

/* Mini-cart dropdown */
.mini-cart-box {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-top: 2px solid var(--clr-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
}

.mini-cart-wrapper {
    max-height: 340px;
    overflow-y: auto;
    padding: 14px 14px 0;
}

.mini-cart-wrapper .woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mini-cart-wrapper .woocommerce-mini-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--clr-border);
}

.mini-cart-wrapper .cart-item-image img {
    width: 54px;
    height: 70px;
    object-fit: cover;
    display: block;
}

.mini-cart-wrapper .cart-item-details {
    flex: 1;
    min-width: 0;
}

.mini-cart-wrapper .cart-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--clr-dark);
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cart-wrapper .cart-item-count {
    font-size: 12px;
    color: var(--clr-mid);
}

.mini-cart-wrapper .cart-item-remover {
    flex-shrink: 0;
}

.mini-cart-wrapper .cart-item-remover .remove {
    color: #ccc;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: var(--trans);
}

.mini-cart-wrapper .cart-item-remover .remove:hover {
    color: #999;
}

.mini-cart-wrapper .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid var(--clr-border);
    margin: 0 -14px;
    font-size: 14px;
    font-weight: 600;
}

.mini-cart-box .buttons {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.mini-cart-box .buttons a {
    flex: 1;
    text-align: center;
}

.mini-cart-box .woocommerce-mini-cart__empty-message {
    padding: 24px 14px;
    text-align: center;
    color: var(--clr-mid);
    font-size: 14px;
}

/* Hamburger icon */
.header-ham-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    padding: 0;
    margin-left: 10px;
    vertical-align: middle;
}

.header-ham-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--clr-dark);
    border-radius: 2px;
    transition: var(--trans);
}

.header-ham-icon span:last-child {
    width: 70%;
}

/* Mobile left sidebar */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.12);
    padding-top: 20px;
}

.sidebar-nav.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    display: none;
}

.sidebar-nav .navbar-nav {
    float: none;
    margin: 0;
}

.sidebar-nav .navbar-nav > li > a {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--clr-dark);
    border-bottom: 1px solid var(--clr-border);
}

/* Right sidebar (mobile cart) */
.sidebar-right {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    padding: 20px;
}

.sidebar-right.open {
    right: 0;
}

/* Mobile woo search */
.mobile-woo-search {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 14px 16px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-woo-search .form-control {
    border-radius: var(--radius) 0 0 var(--radius);
    height: 44px;
    font-size: 15px;
    border: 1px solid var(--clr-border);
    box-shadow: none;
}

.mobile-woo-search .woo-search-closer {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
    text-decoration: none;
}

/* =============================================
   PAGE CONTAINERS
   ============================================= */

/* Top clearance for fixed navbar */
.page-container,
.pc-margin-top {
    margin-top: var(--nav-h);
}

.page-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Shop & single product top spacing */
.page-container.woo-wrapper,
.page-container.woo-single-wrapper {
    padding-top: 30px;
}

/* Breadcrumb bar */
.breadcumb-container {
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: 10px 0;
    font-size: 13px;
    color: #777;
    /* margin-top: var(--nav-h); */
}

/* Page header banner */
.page-header-banner {
    margin-top: var(--nav-h);
}

/* =============================================
   PAGE LOADER
   ============================================= */
.page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgl-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #eee;
    border-top-color: var(--clr-dark);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   SCROLL TO TOP
   ============================================= */
#scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    z-index: 500;
    display: none;
    opacity: 0.65;
    transition: var(--trans);
}

#scroll-top:hover { opacity: 1; }

#scroll-top img { width: 100%; height: 100%; }

/* =============================================
   MOBILE CART ICON (footer.php)
   ============================================= */
.mobile-cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 500;
}

.mobile-cart-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    position: relative;
}

.mobile-cart-icon .cart-count-bubble {
    position: absolute;
    top: 0;
    right: 0;
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   SHOP PAGE
   ============================================= */

/* Best Seller badge */
.bagels-best-seller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--clr-dark);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 2;
    pointer-events: none;
}

/* Category filter bar */
.shop-cat-filter {
    margin-bottom: 24px;
}

.scf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scf-link {
    display: inline-block;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--clr-mid);
    border: 1px solid var(--clr-border);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--trans);
}

.scf-link:hover,
.scf-item.active .scf-link {
    color: #fff;
    background: var(--clr-dark);
    border-color: var(--clr-dark);
    text-decoration: none;
}

.shop-price-sort-filter {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
}

.shop-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shop-filter-field label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--clr-mid);
    margin: 0;
}

.shop-filter-field input:not([type="radio"]),
.shop-filter-field select {
    height: 36px;
    min-width: 120px;
    border: 1px solid var(--clr-border);
    border-radius: 50px;
    padding: 0 14px;
    font-size: 12px;
    color: var(--clr-dark);
    background: #fff;
    outline: none;
}

.shop-filter-field select {
    min-width: 170px;
}

.shop-filter-submit {
    background: transparent;
    height: 36px;
    cursor: pointer;
}

/* Price range custom dropdown */
.spr-dropdown {
    position: relative;
    display: inline-block;
}

.spr-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 36px;
    min-width: 200px;
    border: 1px solid var(--clr-border);
    border-radius: 50px;
    padding: 0 14px;
    font-size: 12px;
    color: var(--clr-dark);
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: var(--trans);
    white-space: nowrap;
}

.spr-trigger:hover,
.spr-dropdown.is-open .spr-trigger {
    border-color: var(--clr-dark);
}

.spr-dropdown.has-value .spr-trigger {
    border-color: var(--clr-dark);
    font-weight: 600;
}

.spr-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.spr-dropdown.is-open .spr-chevron {
    transform: rotate(180deg);
}

.spr-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 200;
}

.spr-dropdown.is-open .spr-panel {
    display: block;
}

.spr-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--clr-dark);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--trans);
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
}

.spr-option:hover {
    background: var(--clr-bg);
}

.spr-option.is-selected {
    background: var(--clr-dark);
    color: #fff;
    font-weight: 600;
}

.spr-option input[type="radio"] {
    display: none;
}

/* =============================================
   PRODUCT CARD — border, hover image swap, text
   ============================================= */

/* Equal-height rows: flex parent so all cards in each row stretch to the same height */
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Card — fixed height layout so all cards in a row are equal */
.woocommerce ul.products li.product {
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    border-color: #bbb;
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}

/* Link fills the full card height and anchors the hover image */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    text-decoration: none;
}

/* Inner text padding now card has a border */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
    padding-left: 12px;
    padding-right: 12px;
}

/* Title — clamp to 2 lines so all cards get same title height */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-top: 10px;
}

/* Price area — fixed min-height so regular and sale price cards align */
.woocommerce ul.products li.product .price {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 14px;
    margin-bottom: 0 !important;
}

/* Both images — identical fixed-height fill, flex-shrink: 0 so flex doesn't compress them */
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product .bagels-hover-img {
    display: block;
    width: 100%;
    height: 330px;
    min-height: unset;
    max-height: unset;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
}

/* Hover image — absolutely positioned inside the link (position: relative above), covers only the 330px image area */
.bagels-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

/* Show hover image */
.woocommerce ul.products li.product a:hover .bagels-hover-img {
    opacity: 1;
}

/* Fade out main image on hover only when hover image exists */
.woocommerce ul.products li.product:has(.bagels-hover-img) a:hover .attachment-woocommerce_thumbnail {
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Title hover — colour change only; NO font-weight change (bold text reflows the title height) */
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
    color: var(--clr-dark);
}

/* Shop "no products" message */
.no-prods-message {
    text-align: center;
    padding: 60px 20px;
}

.no-prods-message .npm-heading {
    font-size: 20px;
    color: #888;
    font-weight: 400;
    margin-bottom: 20px;
}

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

.wc-block-components-button:not(.is-link),
.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):hover .wc-block-components-button__text {
    background-color: #ffffff;
    color: #111111;
    border-color: #111111;
}
/* Two-column layout: items left, totals right */
.bagels-cart-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.bagels-cart-items {
    flex: 1;
    min-width: 0;
}

.bagels-cart-sidebar {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

/* Cart table */
.woocommerce-cart-form .shop_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.woocommerce-cart-form .shop_table thead th {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--clr-mid);
    padding: 12px 14px;
    border-bottom: 2px solid var(--clr-border);
    background: transparent;
    white-space: nowrap;
}

.woocommerce-cart-form .shop_table td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--clr-border);
}

/* Thumbnail cell */
.woocommerce-cart-form .shop_table .product-thumbnail {
    width: 100px;
    padding-right: 0;
}

.woocommerce-cart-form .shop_table .product-thumbnail img {
    width: 90px;
    height: 115px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--clr-border);
}

/* Product name */
.cart-prod-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--clr-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    transition: var(--trans);
}

.cart-prod-name:hover { color: var(--clr-mid); }

.woocommerce-cart-form .shop_table .product-name dl.variation {
    font-size: 12px;
    color: var(--clr-mid);
    margin: 4px 0 0;
}

.woocommerce-cart-form .shop_table .product-name dl.variation dt,
.woocommerce-cart-form .shop_table .product-name dl.variation dd {
    display: inline;
    margin: 0;
}

/* Price + subtotal */
.woocommerce-cart-form .shop_table .product-price,
.woocommerce-cart-form .shop_table .product-subtotal {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.woocommerce-cart-form .shop_table .product-subtotal {
    font-weight: 700;
}

/* Remove button */
.woocommerce-cart-form .shop_table .product-remove {
    width: 36px;
    text-align: center;
}

.woocommerce-cart-form .shop_table .product-remove a.remove {
    font-size: 16px;
    color: #ccc;
    text-decoration: none;
    transition: var(--trans);
}

.woocommerce-cart-form .shop_table .product-remove a.remove:hover {
    color: #e53935;
}

/* Quantity input in cart */
.woocommerce-cart-form .quantity input.qty {
    width: 60px;
    text-align: center;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 6px 8px;
    font-size: 14px;
    height: 38px;
}

/* Coupon + Update row */
.cart-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--clr-border);
}

.cart-coupon {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-coupon input#coupon_code {
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    font-size: 13px;
    width: 180px;
    outline: none;
    transition: var(--trans);
}

.cart-coupon input#coupon_code:focus {
    border-color: var(--clr-dark);
}

.cart-coupon-btn,
.cart-update-btn {
    height: 44px;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--clr-dark);
    background: transparent;
    color: var(--clr-dark);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--trans);
}

.cart-coupon-btn:hover,
.cart-update-btn:hover {
    background: var(--clr-dark);
    color: #fff;
}

/* Cart totals sidebar */
.bagels-cart-sidebar .cart_totals {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 24px;
}

.bagels-cart-sidebar .cart_totals h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--clr-dark);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--clr-border);
}

.bagels-cart-sidebar .shop_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bagels-cart-sidebar .shop_table th,
.bagels-cart-sidebar .shop_table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--clr-border);
    vertical-align: top;
}

.bagels-cart-sidebar .shop_table th {
    font-weight: 500;
    color: var(--clr-mid);
    width: 45%;
}

.bagels-cart-sidebar .shop_table .order-total th,
.bagels-cart-sidebar .shop_table .order-total td {
    font-size: 16px;
    font-weight: 700;
    color: var(--clr-dark);
    border-bottom: none;
    padding-top: 14px;
}

.bagels-cart-sidebar .wc-proceed-to-checkout {
    margin-top: 20px;
}

.bagels-cart-sidebar .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--trans);
}

/* Empty cart state */
.cart-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty-icon {
    font-size: 48px;
    color: #ddd;
    display: block;
    margin-bottom: 20px;
}

.cart-empty-text {
    font-size: 16px;
    color: var(--clr-mid);
    margin-bottom: 24px;
}

.cart-return-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--clr-dark);
    color: var(--clr-dark);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--trans);
}

.cart-return-btn:hover {
    /* background: var(--clr-dark);
    color: #fff;
    text-decoration: none; */
}

/* Cart responsive */
@media (max-width: 991px) {
    .bagels-cart-layout {
        flex-direction: column;
    }

    .bagels-cart-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 767px) {
    .woocommerce-cart-form .shop_table thead {
        display: none;
    }

    .woocommerce-cart-form .shop_table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 14px 0;
        border-bottom: 1px solid var(--clr-border);
        position: relative;
    }

    .woocommerce-cart-form .shop_table td {
        border-bottom: none;
        padding: 4px 8px;
    }

    .woocommerce-cart-form .shop_table td::before {
        content: attr(data-title) ": ";
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--clr-mid);
        display: block;
        margin-bottom: 2px;
    }

    .woocommerce-cart-form .shop_table .product-thumbnail {
        width: auto;
    }

    .woocommerce-cart-form .shop_table .product-thumbnail::before,
    .woocommerce-cart-form .shop_table .product-remove::before {
        display: none;
    }

    .woocommerce-cart-form .shop_table .product-remove {
        position: absolute;
        top: 14px;
        right: 0;
    }

    .cart-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-coupon input#coupon_code {
        width: 100%;
    }

    .cart-coupon-btn,
    .cart-update-btn {
        width: 100%;
    }
}

/* =============================================
   POLICY PAGE LAYOUT
   ============================================= */
.pg-temp-policy {
    padding-top: 50px;
    padding-bottom: 80px;
}

.policy-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.policy-toc {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

.policy-toc-inner {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 18px;
}

.policy-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr-border);
}

.policy-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-toc-list li {
    margin-bottom: 7px;
}

.policy-toc-list a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: var(--trans);
}

.policy-toc-list a:hover { color: var(--clr-dark); }

.policy-content { flex: 1; min-width: 0; }

.policy-last-updated {
    font-size: 13px;
    color: var(--clr-mid);
    margin-bottom: 28px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 10px;
    padding-top: 10px;
    border-top: 1px solid var(--clr-border);
}

.policy-section:first-of-type h2 { border-top: none; padding-top: 0; }

.policy-section p,
.policy-section li {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* =============================================
   FOOTER
   ============================================= */
#footer-widget-area {
    background: #000000;
    border-top: 1px solid var(--clr-border);
}

.footer-widgets {
    padding: 50px 0;
}

.footer-widgets-l-1 {
    gap: 40px;
}

.footer-widgets-l-2 {
    flex: 1;
}

.contact-group {
    margin-bottom: 14px;
    gap: 10px;
}

.contact-group .cg-h-icon {
    font-size: 14px;
    color: var(--clr-mid);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-group .cg-heading { margin: 0; }

.contact-group .cg-text {
    font-size: 14px;
    /* color: #555; */
    margin: 0;
    line-height: 1.5;
}

.contact-group .cg-text a {
    /* color: #555; */
    text-decoration: none;
}

.contact-group .cg-text a:hover { color: var(--clr-dark); }

/* Footer menu nav */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 10px;
}

.footer-menu-list li a {
    font-size: 14px;
    /* color: #555; */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu-list li a:hover {
    color: var(--clr-dark);
}

/* Footer bottom */
#footer-bottom {
    background: var(--clr-dark);
    padding: 14px 0;
}

.fb-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.copyright-note {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
}


.fb-site-creater {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    flex-shrink: 0;
}

.fb-sc-text {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.fb-sc-l-img img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.fb-sc-l-name {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* =============================================
   UTILITY
   ============================================= */
.bagels-flex { display: flex; }
.bagels-justify-space-between { justify-content: space-between; }
.bagels-flex-wrap { flex-wrap: wrap; }
.bagels-vertical-align-baseline { align-items: baseline; }
.bagels-relative { position: relative; }

.bagels-theme-button a {
    display: inline-block;
    padding: 12px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--trans);
}

.h-p-ul-m-0 ul,
.h-p-ul-m-0 p { margin: 0; padding: 0; }

/* =============================================
   HOME PAGE (front-page.php)
   ============================================= */

/* --- Hero --- */
.hp-hero {
    position: relative;
    min-height: 88vh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Gradient from left (dark) → right (lighter) so the woman shows through */
.hp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.45) 50%,
        rgba(0,0,0,0.05) 100%
    );
}

.hp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    color: #fff;
    padding: 60px 0;
}

.hp-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
}

.hp-heading {
    font-size: 66px;
    font-weight: 300;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #fff;
    margin: 0 0 22px;
}

.hp-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 380px;
}

.hp-btn {
    display: inline-block;
    background: #fff;
    color: #1a1a1a !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.hp-btn:hover {
    background: rgba(255,255,255,0.88);
    transform: translateY(-2px);
}

.hp-btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.65);
    color: #fff !important;
}

.hp-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* --- Shared section styles --- */
.hp-section {
    padding: 72px 0;
}

.hp-cats    { background: #fff; }
.hp-products { background: var(--clr-bg); }
.hp-featured { background: #fff; }

.hp-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--clr-border);
}

.hp-section-title {
    font-size: 26px;
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -0.5px;
    margin: 0;
    color: var(--clr-dark);
}

.hp-view-all {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    transition: var(--trans);
    flex-shrink: 0;
}

.hp-view-all:hover { color: var(--clr-dark); }

/* --- Category grid --- */
.hp-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hp-cat-card {
    display: block;
    text-decoration: none !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.hp-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.hp-cat-img {
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f0f0f0;
}

.hp-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hp-cat-card:hover .hp-cat-img img { transform: scale(1.06); }

.hp-cat-label {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-cat-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--clr-dark);
}

.hp-cat-count {
    font-size: 11px;
    color: #aaa;
}

/* --- Store banner (clothing store interior image) --- */
.hp-banner {
    position: relative;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Lighter overlay so the bright store image shows through */
.hp-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
}

.hp-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 620px;
    margin: 0 auto;
    padding: 70px 20px;
}

.hp-banner-heading {
    font-size: 44px;
    font-weight: 300;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -1px;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.15;
}

.hp-banner-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.78);
    line-height: 1.65;
    margin-bottom: 34px;
}

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

/* Tablet */
@media (max-width: 991px) {
    :root { --nav-h: 58px; }

    .hp-heading { font-size: 46px; }
    .hp-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-banner { background-attachment: scroll; min-height: 360px; }
    .hp-banner-heading { font-size: 34px; }

    .woocommerce-checkout .col2-set {
        flex-direction: column;
    }

    .woocommerce-checkout .col2-set .col-2 {
        width: 100%;
        flex-shrink: unset;
    }

    #order_review { position: static; }

    #dolv-pay-buttons { flex-direction: column; }
    .dolv-pay-btn { flex: unset !important; width: 100%; }

    .policy-layout { flex-direction: column; }

    .policy-toc {
        width: 100%;
        position: static;
    }

    .footer-widgets-l-1 {
        flex-direction: column;
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .page-container {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .fb-1 {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-widgets { padding: 36px 0; }

    #scroll-top { bottom: 20px; right: 16px; }

    /* Home page mobile */
    .hp-hero { min-height: 75vh; }
    .hp-heading { font-size: 38px; letter-spacing: -1px; }
    .hp-sub { font-size: 14px; max-width: 100%; margin-bottom: 28px; }
    .hp-btn { padding: 13px 30px; }
    .hp-section { padding: 50px 0; }
    .hp-section-title { font-size: 21px; }
    .hp-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hp-banner { min-height: 300px; }
    .hp-banner-heading { font-size: 26px; }
    .hp-banner-sub { font-size: 14px; }
    .hp-banner-content { padding: 50px 16px; }
}

/* =============================================
   LOAD MORE BUTTON
   ============================================= */
.hp-loadmore-wrap {
    text-align: center;
    margin-top: 40px;
}

.hp-loadmore-btn {
    display: inline-block;
    padding: 12px 42px;
    border: 1px solid #ccc;
    border-radius: 50px;
    background: #fff;
    color: var(--clr-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--trans);
    line-height: 1;
}

.hp-loadmore-btn:hover {
    background: var(--clr-dark);
    border-color: var(--clr-dark);
    color: #fff;
    text-decoration: none;
}

.hp-loadmore-btn.loading {
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
}

.hp-loadmore-btn.loading::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    border: 2px solid #ccc;
    border-top-color: #888;
    border-radius: 50%;
    animation: hp-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes hp-spin {
    to { transform: rotate(360deg); }
}
