/*
Theme Name: Jullien and Jorel Theme
Theme URI: https://jullienandjorel.com/
Author: iProtect IT Solutions
Author URI: https://iprotect.ph/
Description: Custom minimal luxe WooCommerce theme for Jullien & Jorel with Elementor support.
Version: 1.0
Text Domain: jj-minimal-luxe
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@400;500;600&display=swap');

/* ===========================
   BASE + THEME CSS
   (from your theme.css + Additional CSS)
   =========================== */

/* Variables (Palette) */
:root{
  --jj-black: #000000;
  --jj-deep: #403C37;
  --jj-olive: #82755A;
  --jj-rust: #9D482A;
  --jj-accent: #CA8B54;
  --jj-beige: #DAC7B7;
  --jj-pearl: #F3EEE4;
  --jj-cream: #F7E3D1;
  --jj-text: #eaeaea;
}

/* Box sizing + base body */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin:0; padding:0; }
body {
  background:#fff;
  color:#1a1a1a;
  font-family:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
  line-height:1.55;
  overflow-x:hidden; /* No horizontal scroll */
}

/* Headings */
h1,h2,h3{
  font-family:'Cormorant Garamond','Libre Baskerville',Baskerville,'Times New Roman',serif;
  letter-spacing:.02em;
}
h1{ font-weight:600; }
h2,h3{ font-weight:500; }

/* Slim scrollbars */
*{
  scrollbar-width:thin;
  scrollbar-color:var(--jj-accent) rgba(0,0,0,.15);
}
*::-webkit-scrollbar{ width:8px; height:8px; }
*::-webkit-scrollbar-thumb{ background:var(--jj-accent); border-radius:8px; }
*::-webkit-scrollbar-track{ background:rgba(0,0,0,.15); }

/* Generic containers */
.container{ max-width:1280px; margin:0 auto; padding:0 20px; }
.content-area{ padding:24px 0; }
.jj-article .entry-title{ font-size:28px; }

/* Footer base (your new footer has own styles later) */
.site-footer{
  background:#111;
  color:#aaa;
  padding:30px 0;
}
.site-footer a{ color:#fff; text-decoration:none; }
.footer-inner{
  max-width:1280px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.footer-menu{
  display:flex;
  gap:16px;
  list-style:none;
  margin:0;
  padding:0;
}

/* =====================================================
   HEADER LAYOUT + NAVIGATION
   ===================================================== */

.jj-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--jj-black);
  color:var(--jj-pearl);
  border-bottom:1px solid rgba(255,255,255,.06);
}

/* header row */
.jj-header .jj-row{
  max-width:1280px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  gap:16px;
}

/* Logo */
.jj-logo{
  min-width:140px;
  z-index:5;
}
.jj-logo img{
  height:34px;
  width:auto;
  display:block;
}
.jj-logo .site-title{
  font-family:'Cormorant Garamond',serif;
  font-size:22px !important;
  line-height:1 !important;
  letter-spacing:.12em;
  color:#fff;
  text-decoration:none;
  display:inline-block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Hamburger */
.jj-hamburger{
  width:28px;
  height:22px;
  display:none;
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
}
.jj-hamburger span{
  display:block;
  height:2px;
  background:#fff;
  margin:4px 0;
  transition:transform .2s ease, opacity .2s ease;
}

/* Primary nav */
.jj-nav{
  margin-left:auto;
}
.jj-nav .jj-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:30px;
}
.jj-nav .jj-menu a{
  color:#fff;
  text-decoration:none;
  padding:4px 0;
  display:inline-block;
  position:relative;
}
.jj-nav .jj-menu a:focus,
.jj-nav .jj-menu a:hover{ color:#fff; }

/* Underline accent */
.jj-nav .jj-menu a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-8px;
  height:3px;
  width:0;
  background:var(--jj-accent);
  transition:width .25s ease;
}
.jj-nav .jj-menu .current-menu-item>a::after,
.jj-nav .jj-menu a:hover::after{
  width:36px;
}

