/*
Theme Name:  Lubaaba DREU
Theme URI:   https://lubaaba.com
Description: Child theme de Storefront — diseño editorial DREU
Author:      DREU
Template:    storefront
Version:     1.0.3
*/

/* ── VARIABLES ───────────────────────────────────── */
:root {
  --R: #E8220C;
  --Y: #F5C400;
  --B: #0D2BB8;
  --G: #12A84A;
  --O: #F07020;
  --W: #FFFBF0;
  --K: #111111;
  --wall: #F5C400;
  --shelf-wood: #7B4F2E;
  --shelf-dark: #3E2010;
  --shelf-top: #A06030;
  --border: 3px solid var(--K);
  --shadow: 5px 5px 0 var(--K);
}

/* ── RESET + BASE ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Bebas Neue', sans-serif;
  background: var(--wall);
  color: var(--K);
  cursor: none;
}

body.home, body.archive, body.woocommerce {
  background: var(--wall);
}

/* ── CURSOR ──────────────────────────────────────── */
#dreu-cur {
  position: fixed;
  width: 14px; height: 14px;
  background: var(--K);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .1s, height .1s, background .1s;
}
@media (hover: none) { #dreu-cur { display: none; } body { cursor: auto; } }

/* ── HEADER ──────────────────────────────────────── */
.site-header {
  background: var(--K) !important;
  border-bottom: 5px solid var(--K) !important;
  padding: 32px 24px !important;
  text-align: center;
}
.site-header .site-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.site-header .site-title a,
.site-header .site-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(80px, 18vw, 180px) !important;
  line-height: 0.85 !important;
  color: var(--Y) !important;
  letter-spacing: -4px !important;
  text-shadow: 5px 5px 0 var(--R) !important;
  text-decoration: none !important;
}
.site-header .site-description {
  font-family: 'Space Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  color: var(--W) !important;
  margin-top: 12px !important;
}

/* ── NAV ─────────────────────────────────────────── */
.main-navigation {
  background: transparent !important;
  text-align: center !important;
  margin-top: 24px !important;
}
.main-navigation ul {
  display: flex !important;
  justify-content: center !important;
  gap: 0 !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding: 0 !important; margin: 0 !important;
}
.main-navigation li a {
  display: block !important;
  padding: 10px 24px !important;
  border: 2px solid var(--W) !important;
  color: var(--W) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 14px !important;
  letter-spacing: 3px !important;
  text-decoration: none !important;
  transition: background .15s, color .15s !important;
}
.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
  background: var(--Y) !important;
  color: var(--K) !important;
  border-color: var(--Y) !important;
}
.storefront-handheld-footer-bar { display: none !important; }

/* ── ROOM / WALL ─────────────────────────────────── */
.site-main, .woocommerce-page .site-main {
  background: var(--wall);
  padding: 40px 0 0 !important;
}
.site-content .col-full { padding: 0 !important; max-width: 100% !important; }

/* ── WOOCOMMERCE NOTICES ─────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-color: var(--K) !important;
  background: var(--W) !important;
  color: var(--K) !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 12px !important;
  margin: 0 32px 24px !important;
}

/* ── SHOP TITLE ──────────────────────────────────── */
.woocommerce-products-header,
.woocommerce-products-header__title,
.page-title {
  display: none !important;
}

/* ── BALDA LABEL ─────────────────────────────────── */
.dreu-balda-label {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--K);
  opacity: 0.5;
  text-transform: uppercase;
  padding: 32px 0 14px;
}

/* ── SHELF PLANK ─────────────────────────────────── */
.dreu-plank {
  margin: 0 32px;
  height: 22px;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(0,0,0,0.04) 22px, rgba(0,0,0,0.04) 23px),
    linear-gradient(180deg, var(--shelf-top) 0%, var(--shelf-wood) 50%, var(--shelf-dark) 100%);
  border-top: 3px solid var(--K);
  border-left: 3px solid var(--K);
  border-right: 3px solid var(--K);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 6px 0 var(--shelf-dark), 0 10px 0 rgba(0,0,0,0.12);
}
.dreu-plank-shadow {
  height: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.13), transparent);
  margin: 0 40px;
  margin-bottom: 8px;
}

/* ── PRODUCT GRID (SHELF OBJECTS) ────────────────── */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: flex-end !important;
  padding: 0 32px 16px !important;
  margin: 0 !important;
  list-style: none !important;
}
@media (max-width: 768px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; padding: 0 16px 12px !important; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr !important; }
}

/* ── PRODUCT CARD ────────────────────────────────── */
ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1) !important;
  text-align: center;
}
ul.products li.product:hover { transform: translateY(-14px) rotate(-1deg) !important; }
ul.products li.product:nth-child(2):hover { transform: translateY(-14px) rotate(1deg) !important; }
ul.products li.product:nth-child(3):hover { transform: translateY(-12px) rotate(-2deg) !important; }

