/* Hajoora Art: styles for the interactive pieces site.js adds or toggles.
   Everything else on the page comes from the GoDaddy-generated styles saved inside each page. */

:root {
  --hj-brand: rgb(126, 82, 71);
  --hj-brand-dark: rgb(97, 62, 53);
  --hj-text: rgb(94, 94, 94);
  --hj-heading: rgb(27, 27, 27);
  --hj-line: rgb(226, 226, 226);
  --hj-font: "Source Sans Pro", arial, sans-serif;
}

/* ---------- header search ---------- */
.hj-search .hj-search-form { display: none; }
.hj-search.hj-search-open > div:first-child {
  position: absolute; right: 59px; top: 50%; width: 499px; height: 36px;
  transform: translateY(-50%); display: flex; align-items: center; z-index: 5;
}
.hj-search.hj-search-open .hj-search-form { display: block; flex: 1; height: 36px; margin: 0; }
.hj-search.hj-search-open > div:first-child > div {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%); z-index: 1;
}
.hj-search.hj-search-open [data-aid=SEARCH_ICON_RENDERED] { width: 28px !important; height: 28px !important; padding: 4px !important; margin: 0 !important; box-sizing: border-box; color: var(--hj-brand); }
.hj-search-input {
  box-sizing: border-box; width: 100%; height: 36px; margin: 0;
  padding: 8px 8px 8px 40px; border: 1px solid var(--hj-brand); border-radius: 0;
  box-shadow: rgb(71, 71, 71) 0 0 0 1px inset; background: #fff; color: rgb(71, 71, 71);
  font: 400 14px/17.5px var(--hj-font); outline: none; -webkit-appearance: none; appearance: none;
}
.hj-search-input::-webkit-search-cancel-button { display: none; }
.hj-search.hj-search-open [data-aid=SEARCH_CLOSE_RENDERED] {
  display: block !important; visibility: visible !important; opacity: 1 !important;
  position: absolute !important; left: calc(100% + 19px) !important; top: 50% !important; transform: translateY(-50%) !important;
  width: 40px !important; height: 40px !important; padding: 6px !important; margin: 0 !important; box-sizing: border-box;
  color: var(--hj-brand); cursor: pointer;
}

/* ---------- mobile navigation drawer ---------- */
[data-ux=NavigationDrawer].hj-drawer-open {
  visibility: visible !important; transform: none !important; left: 0 !important; right: 0 !important;
}

/* ---------- cart icon badge ---------- */
.hj-cart-link { position: relative; }
.hj-cart-badge {
  position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px;
  box-sizing: border-box; border-radius: 9px; background: var(--hj-brand); color: #fff;
  font: 700 11px/18px var(--hj-font); text-align: center; pointer-events: none;
}

/* ---------- shop: sort menu, categories drawer, pagination ---------- */
.hj-sort-menu {
  display: none; position: absolute; top: 26px; right: -4px; z-index: 10; width: 260px; box-sizing: border-box;
  margin: 0; padding: 32px 30px; list-style: none; background: #fff; border: 1px solid var(--hj-line);
  text-align: left;
}
.hj-sort-menu.hj-open { display: block; }
.hj-sort-menu li { padding: 2px 0; }
.hj-sort-menu a {
  display: block; padding: 4px 0; color: var(--hj-text); text-decoration: none;
  font: 400 14px/1.5 var(--hj-font); letter-spacing: 0.071em; text-transform: uppercase;
}
.hj-sort-menu a:hover, .hj-sort-menu a.hj-active { color: var(--hj-brand); font-weight: 700; }
[data-ux=Drawer].hj-cat-open { display: block !important; visibility: visible !important; max-height: none !important; height: auto !important; opacity: 1 !important; }
[data-ux=Drawer].hj-cat-open [data-ux=DrawerPanel] { transform: none !important; visibility: visible !important; position: static !important; }
.hj-disabled { pointer-events: none; opacity: 0.35; }
.hj-no-results { grid-column: 1 / -1; width: 100%; padding: 48px 0; color: var(--hj-text); font: 400 16px var(--hj-font); text-align: center; }