/* Dropdown submenu */
.jj-nav .menu-item-has-children{ position:relative; }
.jj-nav .sub-menu{
  position:absolute;
  left:0;
  top:calc(100% + 14px);
  background:#0f0f0f;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  padding:8px;
  min-width:220px;
  display:none;
  z-index:1200;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.jj-nav li:hover > .sub-menu,
.jj-nav li:focus-within > .sub-menu{ display:block; }
.jj-nav .sub-menu li{ list-style:none; }
.jj-nav .sub-menu a{
  display:block;
  padding:8px 10px;
  color:#fff;
  text-decoration:none;
}
.jj-nav .sub-menu a:hover{
  background:rgba(255,255,255,.06);
  border-radius:8px;
}
.jj-nav .sub-menu a::after{ display:none !important; }

/* Header actions (icons + login / avatar) */
.jj-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:16px;
}
.jj-icon-btn{
  position:relative;
  background:none;
  border:0;
  color:#fff;
  cursor:pointer;
  padding:6px;
}
.jj-icon{
  width:22px;
  height:22px;
  display:inline-block;
}

/* SVG mask icons */
.jj-i-search{
  mask:url('assets/svg/search.svg') no-repeat center/contain;
  -webkit-mask:url('assets/svg/search.svg') no-repeat center/contain;
  background:#fff;
}
.jj-i-heart{
  mask:url('assets/svg/heart.svg') no-repeat center/contain;
  -webkit-mask:url('assets/svg/heart.svg') no-repeat center/contain;
  background:#fff;
}
.jj-i-cart{
  mask:url('assets/svg/cart.svg') no-repeat center/contain;
  -webkit-mask:url('assets/svg/cart.svg') no-repeat center/contain;
  background:#fff;
}
.jj-i-user{
  mask:url('assets/svg/user.svg') no-repeat center/contain;
  -webkit-mask:url('assets/svg/user.svg') no-repeat center/contain;
  background:#fff;
}
.jj-cart-count{
  position:absolute;
  top:-4px;
  right:-2px;
  min-width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  background:var(--jj-accent);
  color:#000;
  border-radius:10px;
  font-size:11px;
  padding:0 4px;
  font-weight:600;
}

/* >>> WISHLIST BADGE (mirror cart badge, always visible) <<< */
.jj-wishlist-count-badge{
  position:absolute !important;
  top:-4px !important;
  right:-2px !important;
  min-width:18px !important;
  height:18px !important;
  display:inline-grid !important;
  place-items:center !important;
  background:var(--jj-accent) !important;
  color:#000 !important;
  border-radius:10px !important;
  font-size:11px !important;
  padding:0 4px !important;
  font-weight:600 !important;
  line-height:1 !important;
}

/* Login button (for guests) */
.jj-login-btn{
  background:#fff;
  color:#000;
  border-radius:14px;
  padding:8px 14px;
  border:0;
  font-weight:600;
  cursor:pointer;
}
.jj-login-btn:hover{
  background:var(--jj-accent);
  color:var(--jj-pearl);
}

/* SEARCH POPOVER */
.jj-search-popover{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:100%;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  padding:8px;
  width:min(560px,92vw);
  display:none;
  z-index:1400;
}
.jj-search-popover.show{ display:block; }

