/* Ray Perfumes unified design system — Phase 14
   Shared visual layer for homepage, shop/category pages, cart and checkout.
   Keep this stylesheet after core-style.css and style.css. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');
:root {
  --ray-ink: #211a16;
  --ray-ivory: #f7f4ee;
  --ray-paper: #fffdfa;
  --ray-gold: #b69a68;
  --ray-gold-hover: #8e7041;
  --ray-border: #e7dfd3;
  --ray-muted: #756c64;
  --ray-danger: #9d3434;
  --ray-radius: 2px;
  --ray-shadow: 0 8px 26px rgba(33,26,22,.07);
}
html { scroll-behavior: smooth; }
body { color: var(--ray-ink); font-family: 'DM Sans', Arial, sans-serif; }
body, input, select, textarea, button { font-family: 'DM Sans', Arial, sans-serif; }
h1, h2, h3, h4, h5, h6, .page-title h2, .cartitle, .cart-page-heading h5 {
  color: var(--ray-ink); font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; letter-spacing: -.015em;
}
a { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
/* Unified buttons, while retaining button dimensions and existing JS hooks. */
button, input[type="submit"], input[type="button"], .btn, a.btn,
.add-to-cart, .add_to_cart, .cart-btn, .checkout-btn, .place-order-btn,
button[name*="submit"], input[name*="submit"] {
  border-radius: var(--ray-radius); font-family: 'DM Sans', Arial, sans-serif;
}
.btn-primary, .btn-dark, .add-to-cart, .add_to_cart, .cart-btn,
.checkout-btn, .place-order-btn, button[type="submit"], input[type="submit"] {
  background-color: var(--ray-ink); border-color: var(--ray-ink); color: #fff;
}
.btn-primary:hover, .btn-dark:hover, .add-to-cart:hover, .add_to_cart:hover,
.cart-btn:hover, .checkout-btn:hover, .place-order-btn:hover,
button[type="submit"]:hover, input[type="submit"]:hover {
  background-color: var(--ray-gold-hover); border-color: var(--ray-gold-hover); color: #fff;
}
.btn-outline-dark, .btn-outline-secondary { color: var(--ray-ink); border-color: var(--ray-border); }
.btn-outline-dark:hover, .btn-outline-secondary:hover { color: #fff; background: var(--ray-ink); border-color: var(--ray-ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea {
  border-color: var(--ray-border); border-radius: var(--ray-radius); box-shadow: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ray-gold) !important; outline: 0; box-shadow: 0 0 0 .16rem rgba(182,154,104,.18) !important;
}
/* Cart */
#cart { color: var(--ray-ink); }
#cart .container-fluid { max-width: 1320px; }
#cart .cartitle { font-size: clamp(2rem, 3vw, 2.7rem); padding-top: 2rem !important; padding-bottom: 1.5rem !important; }
#cart .carthrow, #cart .carthd { border-color: var(--ray-border) !important; }
#cart .carthd { color: var(--ray-muted); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
#cart img { object-fit: contain; }
#cart .btn, #cart button { min-height: 40px; }
/* Checkout */
.checkout_area, .checkout_details_area { color: var(--ray-ink); }
.checkout_area .cart-page-heading { border-bottom: 1px solid var(--ray-border); padding-bottom: 12px; }
.checkout_area .cart-page-heading h5 { font-size: 1.7rem; }
.checkout_area form label { color: var(--ray-ink); font-weight: 600; }
.checkout_area .form-control, .checkout_area input, .checkout_area select, .checkout_area textarea {
  min-height: 42px; border: 1px solid var(--ray-border); background: var(--ray-paper);
}
.checkout_area .btn, .checkout_area button, .checkout_area input[type="submit"] { min-height: 44px; }
.breadcumb_area .page-title h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
/* Product tiles: normalize image stage and anchor card actions to the bottom.
   These selectors intentionally cover common legacy class names. */
