/* =========================================================
   LOOKBOOK (WOODMART-SAFE) - MATCHES PLUGIN MARKUP
   ========================================================= */

/* Wrapper layout */
.lookbook-wrapper{
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "room room"
    "sidebar main";
  column-gap: 2rem;
  row-gap: 1.5rem;
}

/* =======================
   TOP ROOM TABS (ROW)
======================= */
.lookbook-filter-row-room{
  grid-area: room;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap: .55rem;
  border-bottom: 1px solid #eee;
  padding-bottom: .9rem;
}

/* Hide the "Room:" label */
.lookbook-filter-label{ display:none !important; }

/* Tabs – toned down rounding to match Woodmart */
.lookbook-wrapper .lookbook-filter-row-room button.lookbook-filter-button{
  padding: 8px 16px;
  border-radius: 6px !important;     /* subtle rounding */
  border: 1px solid #666 !important;
  background: #fff !important;
  cursor: pointer;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
  box-shadow: none !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.lookbook-wrapper .lookbook-filter-row-room button.lookbook-filter-button:hover{
  background:#f6f6f6 !important;
  border-color:#444 !important;
}

.lookbook-wrapper .lookbook-filter-row-room button.lookbook-filter-button.is-active{
  background: #ed1b24 !important;
  color: #fff !important;
  border-color: #ed1b24 !important;
}

/* =======================
   SIDEBAR (LEFT)
======================= */
.lookbook-filter-row-secondary{
  grid-area: sidebar;
  display:flex;
  flex-direction:column;
  gap:0;
  margin:0;
  border:1px solid #eee;
  border-radius:0;
  background:#fff;
}

/* Header row: Filters | Clear All aligned */
.lookbook-filters-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #eee;
}

.lookbook-filters-title{
  margin:0;
  font-size: 1.05rem;     /* slightly bigger */
  text-transform: uppercase;
  letter-spacing: .06em;
  color:#222;
}

.lookbook-clear-all{
  border:none !important;
  background:none !important;
  padding:0 !important;
  margin:0 !important;
  cursor:pointer;
  color:#ed1b24;
  font-size: .95rem;      /* slightly bigger */
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  line-height: 1;
}

/* Filter sections with separators */
.lookbook-filter-section{
  border-top:1px solid #eee;
  padding: 1rem 1rem;
}

.lookbook-filter-section-header{ margin-bottom: .55rem; }

.lookbook-filter-section-title{
  position: relative;
  padding-left: 36px;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color:#222;
}

/* Icons (outline style via SVG file) */
.lookbook-filter-section-title:before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-repeat:no-repeat;
  background-size:contain;
  opacity: .95;
}

.lookbook-filter-section-type .lookbook-filter-section-title:before{
  background-image: url("../icons/modern-house.svg");
}

.lookbook-filter-section-mood .lookbook-filter-section-title:before{
  background-image: url("../icons/lotus.svg");
}

/* Checkbox list (slightly bigger) */
.lookbook-filter-section-body{ margin-top: .15rem; }

.lookbook-checkbox{
  display:flex;
  align-items:center;
  gap:.55rem;
  font-size: 1rem;
  margin-bottom: .45rem;
  color:#222;
}

.lookbook-checkbox input[type="checkbox"]{
  margin:0 !important;
  width:16px;
  height:16px;
  transform: scale(1.15);
  transform-origin: center;
}

/* =======================
   MAIN AREA + GRID
======================= */
.lookbook-main{ grid-area: main; }

.lookbook-gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* If only one result, keep it in first "column" (not stretched full width) */
.lookbook-wrapper.lookbook-has-single .lookbook-gallery-grid{
  max-width: 900px;
  margin: 0; /* keep aligned with grid, not centered */
}

.lookbook-gallery-item-inner{
  background:#fff;
  border-radius:0;
  border:1px solid #eee;
  overflow:hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.lookbook-gallery-item-inner:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

/* Title above thumbnail */
.lookbook-gallery-info{
  padding: .7rem .9rem .35rem;
}

.lookbook-gallery-title{
  margin:0;
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align:left;
  color:#222;
}

/* Thumbnails - NO cropping */
.lookbook-gallery-thumb{
  background:#fff;
}

.lookbook-gallery-thumb img{
  display:block;
  width:100%;
  height:auto !important;
  object-fit: contain !important;
}

/* No results */
.lookbook-no-results{
  font-style: italic;
  font-size: .95rem;
}

/* =======================
   PAGINATION
======================= */
.lookbook-pagination{
  margin-top: 1.75rem;
  text-align:center;
}

.lookbook-pagination ul{
  display:inline-flex;
  list-style:none;
  padding:0;
  margin:0;
  gap:.35rem;
}

.lookbook-pagination li a,
.lookbook-pagination li span{
  display:block;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #666;
  font-size: .9rem;
  background:#fff;
  box-shadow:none !important;
}

.lookbook-pagination li span.current{
  background:#ed1b24;
  border-color:#ed1b24;
  color:#fff;
}

/* =======================
   LIGHTBOX / POPUP
======================= */
.lookbook-lightbox-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.85);
  z-index: 99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 1.5rem;
}

.lookbook-lightbox-inner{
  position:relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow: visible;
}

.lookbook-lightbox-inner img{
  display:block;
  max-width: 90vw;
  max-height: 90vh;
  width:auto;
  height:auto;
  object-fit: contain;
}

/* Round close button (theme-proof) */
.lookbook-lightbox-close{
  position:absolute;
  top:-18px;
  right:-18px;
  width:40px !important;
  height:40px !important;
  border:none !important;
  background:transparent !important;
  padding:0 !important;
  margin:0 !important;
  cursor:pointer;
  box-shadow:none !important;
  outline:none !important;
}

.lookbook-lightbox-close::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:#fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.lookbook-lightbox-close::after{
  content:"\00d7";
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  line-height: 1;
  color:#000;
}

body.lookbook-lightbox-open{ overflow:hidden; }

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 900px){
  .lookbook-wrapper{ display:block; }
  .lookbook-filter-row-room{ margin-bottom: 1rem; }
  .lookbook-filter-row-secondary{ margin-bottom: 1.5rem; }
  .lookbook-wrapper.lookbook-has-single .lookbook-gallery-grid{ max-width: 100%; }
}