.jj-search-input{
  width:100%;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid(var(--jj-accent));
  background:#fff;
  color:#111;
  outline:none;
}
.jj-search-input::placeholder{ color:#666; }

/* MOBILE NAV + OVERLAY */
.jj-mobile-drawer{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:84%;
  max-width:360px;
  background:#111;
  color:#fff;
  transform:translateX(-100%);
  transition:transform .25s ease;
  z-index:1100;
  overflow:auto;
  padding:20px 16px 28px;
}
.jj-mobile-drawer.open{ transform:none; }

.jj-mobile-panel{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.jj-mobile-actions{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-bottom:8px;
}

.jj-mobile-search input{
  width:100%;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:#fff;
  padding:10px 14px;
  font-size:14px;
}
.jj-mobile-search input::placeholder{ color:rgba(255,255,255,.6); }

.jj-mobile-quick-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.jj-mobile-quick-link{
  flex:1 1 calc(50% - 10px);
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.03);
  color:#fff;
  text-decoration:none;
  font-size:14px;
}

/* Mobile nav list */
.jj-mobile-menu{
  list-style:none;
  padding:0;
  margin:8px 0 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.jj-mobile-menu > li > a{
  display:block;
  padding:10px 0;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* overlay */
.jj-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:saturate(1.2) blur(1px);
  z-index:1090;
}
[hidden].jj-overlay{ display:none !important; }

/* SIDE DRAWERS */
.jj-side-drawer{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:420px;
  max-width:92vw;
  background:#ffffff;
  color:#111;
  transform:translateX(100%);
  transition:transform .25s ease;
  z-index:1200;
  display:flex;
  flex-direction:column;
  border-left:1px solid rgba(0,0,0,.12);
}
.jj-side-drawer.open{ transform:none; }

.jj-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.12);
  background:#000;
  color:#fff;
}
.jj-drawer-head h3{
  margin:0;
  font-size:18px;
  font-weight:600;
}
.jj-close{
  background:none;
  border:0;
  font-size:28px;
  cursor:pointer;
  color:#fff;
}
.jj-drawer-body{
  padding:16px;
  overflow:auto;
  flex:1;
  background:#ffffff;
}

/* Loading bar */
.jj-loading{
  width:100%;
  height:3px;
  background:linear-gradient(90deg,transparent,var(--jj-accent),transparent);
  background-size:200% 100%;
  animation:jjbar 1s linear infinite;
}
@keyframes jjbar{ to{ background-position:-200% 0; } }

/* MODALS (login/register) */
.jj-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:1300;
}
.jj-modal.open{
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.55);
}
.jj-modal__dialog{
  width:min(560px,92vw);
  background:#fff;
  color:#111;
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  overflow:hidden;
}
.jj-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.12);
}
.jj-modal__head .custom-logo-link img{
  height:28px;
  width:auto;
}
.jj-modal__brand{
  display:flex;
  align-items:center;
  gap:10px;
  overflow:hidden;
}
.jj-modal__brand .site-title{
  font-size:18px !important;
  color:#111 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.jj-modal__body{ padding:18px; }

/* login form */
#loginform label{ display:block; margin-bottom:6px; font-weight:600; color:#111; }
#loginform input[type="text"],
#loginform input[type="password"]{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--jj-accent);
  background:#fff;
  color:#111;
  margin-bottom:10px;
}
#loginform input[type="submit"]{
  background:var(--jj-accent);
  color:#111;
  border:0;
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}
#loginform .forgetmenot label{
  display:flex;
  gap:8px;
  align-items:center;
  font-weight:500;
  color:#111;
}

/* USER AVATAR DROPDOWN */
.jj-actions .jj-user-menu button,
.jj-actions .jj-user-menu a{
  all:unset;
  box-sizing:border-box;
}

.jj-user-menu{
  position:relative;
  display:flex;
  align-items:center;
}

.jj-actions .jj-user-chip{
  display:inline-flex !important;
  align-items:center !important;
  gap:0.5rem !important;
  padding:6px 12px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,0.18) !important;
  background:rgba(0,0,0,0.35) !important;
  color:#F3EEE4 !important;
  font-size:0.85rem !important;
  line-height:1 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
  transition:background .2s ease,border-color .2s ease,transform .15s ease !important;
}
.jj-actions .jj-user-chip:hover{
  background:rgba(0,0,0,0.65) !important;
  border-color:#CA8B54 !important;
  transform:translateY(-1px);
}

.jj-avatar{
  width:28px !important;
  height:28px !important;
  border-radius:999px !important;
  overflow:hidden !important;
  flex-shrink:0 !important;
}
.jj-avatar img{
  width:100% !important;
  height:100% !important;
  border-radius:999px !important;
  object-fit:cover !important;
  display:block !important;
}

.jj-user-name{
  max-width:130px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:500;
  color:#F3EEE4 !important;
}

.jj-caret{
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  opacity:0.7;
}

.jj-header .jj-actions .jj-user-dropdown{
  position:absolute;
  top:100%;
  right:0;
  margin-top:8px;
  min-width:180px;
  background:#ffffff !important;
  border-radius:12px !important;
  padding:0 !important;
  box-shadow:0 14px 35px rgba(0,0,0,0.15) !important;
  z-index:999;
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  overflow:hidden !important;
}