.product-card, .single-product-wrapper, .single-product, .product-item, .shop-item {
  height: 100%;
}
.product-card, .single-product-wrapper, .product-item, .shop-item {
  display: flex; flex-direction: column;
}
.product-card .product-image, .product-card .product-img, .single-product-wrapper .product-img,
.single-product-wrapper .product-image, .product-item .product-image, .shop-item .product-image {
  height: clamp(220px, 24vw, 320px); display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #fff; flex: 0 0 auto;
}
.product-card .product-image img, .product-card .product-img img,
.single-product-wrapper .product-img img, .single-product-wrapper .product-image img,
.product-item .product-image img, .shop-item .product-image img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.product-card .product-info, .product-card .product-content, .single-product-wrapper .product-description,
.product-item .product-info, .shop-item .product-info { display: flex; flex-direction: column; flex: 1 1 auto; }
.product-card .add-to-cart, .product-card .add_to_cart, .product-item .add-to-cart,
.shop-item .add-to-cart { margin-top: auto; }
/* Category storefront filter controls remain stacked at all widths. */
.ray-filter-panel label, .ray-filter-panel .filter-label { display: block; margin: 0 0 8px; }
.ray-filter-panel .filter-group { min-width: 0; margin-bottom: 18px; }
.ray-filter-panel input, .ray-filter-panel select { width: 100%; max-width: 100%; }
@media (max-width: 767px) {
  #cart .container-fluid { width: 100% !important; padding-left: 14px; padding-right: 14px; }
  #cart .cartitle { padding-top: 1.25rem !important; padding-bottom: 1rem !important; }
  .checkout_area .container { padding-left: 16px; padding-right: 16px; }
  .product-card .product-image, .product-card .product-img, .single-product-wrapper .product-img,
  .single-product-wrapper .product-image, .product-item .product-image, .shop-item .product-image { height: 210px; }
  button, .btn, input[type="submit"] { max-width: 100%; }
}