/* Product image */
ul.products li.product .woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  text-decoration: none !important;
}
ul.products li.product img {
  width: 100% !important;
  max-width: 200px !important;
  height: auto !important;
  border: 3px solid var(--K) !important;
  border-radius: 4px !important;
  filter: drop-shadow(4px 4px 0 var(--K)) !important;
  background: var(--W);
}

/* Product title */
ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(14px, 2vw, 18px) !important;
  letter-spacing: 2px !important;
  color: var(--K) !important;
  margin: 10px 0 3px !important;
  line-height: 1.2 !important;
}

/* Price */
ul.products li.product .price {
  font-family: 'Space Mono', monospace !important;
  font-size: 13px !important;
  color: var(--R) !important;
  font-weight: 700 !important;
}
ul.products li.product .price del { opacity: 0.5; }

/* Sale badge */
ul.products li.product .onsale {
  position: absolute !important;
  top: -10px !important; right: -10px !important;
  background: var(--R) !important;
  color: var(--W) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  padding: 4px 10px !important;
  border: 2px solid var(--K) !important;
  border-radius: 0 !important;
  min-height: unset !important;
  min-width: unset !important;
  transform: rotate(6deg) !important;
}

/* Add to cart */
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
  display: block !important;
  width: 100% !important;
  margin-top: 10px !important;
  padding: 10px 16px !important;
  background: var(--K) !important;
  color: var(--Y) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 14px !important;
  letter-spacing: 3px !important;
  border: 3px solid var(--K) !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  transition: background .15s, color .15s !important;
  cursor: pointer !important;
}
ul.products li.product .button:hover {
  background: var(--Y) !important;
  color: var(--K) !important;
}

/* ── CATEGORY SECTIONS ───────────────────────────── */
.dreu-cat-section { margin-bottom: 8px; }

/* ── SINGLE PRODUCT ──────────────────────────────── */
.single-product div.product {
  background: var(--W);
  border: 3px solid var(--K);
  margin: 32px !important;
  padding: 32px !important;
  box-shadow: var(--shadow);
}
.single-product .product_title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(40px, 8vw, 80px) !important;
  letter-spacing: -2px !important;
  color: var(--K) !important;
  line-height: 0.9 !important;
  margin-bottom: 16px !important;
}
.single-product .price {
  font-family: 'Space Mono', monospace !important;
  font-size: 24px !important;
  color: var(--R) !important;
  font-weight: 700 !important;
}
.single-product .single_add_to_cart_button {
  background: var(--K) !important;
  color: var(--Y) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 18px !important;
  letter-spacing: 3px !important;
  border: 3px solid var(--K) !important;
  border-radius: 0 !important;
  padding: 14px 32px !important;
  transition: background .15s, color .15s !important;
}
.single-product .single_add_to_cart_button:hover {
  background: var(--Y) !important;
  color: var(--K) !important;
}

/* ── BREADCRUMB ──────────────────────────────────── */
.woocommerce-breadcrumb {
  font-family: 'Space Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  color: var(--K) !important;
  opacity: 0.5;
  padding: 16px 32px !important;
  background: transparent !important;
}

/* ── CART / CHECKOUT ─────────────────────────────── */
.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce-checkout {
  font-family: 'Space Mono', monospace !important;
  font-size: 13px !important;
}
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout h3 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 32px !important;
  letter-spacing: 2px !important;
}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order {
  background: var(--K) !important;
  color: var(--Y) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 16px !important;
  letter-spacing: 3px !important;
  border: 3px solid var(--K) !important;
  border-radius: 0 !important;
  padding: 12px 28px !important;
  transition: background .15s, color .15s !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #place_order:hover {
  background: var(--Y) !important;
  color: var(--K) !important;
}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--K) !important;
  color: var(--W) !important;
  border-top: 5px solid var(--K) !important;
  padding: 32px 40px !important;
}
.site-footer .site-info,
.site-footer a {
  font-family: 'Space Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  color: rgba(255,255,255,0.4) !important;
  text-decoration: none !important;
}

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--wall); }
::-webkit-scrollbar-thumb { background: var(--K); }

/* ── REVEAL ANIMATION ────────────────────────────── */
.dreu-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.dreu-reveal.vis { opacity: 1; transform: translateY(0); }

/* ── FULL-WIDTH / NO SIDEBAR ─────────────────────── */
#secondary.widget-area,
.storefront-handheld-footer-bar,
.woocommerce-products-header { display: none !important; }