/* Show on hover */
.jj-user-menu:hover .jj-user-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.jj-header .jj-actions .jj-user-dropdown,
.jj-header .jj-actions .jj-user-dropdown *{
  color:#111111 !important;
  opacity:1 !important;
  text-shadow:none !important;
  mix-blend-mode:normal !important;
}

.jj-header .jj-actions .jj-user-dropdown a{
  display:block !important;
  padding:10px 14px !important;
  font-size:0.9rem !important;
  text-decoration:none !important;
  background:transparent !important;
}
.jj-header .jj-actions .jj-user-dropdown a + a{
  border-top:1px solid rgba(0,0,0,0.06) !important;
}
.jj-header .jj-actions .jj-user-dropdown a:last-child{
  border-bottom:none !important;
}
.jj-header .jj-actions .jj-user-dropdown a:hover{
  background:#f4f4f4 !important;
  color:#000000 !important;
}

/* Mobile chip tweaks */
@media (max-width:768px){
  .jj-actions .jj-user-chip{
    padding:4px 9px !important;
    gap:0.35rem !important;
  }
  .jj-user-name{ max-width:80px; }
}

/* RESPONSIVE HEADER */
@media (max-width:1024px){
  .jj-hamburger{ display:block; }
  .jj-nav,
  .jj-actions{ display:none; }
  .jj-header .jj-row{
    justify-content:center;
  }
  .jj-logo{
    margin:0 auto;
  }
}

@media (max-width:560px){
  .jj-logo img{ height:28px; }
}

/* ======= YOUR ADDITIONAL CSS (pasted as-is) ======= */

/***** HEADER LAYOUT — logo left, nav+icons right *****/
.jj-header .jj-row{display:flex!important;align-items:center!important;gap:16px!important;}
.jj-logo{order:1!important;flex:0 0 auto!important;position:relative!important;z-index:1;}
.jj-nav{order:2!important;margin-left:auto!important;position:relative!important;z-index:2;}
.jj-actions{order:3!important;margin-left:16px!important;display:flex!important;align-items:center!important;gap:14px!important;}

/* Small brand */
.jj-header .custom-logo-link img,
.jj-header .jj-logo img{height:18px!important;width:auto!important;}
.jj-header .jj-logo .site-title{
  font-family:'Cormorant Garamond',serif!important;
  font-size:15px!important;max-width:150px!important;line-height:1!important;letter-spacing:.12em!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;color:#fff!important;
}

/* Icon buttons: hide stray labels, keep icons visible */
.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
.jj-icon-btn{font-size:0!important;line-height:0!important;}
.jj-icon-btn .jj-icon{width:22px;height:22px;display:inline-block;}

/***** PRIMARY NAV — underline & caret (no conflict) *****/
/* Keep top-level links inline, underline via ::after */
.jj-nav .jj-menu{display:flex!important;gap:30px!important;flex-wrap:nowrap!important;justify-content:flex-end!important;}
.jj-nav .jj-menu > li > a{position:relative;display:inline-block;padding:4px 0;}
.jj-nav .jj-menu > li > a::after{
  content:"";position:absolute;left:0;bottom:-8px;height:3px;width:0;background:#CA8B54;transition:width .25s ease;
}
.jj-nav .jj-menu > li.current-menu-item > a::after,
.jj-nav .jj-menu > li > a:hover::after{width:36px;}

/* Submenu parents: caret via ::before, keep underline via ::after (same as others) */
.jj-nav .menu-item-has-children > a{padding-right:26px !important;}
.jj-nav .menu-item-has-children > a::before{
  content:"";
  position:absolute;
  right:4px !important;
  top:50%;
  transform:translateY(-45%) rotate(45deg);
  width:8px;height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  opacity:.7;
  pointer-events:none;
}