/* Ray-Test cart, checkout and Best Sellers refinement */
.ray-cart-page { background: var(--ray-paper); }
.ray-cart-section { padding: clamp(34px,5vw,72px) 0 58px; }
.ray-cart-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:30px; padding-bottom:22px; border-bottom:1px solid var(--ray-border); }
.ray-cart-heading h1 { margin:5px 0 4px; font-size:clamp(2.4rem,4vw,3.5rem); }
.ray-cart-heading p { margin:0; color:var(--ray-muted); }
.ray-eyebrow { color:var(--ray-gold-hover); font-size:.72rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; }
.ray-cart-count { color:var(--ray-muted); font-size:.9rem; white-space:nowrap; }
.ray-cart-alert { padding:12px 16px; margin-bottom:18px; border:1px solid var(--ray-border); }
.ray-cart-alert.success { background:#f3f7f0; color:#365b32; }
.ray-cart-alert.error { background:#fff3f1; color:#8a3028; }
.ray-cart-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:34px; align-items:start; }
.ray-cart-items { min-width:0; }
.ray-cart-table-head { display:grid; grid-template-columns:minmax(280px,1fr) 130px 130px 140px; gap:16px; padding:0 0 13px; color:var(--ray-muted); border-bottom:1px solid var(--ray-border); font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.ray-cart-item { display:grid; grid-template-columns:minmax(280px,1fr) 130px 130px 140px; gap:16px; align-items:center; padding:22px 0; border-bottom:1px solid var(--ray-border); }
.ray-cart-product { display:flex; align-items:center; gap:18px; min-width:0; }
.ray-cart-thumb { display:flex; flex:0 0 112px; height:126px; align-items:center; justify-content:center; background:var(--ray-ivory); }
.ray-cart-thumb img { width:100%; height:100%; object-fit:contain; padding:9px; }
.ray-cart-product h2 { margin:0 0 4px; font-family:'DM Sans',Arial,sans-serif; font-size:.98rem; font-weight:600; letter-spacing:0; }
.ray-cart-product p { margin:0 0 12px; color:var(--ray-muted); font-size:.84rem; }
.ray-remove-form { margin:0; }
.ray-remove, .ray-clear-form button, .ray-quantity-form button { padding:0; border:0; background:none; color:var(--ray-gold-hover); font-size:.78rem; text-decoration:underline; cursor:pointer; }
.ray-quantity-form { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.ray-quantity-form input { width:62px; height:40px; border:1px solid var(--ray-border); text-align:center; }
.ray-quantity-form button { padding:7px 0; }
.ray-cart-price, .ray-cart-line-total { font-size:.88rem; white-space:nowrap; }
.ray-cart-line-total { font-weight:700; }
.mobile-label { display:none; }
.ray-clear-form { display:flex; justify-content:flex-end; padding-top:18px; }
.ray-clear-form button { color:var(--ray-muted); }
.ray-order-summary { position:sticky; top:24px; padding:26px; border:1px solid var(--ray-border); background:#fff; box-shadow:var(--ray-shadow); }
.ray-order-summary h2 { margin:5px 0 22px; font-size:2rem; }
.ray-summary-row, .ray-summary-total { display:flex; justify-content:space-between; gap:14px; padding:12px 0; border-bottom:1px solid var(--ray-border); font-size:.9rem; }
.ray-summary-row strong { font-weight:700; }
.ray-shipping-note { margin:15px 0; color:var(--ray-muted); font-size:.78rem; line-height:1.6; }
.ray-summary-total { margin-bottom:20px; border-top:1px solid var(--ray-border); font-weight:700; }
.ray-summary-total strong { font-size:1.12rem; }
.ray-checkout-button { display:flex; min-height:50px; align-items:center; justify-content:center; padding:12px 18px; background:var(--ray-ink); color:#fff !important; text-align:center; font-size:.82rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.ray-checkout-button:hover { background:var(--ray-gold-hover); }
.ray-continue-shopping { display:block; margin-top:15px; color:var(--ray-muted); text-align:center; font-size:.82rem; text-decoration:underline; }
.ray-empty-cart { max-width:560px; margin:30px auto 0; padding:55px 24px; background:var(--ray-ivory); text-align:center; }
.ray-empty-mark { display:grid; width:64px; height:64px; margin:0 auto 18px; place-items:center; border:1px solid var(--ray-gold); font-family:'Cormorant Garamond',serif; font-size:1.5rem; }
.ray-empty-cart h2 { font-size:2.2rem; }
.ray-empty-cart p { margin-bottom:24px; color:var(--ray-muted); }
.ray-empty-cart .ray-checkout-button { max-width:230px; margin:auto; }
.ray-cart-bestsellers { padding:30px 0 55px; background:var(--ray-ivory); }
.ray-cart-bestsellers .new_arrivals_area { margin:0; padding:0 0 20px; }
.popular-products-slides .owl-nav { display:flex; justify-content:center; gap:12px; margin-top:22px; }
.popular-products-slides .owl-nav button { width:38px; height:38px; border:1px solid var(--ray-border) !important; background:#fff !important; color:var(--ray-ink) !important; font-size:24px !important; line-height:1 !important; }
.popular-products-slides .owl-nav button:hover { background:var(--ray-ink) !important; color:#fff !important; }
.popular-products-slides .single-product-wrapper { background:#fff; padding-bottom:14px; }
.popular-products-slides .product-img { height:260px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:#fff; }
.popular-products-slides .product-img img { width:100%; height:100%; object-fit:contain; }
.popular-products-slides .product-description { padding:14px 16px; }
.popular-products-slides .ray-best-seller-add { width:100%; min-height:44px; margin-top:10px; }
.ray-payment-options { display:grid; gap:12px; margin-top:14px; }
.ray-payment-options h5 { grid-column:1/-1; margin:0 0 4px; font-size:1.65rem; }
.ray-payment-card { position:relative; display:flex; align-items:flex-start; gap:12px; padding:16px; border:1px solid var(--ray-border); background:#fffdfa; transition:border-color .2s,background .2s,box-shadow .2s; }
.ray-payment-card:has(input:checked) { border-color:var(--ray-gold); background:#faf6ee; box-shadow:0 0 0 2px rgba(182,154,104,.12); }
.ray-payment-card input[type=radio] { flex:0 0 auto; width:17px; height:17px; margin:3px 0 0; accent-color:var(--ray-ink); }
.ray-payment-card label { display:flex; flex:1; flex-direction:column; gap:6px; margin:0; cursor:pointer; }
.ray-payment-title { color:var(--ray-ink); font-weight:700; }
.ray-payment-description { color:var(--ray-muted); font-size:.84rem; font-weight:400; line-height:1.55; }
.ray-payment-card label img { width:auto; max-width:115px; max-height:42px; object-fit:contain; margin-top:7px; }
.checkout_area .order-details-confirmation { padding:26px; border:1px solid var(--ray-border); background:#fff; box-shadow:var(--ray-shadow); }
.checkout_area .order-details-form li { padding:12px 0; border-bottom:1px solid var(--ray-border); }
.checkout_area .order-details-confirmation > button { width:100%; }
@media(max-width:991px) { .ray-cart-layout { grid-template-columns:minmax(0,1fr) 290px; gap:20px; } .ray-cart-table-head,.ray-cart-item { grid-template-columns:minmax(220px,1fr) 100px 100px 110px; gap:10px; } }
@media(max-width:767px) {
 .ray-cart-section { padding:28px 0 38px; }
 .ray-cart-heading { align-items:flex-start; }
 .ray-cart-layout { grid-template-columns:1fr; }
 .ray-cart-table-head { display:none; }
 .ray-cart-item { grid-template-columns:1fr 1fr; gap:14px; padding:18px 0; }
 .ray-cart-product { grid-column:1/-1; align-items:flex-start; }
 .ray-cart-thumb { flex-basis:96px; height:112px; }
 .ray-quantity-form { grid-column:1/-1; }
 .ray-cart-price,.ray-cart-line-total { display:flex; flex-direction:column; gap:4px; }
 .mobile-label { display:block; color:var(--ray-muted); font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; }
 .ray-order-summary { position:static; }
 .ray-cart-bestsellers { padding:24px 0 35px; }
 .popular-products-slides .product-img { height:230px; }
 .checkout_area .order-details-confirmation { margin-top:26px; }
}