/* ---------- buttons used in added UI ---------- */
.hj-btn {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%;
  min-height: 48px; padding: 8px 24px; border: 2px solid var(--hj-brand); border-radius: 0; cursor: pointer;
  font: 700 13px/1.25 var(--hj-font); letter-spacing: 0.143em; text-transform: uppercase; text-decoration: none;
}
.hj-btn::before, .hj-btn::after { content: ""; width: 16px; height: 1px; background: currentColor; flex: none; }
.hj-btn::before { margin-right: 10px; }
.hj-btn::after { margin-left: 10px; }
.hj-btn-solid { background: var(--hj-brand); color: #fff; }
.hj-btn-solid:hover { background: var(--hj-brand-dark); border-color: var(--hj-brand-dark); }
.hj-btn-ghost { background: transparent; color: var(--hj-brand); }
.hj-btn-ghost:hover { background: rgba(126, 82, 71, 0.08); }

/* ---------- mini cart (after Add to Cart) ---------- */
.hj-minicart {
  position: fixed; top: 24px; right: 24px; z-index: 10010; width: 340px; max-width: calc(100vw - 32px);
  box-sizing: border-box; padding: 20px; background: #fff; border: 1px solid var(--hj-line);
  box-shadow: rgba(0, 0, 0, 0.15) 0 6px 24px; font-family: var(--hj-font); color: var(--hj-text);
  opacity: 0; transform: translateY(-12px); transition: opacity 0.25s, transform 0.25s;
}
.hj-minicart.hj-show { opacity: 1; transform: none; }
.hj-minicart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hj-minicart-head span { color: var(--hj-heading); font-weight: 700; font-size: 13px; letter-spacing: 0.143em; text-transform: uppercase; }
.hj-minicart-head button { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--hj-text); cursor: pointer; }
.hj-minicart-item { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.hj-minicart-item img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--hj-line); }
.hj-minicart-name { color: var(--hj-heading); font-size: 15px; line-height: 1.35; }
.hj-minicart-meta { margin-top: 4px; font-size: 14px; }
.hj-minicart .hj-btn + .hj-btn { margin-top: 10px; }

/* ---------- toast ---------- */
.hj-toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 10020; max-width: calc(100vw - 32px);
  padding: 14px 22px; background: var(--hj-heading); color: #fff; font: 400 15px/1.4 var(--hj-font);
  transform: translate(-50%, 20px); opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.hj-toast.hj-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- lightbox (product images) ---------- */
.hj-lightbox {
  position: fixed; inset: 0; z-index: 10030; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.97); cursor: zoom-out;
}
.hj-lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; cursor: default; }
.hj-lightbox button {
  position: absolute; border: 0; background: none; color: var(--hj-heading); cursor: pointer;
  font: 300 44px/1 var(--hj-font); padding: 8px 14px;
}
.hj-lb-close { top: 12px; right: 16px; }
.hj-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 56px !important; }
.hj-lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 56px !important; }

/* ---------- cart page ---------- */
.hj-cart { width: 100%; max-width: 1000px; margin: 0 auto; font-family: var(--hj-font); color: var(--hj-text); text-align: left; }
.hj-cart-title {
  margin: 8px 0 24px; color: var(--hj-heading); font: 700 16px/1.25 var(--hj-font);
  letter-spacing: 0.25em; text-transform: uppercase;
}
.hj-cart-row {
  display: grid; grid-template-columns: 96px 1fr 80px 110px; gap: 20px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--hj-line);
}
.hj-cart-row:last-child { border-bottom: 1px solid var(--hj-line); }
.hj-cart-img img { display: block; width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--hj-line); }
.hj-cart-name { color: var(--hj-heading); font-size: 16px; line-height: 1.4; text-decoration: none; }
.hj-cart-name:hover { color: var(--hj-brand); }
.hj-cart-unit { margin-top: 4px; font-size: 14px; }
.hj-cart-remove {
  margin-top: 8px; padding: 0; border: 0; background: none; color: var(--hj-brand); cursor: pointer;
  font: 400 14px var(--hj-font); text-decoration: underline;
}
.hj-cart-qty {
  width: 70px; box-sizing: border-box; padding: 8px; border: 0; border-bottom: 1px solid var(--hj-line);
  font: 400 15px var(--hj-font); color: var(--hj-heading);
}
.hj-cart-line { text-align: right; color: var(--hj-heading); font-size: 16px; }
.hj-cart-summary { width: 100%; max-width: 360px; margin: 28px 0 0 auto; }
.hj-cart-subtotal { display: flex; justify-content: space-between; color: var(--hj-heading); font-size: 18px; font-weight: 700; }
.hj-cart-note { margin: 8px 0 18px; font-size: 14px; }
.hj-cart-checkout-msg { margin: 14px 0 0; padding: 12px 14px; background: rgb(247, 243, 242); color: var(--hj-brand-dark); font-size: 14px; line-height: 1.45; }
@media (max-width: 640px) {
  .hj-cart-row { grid-template-columns: 72px 1fr 64px; gap: 12px; }
  .hj-cart-img img { width: 72px; height: 72px; }
  .hj-cart-line { grid-column: 2 / 4; text-align: left; }
}

/* ---------- forms ---------- */
.hj-filled > label[data-ux=InputFloatLabelLabel] { top: 4px !important; font-size: 11px !important; line-height: 1.2 !important; }
.hj-invalid { box-shadow: inset 0 -2px 0 rgb(220, 70, 60) !important; }
.hj-form-success {
  padding: 32px 0; color: var(--hj-text); font: 400 16px/1.6 var(--hj-font); text-align: center;
}
.hj-contact-reveal { width: 100%; max-width: 560px; margin: 0 auto; text-align: left; }