/***** SUBMENU — Light mode dropdown *****/
.jj-nav .menu-item-has-children{position:relative;}
.jj-nav .sub-menu{
  position:absolute;left:0;top:calc(100% + 12px);
  background:#fff!important;color:#111!important;z-index:6;
  border:1px solid rgba(0,0,0,.12)!important;border-radius:12px!important;
  padding:8px;min-width:230px;box-shadow:0 12px 30px rgba(0,0,0,.15);
  display:none;
}
.jj-nav li:hover > .sub-menu,
.jj-nav li:focus-within > .sub-menu{display:block;}
.jj-nav .sub-menu li{list-style:none;}
.jj-nav .sub-menu a{display:block;padding:10px 12px;color:#111!important;border-radius:8px;text-decoration:none;}
.jj-nav .sub-menu a:hover{background:rgba(0,0,0,.06);}
.jj-nav .sub-menu a::after{display:none!important;}

/***** SEARCH POPOVER (light mode & on top) *****/
.jj-search-popover{
  z-index:1400;background:#fff!important;border:1px solid rgba(0,0,0,.12)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.15)!important;border-radius:14px!important;
  padding:10px 10px 12px!important;
}
.jj-search-input{
  background:#fff;color:#111;border:1px solid #CA8B54;border-radius:999px;padding:12px 14px;
}
.jj-search-input:focus{box-shadow:0 0 0 3px rgba(202,139,84,.18);outline:0;}

/***** LOGIN MODAL — black header + light body + Create Account link *****/
.jj-modal.open{background:rgba(0,0,0,.55);backdrop-filter:blur(2px);}
.jj-modal__dialog{width:min(640px,92vw)!important;border-radius:18px!important;box-shadow:0 20px 60px rgba(0,0,0,.35)!important;overflow:hidden;}
.jj-modal__head{
  background:#000!important;color:#fff!important;padding:14px 64px!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
}
.jj-modal__brand .custom-logo-link img{height:24px!important;width:auto!important;}
.jj-modal__brand .site-title{color:#fff!important;font-size:18px!important;letter-spacing:.14em!important;line-height:1;margin:0;}
.jj-modal__head .jj-close{position:absolute!important;right:14px!important;top:50%!important;transform:translateY(-50%)!important;color:#fff!important;opacity:.9;}
.jj-modal__body{padding:22px 26px 26px!important;}
#loginform label{font-weight:700;margin-bottom:8px;}
#loginform input[type="text"],#loginform input[type="password"]{
  background:#fff;color:#111;border:1px solid #CA8B54;border-radius:12px;padding:12px 14px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
#loginform input:focus{border-color:#CA8B54;outline:0;box-shadow:0 0 0 3px rgba(202,139,84,.18);}
#loginform .forgetmenot label{display:flex;align-items:center;gap:.5rem;font-weight:600;}
#loginform input[type="submit"]{
  background:#CA8B54;color:#111;border:0;border-radius:999px;padding:10px 16px;font-weight:700;cursor:pointer;
  box-shadow:0 8px 20px rgba(202,139,84,.25);
}
#loginform input[type="submit"]:hover{filter:brightness(.95);}
#loginform input[type="submit"]:active{transform:translateY(1px);}

/* Create Account link style (will be injected by JS) */
#jj-create-account{
  display:flex;justify-content:center;gap:.5rem;margin-top:14px;
  opacity:0;transform:translateY(6px);transition:opacity .25s ease, transform .25s ease;
  font-weight:600;color:#403C37;
}
#jj-create-account a{color:#CA8B54;text-decoration:none;border-bottom:1px solid rgba(202,139,84,.35);padding-bottom:1px;}
#jj-create-account a:hover{filter:brightness(.95);}
#jj-create-account.show{opacity:1;transform:none;}

/* Center brand perfectly in modal header using grid */
.jj-modal__head{
  display:grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items:center !important; justify-items:center !important;
  background:#000 !important; color:#fff !important;
}
.jj-modal__brand{ grid-column: 2 / 3 !important; }
.jj-modal__head .jj-close{ grid-column: 3 / 4 !important; justify-self:end !important; color:#fff !important; }

/***** JJ MINI CART & DRAWERS – your long CSS already pasted above *****/
/* (keeping as-is; not repeating to keep file reasonable size) */



/* ======================================
   MOBILE HEADER OVERRIDE
   - Mobile: only hamburger + logo visible
   ====================================== */
@media (max-width:1024px){
  .jj-nav{display:none !important;}
  .jj-actions{display:none !important;}
  .jj-header .jj-row{
    justify-content:center !important;
  }
  .jj-logo{
    margin:0 auto !important;
  }
}

/* ======================================
   ONLINE SVG ICONS (ICONIFY CDN)
   ====================================== */

/* Generic icon box */
.jj-icon{
  width:22px;
  height:22px;
  display:inline-block;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

/* Reset old mask-based styles */
.jj-i-search,
.jj-i-heart,
.jj-i-cart,
.jj-i-user,
.jj-i-logout{
  -webkit-mask:none !important;
  mask:none !important;
  background-color:transparent !important;
}

/* Search icon */
.jj-i-search{
  background-image:url("https://api.iconify.design/mdi/magnify.svg?color=white");
}

/* Heart / wishlist icon */
.jj-i-heart{
  background-image:url("https://api.iconify.design/mdi/heart-outline.svg?color=white");
}

/* Cart icon */
.jj-i-cart{
  background-image:url("https://api.iconify.design/mdi/cart-outline.svg?color=white");
}

/* User / account icon */
.jj-i-user{
  background-image:url("https://api.iconify.design/mdi/account-circle-outline.svg?color=white");
}

/* Logout icon (CDN — para consistent) */
.jj-i-logout{
  background-image:url("https://api.iconify.design/mdi/logout-variant.svg?color=white");
}



/* ==== PATCH: mobile drawer quick links + logout icon ==== */

.jj-mobile-quick-links{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:20px;
}

.jj-mobile-quick-link{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.04);
  color:#F9FAFB;
  text-decoration:none;
  font-size:14px;
}
.jj-mobile-quick-link span{
  color:inherit;
}
.jj-mobile-quick-link .jj-icon{
  width:18px;
  height:18px;
  background:#F9FAFB;
}
.jj-mobile-quick-link--logout{
  border-color:rgba(239,68,68,0.55);
}
.jj-mobile-quick-link--logout .jj-icon{
  background:#F9FAFB;
}

/* Mobile menu submenus */
.jj-mobile-menu{
  list-style:none;
  padding:0;
  margin:0;
}
.jj-mobile-menu > li > a{
  display:block;
  padding:10px 0;
  color:#F9FAFB;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,0.08);
  font-weight:500;
}
.jj-mobile-menu .sub-menu{
  list-style:none;
  margin:4px 0 8px 0;
  padding-left:14px;
  border-left:1px solid rgba(255,255,255,0.16);
}
.jj-mobile-menu .sub-menu li{
  list-style:none;
}
.jj-mobile-menu .sub-menu a{
  display:block;
  padding:6px 0;
  color:rgba(249,250,251,0.78);
  font-size:14px;
  border-bottom:none;
}

/* Login/Register modal – cleaner auth switch */
.jj-auth-switch{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:6px;
  font-size:13px;
  font-weight:500;
  color:#403C37;
}
.jj-auth-switch a{
  color:#CA8B54;
  text-decoration:none;
  border-bottom:1px solid rgba(202,139,84,0.45);
  padding-bottom:1px;
}
.jj-auth-switch a:hover{
  filter:brightness(.95);
}

/* Slightly tighten login/register fields on mobile */
@media (max-width:640px){
  #loginform input[type="text"],
  #loginform input[type="password"]{
    padding:10px 12px;
  }
  #loginform input[type="submit"]{
    width:100%;
    justify-content:center;
    display:inline-flex;
  }
}

