/*
Theme Name: Everyday Ebooks — Editorial Luxury (Storefront Child)
Theme URI: https://ebook.everydaydeals.my/
Description: Storefront child theme — editorial luxury: black and deep navy, gold accents, Playfair Display headings.
Author: Everyday Ebooks
Template: storefront
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: storefront-child
*/

/* ============ Editorial Luxury palette ============ */
:root {
  --lux-black: #06080e;
  --lux-navy: #0a0e18;
  --lux-surface: #0e1424;
  --lux-surface-2: #111a2e;
  --lux-gold: #c9a24b;
  --lux-gold-2: #d9b45f;
  --lux-gold-soft: #e8c87e;
  --lux-ivory: #f4efe6;
  --lux-muted: #b9b3a4;
  --lux-line: rgba(201, 162, 75, .35);
  --lux-line-soft: rgba(201, 162, 75, .18);
}

/* ============ Base ============ */
body,
.site,
.site-content,
.content-area,
.hentry,
.col-full {
  background-color: var(--lux-black);
  color: var(--lux-ivory);
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6,
.alpha, .beta, .gamma,
.site-title,
.entry-title,
.woocommerce-loop-product__title,
.product_title,
.woocommerce-loop-category__title,
.cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-billing-fields h3,
.woocommerce-account h2,
.widget .widget-title,
.widget h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--lux-ivory);
  letter-spacing: .01em;
}
a { color: var(--lux-gold-2); }
a:hover, a:focus { color: var(--lux-gold-soft); }
p, li, dd { color: var(--lux-ivory); }
.entry-content > h2,
.entry-content h2 {
  font-size: 30px;
  margin: 1.6em 0 .9em;
  padding-bottom: .4em;
  border-bottom: 1px solid var(--lux-line);
}
.entry-content > h2:first-child { margin-top: 0; }
.entry-header .entry-title {
  border-bottom: 1px solid var(--lux-line);
  padding-bottom: .35em;
}
hr { background-color: var(--lux-line); height: 1px; border: 0; }