#primary {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Storefront col-full override */
.col-full {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Storefront content wrapper */
.site-content #primary { padding: 0 !important; }
.site-content .site-main { padding: 0 !important; margin: 0 !important; }

/* ── STOREFRONT HEADER OVERRIDE ──────────────────── */
/* Force text title even if site uses a custom logo */
.site-header .custom-logo-link { display: none !important; }
.site-header .site-title { display: block !important; }

/* Remove Storefront's default header padding from top nav */
.storefront-primary-navigation { background: transparent !important; border: none !important; }

/* ── WOOCOMMERCE PAGE BACKGROUND ─────────────────── */
.woocommerce-page body,
body.woocommerce-page,
body.woocommerce,
body.post-type-archive-product {
  background: var(--wall) !important;
}

/* Fix WooCommerce notices inside our layout */
.woocommerce-notices-wrapper { padding: 0 32px; }

/* ── PROTOTIPO: ROOM / SHELF / OBJ ──────────────── */
.room {
  background: var(--wall);
  padding: 48px 0 0;
}

.balda-label {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 5px;
  color: var(--K);
  opacity: 0.45;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-top: 32px;
}

.shelf-unit {
  padding: 0 32px;
  margin-bottom: 8px;
}

.shelf-objects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: flex-end;
  padding: 0 16px 20px;
}

.plank {
  height: 24px;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(0,0,0,0.04) 22px, rgba(0,0,0,0.04) 23px),
    linear-gradient(180deg, var(--shelf-top) 0%, var(--shelf-wood) 50%, var(--shelf-dark) 100%);
  border-top: 3px solid var(--K);
  border-left: 3px solid var(--K);
  border-right: 3px solid var(--K);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 6px 0 var(--shelf-dark), 0 10px 0 rgba(0,0,0,0.15);
}

.plank-shadow {
  height: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), transparent);
  margin: 0 8px;
  margin-bottom: 8px;
}

.obj {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
  padding-bottom: 4px;
}
.obj:hover { transform: translateY(-12px) rotate(-1deg); }
.obj:nth-child(2):hover { transform: translateY(-14px) rotate(1deg); }
.obj:nth-child(3):hover { transform: translateY(-10px) rotate(-2deg); }

.obj-svg {
  width: 100%;
  max-width: 200px;
  filter: drop-shadow(4px 4px 0 var(--K));
}

.obj-label {
  margin-top: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 2px;
  text-align: center;
  color: var(--K);
  line-height: 1.3;
}

.obj-price {
  font-family: 'Space Mono', monospace;
  font-size: clamp(10px, 1.2vw, 12px);
  color: var(--R);
  display: block;
  margin-top: 2px;
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--R);
  color: var(--W);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 2px solid var(--K);
  z-index: 2;
  transform: rotate(6deg);
}
.badge.blue  { background: var(--B); }
.badge.green { background: var(--G); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .shelf-unit  { padding: 0 12px; }
  .shelf-objects { gap: 12px; padding: 0 6px 14px; }
}
@media (max-width: 480px) {
  .shelf-objects { grid-template-columns: 1fr 1fr; gap: 8px; }
  .obj-svg { max-width: 140px; }
}

/* ── PORTFOLIO PAGE ──────────────────────────────── */
.dreu-portfolio-page {
  background: var(--wall);
  min-height: 100vh;
  padding-bottom: 80px;
}

.dreu-port-header {
  background: var(--K);
  padding: 60px 40px 48px;
  text-align: center;
}

.dreu-port-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 16vw, 160px);
  line-height: 0.85;
  color: var(--Y);
  text-shadow: 5px 5px 0 var(--R);
  letter-spacing: -3px;
}

.dreu-port-sub {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--W);
  opacity: 0.6;
  margin-top: 16px;
}

.dreu-port-behance {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 24px;
  border: 2px solid var(--Y);
  color: var(--Y);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.dreu-port-behance:hover {
  background: var(--Y);
  color: var(--K);
}

.dreu-port-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 32px;
}

.dreu-port-item {
  overflow: hidden;
  border: 2px solid var(--K) !important;
  aspect-ratio: 1;
  background: var(--K);
}
.dreu-port-item a {
  display: block;
  width: 100%;
  height: 100%;
}
.dreu-port-item img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  display: block !important;
  transition: transform .3s;
  filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.dreu-port-item:hover img { transform: scale(1.05); }

.dreu-port-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  border-top: 3px solid var(--K);
  flex-wrap: wrap;
  gap: 16px;
}

.dreu-port-back {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--K);
  text-decoration: none;
  padding: 10px 24px;
  border: 2px solid var(--K);
  transition: background .15s, color .15s;
}
.dreu-port-back:hover {
  background: var(--K);
  color: var(--Y);
}

@media (max-width: 768px) {
  .dreu-port-grid { grid-template-columns: repeat(3, 1fr); padding: 16px; gap: 4px; }
}
@media (max-width: 480px) {
  .dreu-port-grid { grid-template-columns: repeat(2, 1fr); }
}