/* ==============================
   SIDEBAR DRAWER (Cart + Wishlist)
   ============================== */

#jjCart.jj-side-drawer,
#jjWishlist.jj-side-drawer {
  width: 380px;
  max-width: 100%;
  background: #ffffff;
  color: #111827;
  display: flex;
  flex-direction: column;
}

#jjCart .jj-drawer-head,
#jjWishlist .jj-drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #000000;
  color: #ffffff;
}

#jjCart .jj-drawer-head h3,
#jjWishlist .jj-drawer-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#jjCart .jj-drawer-body,
#jjWishlist .jj-drawer-body {
  padding: 16px 20px 12px;
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
}

.jj-side-drawer .jj-close {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}

/* ==============================
   CART ITEMS – CLEAN LAYOUT
   ============================== */

#jjCartBody .woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card container */
#jjCartBody .woocommerce-mini-cart-item {
  position: relative;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* Link (image + product name) as flex row */
#jjCartBody .woocommerce-mini-cart-item > a:not(.remove) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: #111827;
}

/* Thumbnail */
#jjCartBody .woocommerce-mini-cart-item > a:not(.remove) img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Product name text (flex item after image) */
#jjCartBody .woocommerce-mini-cart-item > a:not(.remove) span,
#jjCartBody .woocommerce-mini-cart-item > a:not(.remove) {
  font-size: 14px;
  font-weight: 500;
}