/* ============ Header ============ */
.site-header {
  background-color: var(--lux-black);
  border-bottom: 1px solid var(--lux-line);
}
.site-header .site-branding .site-title a,
.site-title a {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  color: var(--lux-gold-2);
  letter-spacing: .04em;
}
.site-header .site-description { color: var(--lux-muted); }
.main-navigation ul li a,
.site-header .main-navigation a { color: var(--lux-ivory); }
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a { color: var(--lux-gold-2); }
.site-header .site-search input,
.site-header .widget_product_search input,
.site-header .widget_search input {
  background: var(--lux-surface);
  color: var(--lux-ivory);
  border: 1px solid var(--lux-line-soft);
}
.site-header .site-search input::placeholder { color: var(--lux-muted); }
.site-header-cart .cart-contents { color: var(--lux-ivory); }
.site-header-cart .cart-contents .count {
  background: linear-gradient(135deg, #d9b45f, #c9a24b);
  color: #14100a;
}
.site-header-cart .widget_shopping_cart {
  background: var(--lux-surface);
  border: 1px solid var(--lux-line);
  color: var(--lux-ivory);
}
.site-header-cart .widget_shopping_cart a { color: var(--lux-ivory); }
.site-header-cart .widget_shopping_cart .total,
.site-header-cart .widget_shopping_cart .total strong { color: var(--lux-ivory); }
.woocommerce-breadcrumb { color: var(--lux-muted); }
.woocommerce-breadcrumb a { color: var(--lux-gold-2); }

/* ============ Buttons ============ */
.button, button,
input[type="button"], input[type="submit"],
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt,
.wp-block-button__link {
  background: linear-gradient(135deg, #d9b45f 0%, #c9a24b 100%);
  color: #14100a;
  border: 0;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .82rem;
  padding: .9em 1.6em;
}
.button:hover, button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wp-block-button__link:hover {
  background: linear-gradient(135deg, #e8c87e 0%, #d9b45f 100%);
  color: #14100a;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt { color: #14100a; }

/* ============ Product cards & category tiles ============ */
ul.products li.product,
ul.products li.product-category {
  background: var(--lux-surface);
  border: 1px solid var(--lux-line-soft);
  border-radius: 10px;
  padding: 16px 16px 20px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
ul.products li.product:hover,
ul.products li.product-category:hover {
  border-color: var(--lux-gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
ul.products li.product img,
ul.products li.product-category img { border-radius: 6px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-loop-product__title {
  color: var(--lux-ivory);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
}
.woocommerce ul.products li.product .price,
.price {
  color: var(--lux-gold-2);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
}
.woocommerce ul.products li.product .price del,
.price del { color: var(--lux-muted); opacity: .85; }
.woocommerce ul.products li.product .price ins,
.price ins { color: var(--lux-gold-2); text-decoration: none; }
.woocommerce span.onsale,
ul.products li.product .onsale {
  background: linear-gradient(135deg, #d9b45f, #c9a24b);
  color: #14100a;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .68rem;
}
.star-rating, .star-rating span::before { color: var(--lux-gold-2); }
.woocommerce-loop-category__title { color: var(--lux-ivory); }
.woocommerce-loop-category__title .count {
  color: var(--lux-gold-2);
  background: transparent;
}
ul.products li.product .button { margin-top: .8em; }

/* ============ Single product ============ */
.single-product .product_title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.1rem;
  color: var(--lux-ivory);
}
.single-product div.product .price {
  color: var(--lux-gold-2);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
}
.single-product div.product .woocommerce-product-gallery__image {
  border: 1px solid var(--lux-line-soft);
  border-radius: 10px;
}
.stock.in-stock { color: var(--lux-gold-2); }
.stock.out-of-stock { color: #d98a8a; }
.woocommerce-tabs ul.tabs li { background: var(--lux-surface); border-color: var(--lux-line-soft); }
.woocommerce-tabs ul.tabs li a { color: var(--lux-muted); }
.woocommerce-tabs ul.tabs li.active { background: var(--lux-navy); }
.woocommerce-tabs ul.tabs li.active a { color: var(--lux-gold-2); }
.woocommerce-tabs .panel { background: transparent; color: var(--lux-ivory); }
.woocommerce-tabs ul.tabs::before { border-bottom-color: var(--lux-line-soft); }
.single-product .product_meta, .single-product .product_meta a { color: var(--lux-muted); }
.single-product .product_meta a:hover { color: var(--lux-gold-2); }

/* ============ Shop toolbar, filters, pagination ============ */
.woocommerce-result-count { color: var(--lux-muted); }
.woocommerce-ordering select,
.woocommerce .woocommerce-ordering select {
  background-color: var(--lux-surface);
  color: var(--lux-ivory);
  border: 1px solid var(--lux-line-soft);
  border-radius: 4px;
  padding: .5em;
}
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  background: var(--lux-surface);
  color: var(--lux-ivory);
  border: 1px solid var(--lux-line-soft);
}
.woocommerce-pagination ul.page-numbers li span.current,
.woocommerce-pagination ul.page-numbers li a:hover {
  background: var(--lux-gold);
  color: #14100a;
  border-color: var(--lux-gold);
}
.widget {
  background: var(--lux-surface);
  border: 1px solid var(--lux-line-soft);
  border-radius: 10px;
  padding: 1.2em;
}
.widget .widget-title { border-bottom: 1px solid var(--lux-line); padding-bottom: .4em; }
.widget a { color: var(--lux-ivory); }
.widget a:hover { color: var(--lux-gold-2); }
.widget .count { color: var(--lux-gold-2); }
.widget_price_filter .ui-slider .ui-slider-range { background: var(--lux-gold); }
.widget_price_filter .ui-slider .ui-slider-handle { background: var(--lux-gold-2); border-color: #14100a; }
.widget_price_filter .price_slider_amount .button { font-size: .75rem; }

/* ============ Forms, cart, checkout ============ */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], textarea, select {
  background: var(--lux-surface);
  color: var(--lux-ivory);
  border: 1px solid var(--lux-line-soft);
  border-radius: 4px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--lux-gold);
  outline: none;
  box-shadow: 0 0 0 1px var(--lux-gold);
}
label { color: var(--lux-muted); }
.woocommerce table.shop_table {
  background: transparent;
  border: 1px solid var(--lux-line-soft);
  border-radius: 10px;
}
.woocommerce table.shop_table th {
  color: var(--lux-ivory);
  background: var(--lux-surface);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: .03em;
}
.woocommerce table.shop_table td {
  border-top: 1px solid var(--lux-line-soft);
  color: var(--lux-ivory);
}
.woocommerce table.shop_table td a { color: var(--lux-ivory); }
.woocommerce table.shop_table td a:hover { color: var(--lux-gold-2); }
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal { color: var(--lux-gold-2); }
.woocommerce-info, .woocommerce-message {
  background: var(--lux-surface);
  border-top: 3px solid var(--lux-gold);
  color: var(--lux-ivory);
}
.woocommerce-info a, .woocommerce-message a { color: var(--lux-gold-2); }
.woocommerce-error { background: var(--lux-surface); border-top: 3px solid #d98a8a; color: var(--lux-ivory); }
#payment, .woocommerce-checkout #payment {
  background: var(--lux-surface);
  border: 1px solid var(--lux-line-soft);
  border-radius: 10px;
}
#payment ul.payment_methods li { border-bottom: 1px solid var(--lux-line-soft); color: var(--lux-ivory); }
#payment div.payment_box { background: var(--lux-navy); color: var(--lux-muted); }
.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th { color: var(--lux-gold-2); }
.cart_totals .shop_table td { color: var(--lux-ivory); }
.cart_totals .order-total td { color: var(--lux-gold-2); font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; }
.woocommerce .cart-collaterals .cross-sells h2 { font-family: "Playfair Display", Georgia, serif; }

/* ============ My account / wishlist ============ */
.woocommerce-MyAccount-navigation ul li a { color: var(--lux-ivory); }
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover { color: var(--lux-gold-2); }
.woocommerce-MyAccount-content a { color: var(--lux-gold-2); }
.tinv-wishlist .tinvwl_add_to_wishlist_button { color: var(--lux-gold-2); }
.tinv-wishlist .tinvwl_add_to_wishlist_button:hover { color: var(--lux-gold-soft); }
.tinv-wishlist table.tinvwl-table-manage-list th { color: var(--lux-ivory); background: var(--lux-surface); }
.tinv-wishlist table.tinvwl-table-manage-list td { border-top: 1px solid var(--lux-line-soft); color: var(--lux-ivory); }

/* ============ Footer ============ */
.site-footer {
  background-color: var(--lux-black);
  color: var(--lux-muted);
  border-top: 1px solid var(--lux-line);
}
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer .widget-title {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--lux-gold-2);
}
.site-footer a { color: var(--lux-ivory); }
.site-footer a:hover { color: var(--lux-gold-2); }
.site-footer .site-info { border-top: 1px solid var(--lux-line-soft); color: var(--lux-muted); }
.site-footer .widget { background: transparent; border: 0; padding: 0; }
.storefront-handheld-footer-bar { background: var(--lux-navy); border-top: 1px solid var(--lux-line); }
.storefront-handheld-footer-bar ul li a { color: var(--lux-ivory); }
.storefront-handheld-footer-bar ul li a:hover { color: var(--lux-gold-2); }
.storefront-handheld-footer-bar ul li.cart .count {
  background: linear-gradient(135deg, #d9b45f, #c9a24b);
  color: #14100a;
}

/* ============ Demo store notice ============ */
.woocommerce-demo-store {
  background: linear-gradient(135deg, #d9b45f, #c9a24b);
  color: #14100a;
}
.woocommerce-demo-store a { color: #14100a; text-decoration: underline; }
