/*
Theme Name: Dinuels for Blocksy
Theme URI: https://dinuels.com/
Description: Premium WooCommerce child theme for Dinuels, built on Blocksy.
Author: Dinuels
Template: blocksy
Version: 1.1.0
Text Domain: dinuels-blocksy
*/

:root {
  --dn-plum: #65405f;
  --dn-plum-dark: #432b40;
  --dn-rose: #c98893;
  --dn-cream: #f7f0e4;
  --dn-sand: #e9d9bd;
  --dn-sage: #879284;
  --dn-charcoal: #292d2f;
  --dn-muted: #6d6c69;
  --dn-white: #fffdf9;
  --dn-border: rgba(41,45,47,.13);
  --dn-shadow: 0 16px 45px rgba(55,42,48,.10);
}

body { background: var(--dn-white); color: var(--dn-charcoal); }
a { text-underline-offset: 3px; }

/* Header */
#header [data-row] { border-bottom: 1px solid var(--dn-border); }
#header .site-title { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .02em; }
#header [data-id="menu"] > ul > li > a { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* Global buttons */
.ct-button,
button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-element-button {
  border-radius: 0 !important;
  font-weight: 700 !important;
  letter-spacing: .055em;
  text-transform: uppercase;
  box-shadow: none !important;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.ct-button:hover,
button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { transform: translateY(-1px); }

/* Homepage */
.dn-home { overflow: hidden; }
.dn-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.dn-eyebrow { margin: 0 0 15px; color: var(--dn-rose); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.dn-title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 6vw, 78px); line-height: .98; font-weight: 500; letter-spacing: -.035em; }
.dn-copy { color: var(--dn-muted); font-size: 17px; line-height: 1.75; }
.dn-hero { background: linear-gradient(120deg, var(--dn-cream), #f0dfdc); padding: clamp(65px, 8vw, 120px) 0; }
.dn-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(35px, 7vw, 100px); }
.dn-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dn-btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--dn-charcoal); background: var(--dn-charcoal); color: white; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.dn-btn:hover { background: var(--dn-plum); border-color: var(--dn-plum); color: #fff; }
.dn-btn--ghost { background: transparent; color: var(--dn-charcoal); }
.dn-btn--ghost:hover { color: #fff; }
.dn-hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.dn-hero-visual::before { content: ''; position: absolute; inset: 8% 5%; border-radius: 50%; background: rgba(255,255,255,.63); }
.dn-hero-visual img { position: relative; z-index: 1; width: min(100%, 540px); max-height: 520px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(62,42,55,.16)); }
.dn-trustbar { background: var(--dn-charcoal); color: #fff; }
.dn-trustgrid { display: grid; grid-template-columns: repeat(3, 1fr); }
.dn-trustitem { padding: 25px; text-align: center; border-right: 1px solid rgba(255,255,255,.16); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dn-trustitem:last-child { border-right: 0; }
.dn-section { padding: clamp(70px, 8vw, 115px) 0; }
.dn-section--soft { background: var(--dn-cream); }
.dn-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.dn-section-head h2 { margin: 0; max-width: 700px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.05; font-weight: 500; letter-spacing: -.025em; }
.dn-textlink { color: var(--dn-charcoal); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dn-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dn-category { min-height: 360px; position: relative; padding: 35px; display: flex; align-items: end; overflow: hidden; background: #eadbd0; text-decoration: none; }
.dn-category:nth-child(2) { background: #dedfd5; }
.dn-category:nth-child(3) { background: #dfcbd4; }
.dn-category::after { content: ''; position: absolute; width: 230px; height: 230px; right: -40px; top: -40px; border-radius: 50%; background: rgba(255,255,255,.38); transition: transform .35s ease; }
.dn-category:hover::after { transform: scale(1.12); }
.dn-category h3 { position: relative; z-index: 1; margin: 0; color: var(--dn-charcoal); font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.dn-story { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.dn-story-card { min-height: 480px; display: grid; place-items: center; padding: 50px; background: #fff; box-shadow: var(--dn-shadow); }
.dn-story-card img { max-width: 330px; max-height: 360px; object-fit: contain; }
.dn-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.dn-value { border-top: 1px solid var(--dn-border); padding-top: 18px; }
.dn-value strong { display: block; margin-bottom: 8px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.dn-value span { color: var(--dn-muted); font-size: 14px; line-height: 1.6; }
.dn-cta { padding: clamp(60px, 7vw, 90px) 0; background: var(--dn-plum-dark); color: #fff; text-align: center; }
.dn-cta h2 { margin: 0 auto 20px; max-width: 780px; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 500; }
.dn-cta p { max-width: 630px; margin: 0 auto 30px; color: rgba(255,255,255,.72); }
.dn-cta .dn-btn { background: var(--dn-white); border-color: var(--dn-white); color: var(--dn-charcoal); }

/* WooCommerce archive */
.woocommerce-shop .hero-section,
.tax-product_cat .hero-section { background: var(--dn-cream); }
.woocommerce-shop .hero-section .page-title,
.tax-product_cat .hero-section .page-title { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.02em; }
.woocommerce ul.products { gap: 42px 28px !important; }
.woocommerce ul.products li.product { display: flex !important; flex-direction: column; height: 100%; }
.woocommerce ul.products li.product .ct-media-container,
.woocommerce ul.products li.product > a:first-child { overflow: hidden; }
.woocommerce ul.products li.product img { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; padding: 24px; background: #fff; transition: transform .35s ease; }
.woocommerce ul.products li.product:hover img { transform: scale(1.035); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: Georgia, serif; font-size: 23px !important; line-height: 1.2; font-weight: 500 !important; letter-spacing: -.012em; }
.woocommerce ul.products li.product .price { color: var(--dn-plum) !important; font-size: 16px !important; font-weight: 800; }
.woocommerce ul.products li.product .button { margin-top: auto !important; width: fit-content; background: var(--dn-charcoal) !important; color: white !important; }
.woocommerce ul.products li.product .button:hover { background: var(--dn-plum) !important; }
.woocommerce .woocommerce-result-count { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.woocommerce-ordering select { border-radius: 0 !important; background-color: #fff; }

/* Single product */
.single-product .product-entry-wrapper { gap: clamp(35px, 6vw, 80px); }
.single-product .woocommerce-product-gallery { background: #fff; }
.single-product .woocommerce-product-gallery__image img { object-fit: contain; }
.single-product .entry-summary .product_title { font-family: Georgia, serif; font-size: clamp(36px, 4vw, 55px); line-height: 1.05; font-weight: 500; letter-spacing: -.025em; }
.single-product .entry-summary .price { color: var(--dn-plum) !important; font-size: 24px !important; font-weight: 800; }
.single-product .woocommerce-product-details__short-description { color: var(--dn-muted); line-height: 1.75; }
.single-product form.cart { padding: 25px 0; border-top: 1px solid var(--dn-border); border-bottom: 1px solid var(--dn-border); }
.single-product form.cart .single_add_to_cart_button { min-height: 54px; background: var(--dn-charcoal) !important; }
.single-product form.cart .single_add_to_cart_button:hover { background: var(--dn-plum) !important; }
.single-product .woocommerce-tabs { margin-top: 80px; }
.single-product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--dn-border); }
.single-product .woocommerce-tabs ul.tabs li a { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.single-product .woocommerce-tabs .panel { max-width: 850px; line-height: 1.8; }
.single-product section.related > h2,
.single-product section.up-sells > h2 { font-family: Georgia, serif; font-size: 42px; font-weight: 500; }

/* Cart / checkout */
.woocommerce-cart .entry-header h1,
.woocommerce-checkout .entry-header h1,
.woocommerce-account .entry-header h1 { font-family: Georgia, serif; font-weight: 500; }
.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-account .woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--dn-border); padding: clamp(22px, 4vw, 40px); }
.woocommerce table.shop_table { border-color: var(--dn-border) !important; border-radius: 0 !important; }
.woocommerce-checkout #payment { background: var(--dn-cream) !important; border-radius: 0 !important; }
.woocommerce-checkout #place_order { width: 100%; min-height: 56px; background: var(--dn-charcoal) !important; }
.woocommerce-checkout #place_order:hover { background: var(--dn-plum) !important; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single { border-radius: 0 !important; min-height: 48px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { border: 1px solid var(--dn-border); background: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { padding: 15px 18px; }

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error { border-radius: 0 !important; background: var(--dn-cream) !important; border: 0 !important; border-left: 4px solid var(--dn-plum) !important; }

/* Footer */
footer.ct-footer { border-top: 1px solid var(--dn-border); }

@media (max-width: 900px) {
  .dn-hero-grid, .dn-story { grid-template-columns: 1fr; }
  .dn-hero-visual { min-height: 390px; order: -1; }
  .dn-category-grid { grid-template-columns: 1fr 1fr; }
  .dn-values { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dn-wrap { width: min(100% - 28px, 1180px); }
  .dn-hero { padding-top: 42px; }
  .dn-hero-visual { min-height: 300px; }
  .dn-title { font-size: 45px; }
  .dn-trustgrid { grid-template-columns: 1fr; }
  .dn-trustitem { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .dn-category-grid { grid-template-columns: 1fr; }
  .dn-category { min-height: 260px; }
  .dn-section-head { display: block; }
  .dn-section-head .dn-textlink { display: inline-block; margin-top: 18px; }
}

/* Dinuels 1.1 header and navigation */
#header { display: none !important; }
.dn-site-header { position: sticky; top: 0; z-index: 9999; background: rgba(255,253,249,.96); border-bottom: 1px solid var(--dn-border); backdrop-filter: blur(12px); }
.admin-bar .dn-site-header { top: 32px; }
.dn-header-inner { width: min(1240px, calc(100% - 40px)); min-height: 82px; margin: auto; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 30px; }
.dn-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--dn-charcoal); text-decoration: none; }
.dn-brand img { width: 42px; height: 42px; object-fit: contain; }
.dn-brand span { font-family: Georgia, serif; font-size: 27px; letter-spacing: -.02em; }
.dn-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 42px); }
.dn-menu li { margin: 0; }
.dn-menu a, .dn-shop-link { color: var(--dn-charcoal); font-size: 12px; font-weight: 800; letter-spacing: .085em; text-decoration: none; text-transform: uppercase; }
.dn-menu a:hover, .dn-shop-link:hover { color: var(--dn-plum); }
.dn-header-actions { display: flex; align-items: center; gap: 18px; }
.dn-icon-link { position: relative; display: grid; place-items: center; width: 28px; height: 28px; color: var(--dn-charcoal); }
.dn-icon-link svg { width: 23px; height: 23px; }
.dn-cart-link span { position: absolute; top: -7px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; display: grid; place-items: center; background: var(--dn-plum); color: white; font-size: 10px; }
.dn-menu-toggle { display: none; width: 36px; height: 36px; padding: 7px !important; border: 0 !important; background: transparent !important; }
.dn-menu-toggle span { display: block; height: 1px; margin: 5px 0; background: var(--dn-charcoal); }

/* Six featured products, two complete rows */
.dn-home .dn-section .woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

/* Image-led collection cards */
.dn-category { min-height: 430px; isolation: isolate; background: #efe5dc !important; }
.dn-category::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(to top, rgba(32,29,31,.78), rgba(32,29,31,.03) 65%), var(--dn-category-image); background-size: cover; background-position: center; transition: transform .45s ease; }
.dn-category::after { display: none; }
.dn-category:hover::before { transform: scale(1.035); }
.dn-category span { position: absolute; left: 35px; bottom: 86px; color: rgba(255,255,255,.78); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.dn-category h3 { color: #fff; font-size: 31px; }

/* Product-led approach artwork */
.dn-story-card { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 44%, #fff 0 28%, #eee1e7 29% 55%, #f7f0e4 56%); }
.dn-story-card::before, .dn-story-card::after { content: ''; position: absolute; border: 1px solid rgba(101,64,95,.18); border-radius: 50%; }
.dn-story-card::before { width: 400px; height: 400px; }
.dn-story-card::after { width: 285px; height: 285px; }
.dn-story-card img { position: relative; z-index: 2; max-width: 290px; max-height: 400px; filter: drop-shadow(0 28px 30px rgba(61,39,55,.20)); }
.dn-story-title { margin: 0 0 24px; font-family: Georgia,serif; font-size: clamp(36px,5vw,60px); font-weight: 500; line-height: 1.05; }

/* Compact page banners: no empty image-shaped blocks */
body:not(.home) .hero-section[data-type="type-1"],
body:not(.home) .hero-section[data-type="type-2"] { min-height: 210px !important; padding: 55px 0 !important; background: linear-gradient(120deg, var(--dn-cream), #eadde1) !important; }
body:not(.home) .hero-section .ct-media-container,
body:not(.home) .hero-section .page-title-image { display: none !important; }
body:not(.home) .hero-section .page-title { font-family: Georgia, serif !important; font-weight: 500 !important; }

/* Custom footer */
footer.ct-footer { display: none !important; }
.dn-footer { background: #2d3031; color: rgba(255,255,255,.76); padding: 70px 0 0; }
.dn-footer .dn-brand { color: white; margin-bottom: 18px; }
.dn-footer .dn-brand img { width: 48px; height: 48px; }
.dn-footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 60px; padding-bottom: 55px; }
.dn-footer p { max-width: 390px; line-height: 1.75; }
.dn-footer h3 { margin: 8px 0 20px; color: white; font-size: 13px; letter-spacing: .11em; text-transform: uppercase; }
.dn-footer-grid > div:not(.dn-footer-brand) { display: flex; flex-direction: column; gap: 11px; }
.dn-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.dn-footer a:hover { color: white; }
.dn-footer-bottom { min-height: 70px; border-top: 1px solid rgba(255,255,255,.13); display: flex; align-items: center; justify-content: space-between; gap: 25px; font-size: 12px; }

.dn-product-reassurance { margin-top: 20px; color: #6d6c69; font-size: 14px; line-height: 1.7; }
.dn-product-reassurance strong { color: #292d2f; }

@media (max-width: 900px) {
  .dn-header-inner { grid-template-columns: 1fr auto; min-height: 70px; }
  .dn-site-nav { position: fixed; top: 70px; left: 0; right: 0; max-height: 0; overflow: hidden; background: var(--dn-white); border-bottom: 1px solid var(--dn-border); transition: max-height .3s ease; }
  .admin-bar .dn-site-nav { top: 102px; }
  .dn-menu-open .dn-site-nav { max-height: 420px; }
  .dn-menu { display: block; padding: 18px 26px 26px; }
  .dn-menu li { border-bottom: 1px solid var(--dn-border); }
  .dn-menu a { display: block; padding: 15px 0; }
  .dn-shop-link { display: none; }
  .dn-menu-toggle { display: block; }
  .dn-home .dn-section .woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dn-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .admin-bar .dn-site-header { top: 46px; }
  .admin-bar .dn-site-nav { top: 116px; }
  .dn-header-inner { width: calc(100% - 28px); }
  .dn-brand img { width: 36px; height: 36px; }
  .dn-brand span { font-size: 24px; }
  .dn-header-actions { gap: 11px; }
  .dn-home .dn-section .woocommerce ul.products.columns-3 { grid-template-columns: 1fr !important; }
  .dn-category { min-height: 340px; }
  .dn-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .dn-footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
}