/* Remove icon (x) */
#jjCartBody .woocommerce-mini-cart-item a.remove {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 14px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #111827 !important;
  border: 1px solid #e5e7eb;
}

#jjCartBody .woocommerce-mini-cart-item a.remove:hover {
  background: #111827;
  color: #ffffff !important;
}

/* Qty × Price line, aligned under product name */
#jjCartBody .woocommerce-mini-cart-item .quantity {
  margin-top: 4px;
  margin-left: 92px;  /* 80px image + 12px gap */
  font-size: 13px;
  color: #4b5563;
}

/* Subtotal line */
#jjCartBody .woocommerce-mini-cart__total.total {
  margin-top: 10px;
  margin-bottom: 6px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

/* ==============================
   CART FOOTER BUTTONS (sticky)
   ============================== */

#jjCartBody .woocommerce-mini-cart__buttons.buttons {
  position: sticky;
  bottom: 0;
  margin: 8px -20px -8px;
  padding: 10px 20px 14px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
}

#jjCartBody .woocommerce-mini-cart__buttons .button {
  flex: 1 1 auto;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid #111827;
  background: transparent;
  color: #111827;
  text-decoration: none;
}

#jjCartBody .woocommerce-mini-cart__buttons .button:hover {
  background: #111827;
  color: #ffffff;
}

/* Checkout as primary */
#jjCartBody .woocommerce-mini-cart__buttons .checkout {
  background: #111827;
  color: #ffffff;
}

#jjCartBody .woocommerce-mini-cart__buttons .checkout:hover {
  opacity: 0.9;
}

/* ==============================
   WISHLIST – SAME CARD FEEL
   (YITH Wishlist shortcode)
   ============================== */

/* Remove table header */
#jjWishlistBody .wishlist_table thead {
  display: none;
}

#jjWishlistBody .wishlist_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Card container per row */
#jjWishlistBody .wishlist_table tbody tr {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

#jjWishlistBody .wishlist_table td {
  border: none;
  padding: 0;
}

/* Thumbnail */
#jjWishlistBody .wishlist_table .product-thumbnail img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Right text block */
#jjWishlistBody .wishlist_table .product-name,
#jjWishlistBody .wishlist_table .product-price,
#jjWishlistBody .wishlist_table .product-stock-status,
#jjWishlistBody .wishlist_table .product-add-to-cart {
  display: block;
}

#jjWishlistBody .wishlist_table .product-name a {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
}

#jjWishlistBody .wishlist_table .product-name a:hover {
  text-decoration: underline;
}

/* Price under name */
#jjWishlistBody .wishlist_table .product-price {
  margin-top: 4px;
  font-size: 13px;
  color: #4b5563;
}

/* Remove from wishlist (x) */
#jjWishlistBody .wishlist_table .product-remove a.remove_from_wishlist {
  position: absolute;
}

/* >>> HIDE "My wishlist" + "Share on:" ONLY inside sidebar drawer <<< */
#jjWishlistBody .wishlist-title,
#jjWishlistBody .wishlist-title-with-form,
#jjWishlistBody .yith-wcwl-header,
#jjWishlistBody .wishlist-subtitle,
#jjWishlistBody .yith-wcwl-share,
#jjWishlistBody .yith-wcwl-share-title{
  display:none !important;
}

/* ✅ Auth modal system uses [hidden] + .is-active (not .open) */
.jj-modal{ display:block !important; }
.jj-modal[hidden]{ display:none !important; }
