/* ===========================================================================
   HOMESARA THEME — COMMON (common.css)
   Shared chrome used on every page: topbar, header, catnav, footer,
   mobile nav toggle, dropdowns/panels, toast, and their responsive rules.
   Extracted verbatim from index.html (original source of truth).
   =========================================================================== */

  /* ===== TOP BAR ===== */
  .topbar{background:var(--topbar);border-bottom:1px solid var(--line);}
  .topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:38px;font-size:12.5px;color:var(--brown-800);}
  .topbar .left{display:flex;gap:26px;align-items:center;}
  .topbar .item{display:flex;align-items:center;gap:6px;font-weight:500;}
  .topbar .icon{width:14px;height:14px;color:var(--gold-dark);}

  /* ===== HEADER ===== */
  header.main{border-bottom:1px solid var(--line);background:var(--white);}
  .header-inner{display:flex;align-items:center;gap:34px;padding-top:18px;padding-bottom:18px;}
  .logo{display:flex;align-items:center;gap:12px;flex-shrink:0;}
  .logo-mark{width:46px;height:46px;flex-shrink:0;}
  .logo img.logo-mark{width:auto;height:28px;max-width:160px;object-fit:contain;}
  .logo-text{line-height:1;}
  .logo-text .name{font-family:var(--font-heading);font-weight:700;font-size:23px;letter-spacing:1.5px;color:var(--brown-900);}
  .logo-text .tag{display:block;font-family:var(--font-body);font-size:10.5px;letter-spacing:5px;color:var(--gold-dark);margin-top:3px;font-weight:600;}
  .search-bar{flex:1;display:flex;max-width:560px;border:1.5px solid var(--line);border-radius:3px;overflow:hidden;}
  .search-bar input{border:none;outline:none;flex:1;padding:12px 16px;font-size:13.5px;font-family:inherit;color:var(--ink);background:var(--cream);}
  .search-bar input::placeholder{color:var(--muted);}
  .search-bar button{background:var(--brown-800);border:none;padding:0 20px;color:var(--white);}
  .header-actions{display:flex;align-items:center;gap:28px;margin-left:auto;flex-shrink:0;}
  .header-actions .action,
  .header-actions .action > a{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--brown-900);font-weight:500;text-decoration:none;}
  .header-actions .action .icon{color:var(--gold-dark);width:20px;height:20px;}
  .header-actions .action .lbl small{display:block;color:var(--muted);font-weight:400;font-size:11px;}
  .header-actions .action .lbl b{font-weight:600;font-size:13px;}

  /* ===== NAV ===== */
  nav.catnav{background:var(--white);border-bottom:1px solid var(--line);}
  .catnav-inner{display:flex;align-items:center;gap:34px;height:52px;}
  .all-cat{
    background:var(--brown-900);color:var(--white);height:34px;padding:0 16px;
    display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;
    border-radius:2px;white-space:nowrap;
  }
  .catnav-links{display:flex;gap:30px;flex:1;}
  .catnav-links a{font-size:13.5px;font-weight:500;color:var(--ink);white-space:nowrap;}
  .catnav-links a:hover{color:var(--gold-dark);}
  .catnav-links a.current{color:var(--gold-dark);font-weight:700;}
  .catnav-links a.sale{color:var(--red);font-weight:600;}


  /* ----- FOOTER ----- */
  /* ===== FOOTER ===== */
  footer{background:#fbf9f5;border-top:1px solid var(--line);padding-top:56px;}
  .foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.3fr 1.3fr;gap:30px;padding-bottom:40px;}
  .foot-grid h5{font-size:12.5px;letter-spacing:1px;font-weight:600;color:var(--ink);margin:0 0 18px;text-transform:uppercase;}
  .foot-logo .logo{margin-bottom:14px;}
  .foot-grid p{font-size:12.5px;color:var(--muted);line-height:1.7;margin:0 0 18px;max-width:220px;}
  .foot-social{display:flex;gap:10px;}
  .foot-social a{width:32px;height:32px;border-radius:50%;background:var(--cream-2);display:flex;align-items:center;justify-content:center;}
  .foot-social .icon{width:15px;height:15px;color:var(--brown-800);}
  .foot-grid ul li{margin-bottom:11px;font-size:12.5px;color:var(--muted);}
  .foot-contact li{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px;font-size:12.5px;color:var(--muted);line-height:1.5;}
  .foot-contact .icon{width:15px;height:15px;color:var(--gold-dark);flex-shrink:0;margin-top:1px;}
  .news-input{display:flex;border:1px solid var(--line);border-radius:3px;overflow:hidden;background:var(--white);margin-bottom:24px;}
  .news-input input{flex:1;border:none;outline:none;padding:11px 14px;font-size:12.5px;font-family:inherit;}
  .news-input button{background:var(--brown-800);border:none;color:var(--white);padding:0 16px;}
  .foot-bottom{border-top:1px solid var(--line);padding:20px 0;display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);}
  /* justify-content:center matters once .foot-bottom switches to
     flex-direction:column on mobile - as a flex-column container it
     stretches .links to full width, so text-align:center on the parent
     (which only affects inline/text content) doesn't center the two link
     anchors inside it; centering .links' own flex content does. Harmless
     on desktop, where .links is already just as wide as its own content. */
  .foot-bottom .links{display:flex;gap:16px;justify-content:center;}

  .whatsapp-fab{
    position:fixed;bottom:26px;right:26px;width:56px;height:56px;border-radius:50%;
    background:var(--green);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(0,0,0,.22);z-index:50;
  }
  .whatsapp-fab .icon{width:28px;height:28px;color:var(--white);}

  /* generic photo placeholder patterns */
  .ph{position:relative;width:100%;height:100%;background-size:cover;background-position:center;}
  .ph-1{background:linear-gradient(135deg,#e7d9c2,#c9ad83 55%,#a9825b);}
  .ph-2{background:linear-gradient(135deg,#d9c6ad,#b99a72 60%,#8a6a4d);}
  .ph-3{background:linear-gradient(135deg,#ded1ba,#c1a878 55%,#96795a);}
  .ph-4{background:linear-gradient(135deg,#e2d3ba,#bfa276 55%,#8f7452);}
  .ph-5{background:linear-gradient(135deg,#d6c4a8,#ad8c64 55%,#7c6144);}
  .ph-6{background:linear-gradient(135deg,#e9dcc4,#cbae82 55%,#9f7d54);}

  footer .foot-logo-inner{display:flex;align-items:center;gap:10px;}


  /* ----- MOBILE NAV TOGGLE ----- */
  /* ================= MOBILE NAV TOGGLE (base, hidden on desktop) ================= */
  .mobile-menu-btn{
    display:none;align-items:center;justify-content:center;width:38px;height:38px;
    background:var(--cream-2);border:none;border-radius:4px;color:var(--brown-900);
    margin-left:auto;flex-shrink:0;
  }


  /* ----- RESPONSIVE (shared + page-specific mixed in source; kept intact for fidelity) ----- */
  /* ===================================================================
     RESPONSIVE
  =================================================================== */
  @media (max-width:1180px){
    .cat-grid{grid-template-columns:repeat(3,1fr);}
    .video-grid{grid-template-columns:repeat(3,1fr);}
    .why-grid{grid-template-columns:1fr;gap:34px;}
    .why-feats{flex-wrap:wrap;justify-content:flex-start;row-gap:24px;}
    .why-feats .f{max-width:160px;}
    .brand-row{grid-template-columns:repeat(3,1fr);row-gap:14px;}
  }

  @media (max-width:960px){
    .wrap{padding:0 18px;}
    .section{padding:52px 0;}

    .topbar .item:nth-child(3),.topbar .item:nth-child(4){display:none;}

    .header-inner{flex-wrap:wrap;gap:14px;padding-top:14px;padding-bottom:14px;justify-content:space-between;}
    .search-bar{order:3;flex:1 1 100%;max-width:100%;}
    .header-actions{gap:16px;margin-left:auto;}
    .header-actions .action .lbl{display:none;}
    .header-actions .action .icon{width:22px;height:22px;}

    .mobile-menu-btn{display:flex;}
    .catnav-inner{position:relative;flex-wrap:nowrap;}
    .catnav-links{
      display:none;position:absolute;top:calc(100% + 1px);left:-18px;right:-18px;
      flex-direction:column;gap:0;background:var(--white);border-top:1px solid var(--line);
      box-shadow:0 16px 30px rgba(0,0,0,.12);z-index:60;max-height:70vh;overflow-y:auto;
    }
    .catnav-links.open{display:flex;}
    .catnav-links a{padding:14px 22px;border-bottom:1px solid var(--line);}

    .hero-swiper{height:520px;}
    .hero-content h1{font-size:33px;}
    .slide-content{max-width:90%;padding:40px 0 76px;}
    .slide-tag{display:none;}
    .hero-feats{gap:18px;flex-wrap:wrap;}

    .cat-grid{grid-template-columns:repeat(2,1fr);}
    .video-grid{grid-template-columns:repeat(2,1fr);}
    .test-grid{grid-template-columns:1fr;gap:16px;}
    .brand-row{grid-template-columns:repeat(3,1fr);}

    .visualizer{grid-template-columns:1fr;padding:32px;}
    .vis-imgs{margin-top:16px;}

    .cta-inner{grid-template-columns:1fr 1fr;gap:26px 20px;}
    .cta-center{grid-column:1/-1;order:-1;padding-bottom:6px;}

    .foot-grid{grid-template-columns:1fr 1fr;gap:32px 20px;}
    .foot-logo{grid-column:1/-1;}
  }

  @media (max-width:640px){
    .section{padding:42px 0;}
    .section-head h2{font-size:20px;}
    .eyebrow{font-size:11.5px;letter-spacing:2px;}

    .topbar .wrap{gap:10px;}
    .topbar .left{gap:12px;overflow-x:auto;max-width:78%;-ms-overflow-style:none;scrollbar-width:none;}
    .topbar .left::-webkit-scrollbar{display:none;}
    .topbar .item{white-space:nowrap;font-size:10.5px;}
    .topbar .wrap > .item{display:none;}

    .logo-mark{width:36px;height:36px;}
    .logo img.logo-mark{width:auto;height:22px;max-width:120px;}
    .logo-text .name{font-size:18px;letter-spacing:1px;}
    .logo-text .tag{font-size:9px;letter-spacing:3.5px;}

    .all-cat{padding:0 12px;font-size:12px;}

    .hero-swiper{height:440px;}
    .hero-content h1{font-size:25px;}
    .hero-content p.sub{font-size:12.5px;}
    .hero-feats{gap:12px;margin-bottom:22px;}
    .hero-feats .f{font-size:10.5px;max-width:96px;}
    .hero-feats .f .icon{width:19px;height:19px;}
    .hero-btns{flex-wrap:wrap;gap:10px;}
    .hero-btns .btn{padding:12px 18px;font-size:10.5px;}
    .hero-swiper .swiper-button-prev,.hero-swiper .swiper-button-next{width:32px;height:32px;margin-top:-38px;--swiper-navigation-size:12px;}
    .hero-swiper .swiper-button-prev{left:12px;}
    .hero-swiper .swiper-button-next{right:12px;}
    .hero-swiper .swiper-pagination{bottom:70px !important;}

    .why{padding-top:52px;}
    .why h2{font-size:22px;}
    .why-feats .f{flex:1 1 42%;max-width:none;}

    .cat-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
    .cat-card h4{font-size:14px;}
    .cat-card .count{font-size:10.5px;}

    .visualizer h2{font-size:21px;}
    .vis-frame{width:130px;height:170px;}
    .vis-arrow{width:24px;height:24px;}

    .video-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
    .video-card .cap{font-size:11px;padding:10px;}
    .video-card .play{width:38px;height:38px;}

    .brand-row{grid-template-columns:repeat(2,1fr);}

    .cta-inner{grid-template-columns:1fr;text-align:center;gap:30px;padding:30px 0;}
    .cta-item{flex-direction:column;text-align:center;gap:10px;}
    .cta-center h3{font-size:19px;}

    .foot-grid{grid-template-columns:1fr;gap:30px;}
    .foot-bottom{flex-direction:column;gap:8px;text-align:center;}

    .whatsapp-fab{width:48px;height:48px;bottom:18px;right:18px;}
  }


  /* ----- INTERACTIVE ADD-ONS (dropdowns, wishlist/cart panels, toast, search) ----- */
  /* ===== COMMON: INTERACTIVE ADD-ONS ===== */
  .catnav-inner{position:relative;}
  .all-cat{cursor:pointer;}
  .all-cat .care{transition:transform .2s ease;}
  .all-cat.open .care{transform:rotate(180deg);}
  .all-cat-panel{
    display:none;position:absolute;top:calc(100% + 10px);left:0;background:var(--white);
    border:1px solid var(--line);border-radius:8px;box-shadow:0 20px 45px rgba(20,14,8,.18);
    padding:10px;min-width:260px;z-index:80;grid-template-columns:1fr 1fr;gap:2px;
  }
  .all-cat-panel.open{display:grid;}
  .all-cat-panel a{padding:10px 12px;font-size:13px;font-weight:500;color:var(--ink);border-radius:5px;white-space:nowrap;}
  .all-cat-panel a:hover{background:var(--cream-2);color:var(--gold-dark);}
  .all-cat-panel a.view-all-link{grid-column:1/-1;border-top:1px solid var(--line);margin-top:4px;padding-top:12px;font-weight:700;color:var(--brown-800);}
  .all-cat-panel a.sale{color:var(--red);font-weight:700;}
  @media (max-width:640px){ .all-cat-panel{grid-template-columns:1fr;left:-6px;right:-6px;min-width:0;} }

  .nav-dropdown{position:relative;}
  .nav-dropdown-trigger{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:500;color:var(--ink);cursor:pointer;white-space:nowrap;}
  .nav-dropdown-trigger:hover{color:var(--gold-dark);}
  .nav-dropdown-trigger .care{width:11px;height:11px;transition:transform .2s ease;}
  .nav-dropdown.open .nav-dropdown-trigger .care{transform:rotate(180deg);}
  .nav-dropdown-panel{display:none;position:absolute;top:calc(100% + 10px);left:0;background:var(--white);border:1px solid var(--line);border-radius:8px;box-shadow:0 20px 45px rgba(20,14,8,.18);padding:8px;min-width:190px;z-index:80;}
  .nav-dropdown.open .nav-dropdown-panel{display:block;}
  .nav-dropdown-panel a{display:block;padding:10px 14px;font-size:13px;font-weight:500;color:var(--ink);border-radius:5px;white-space:nowrap;}
  .nav-dropdown-panel a:hover{background:var(--cream-2);color:var(--gold-dark);}
  /* Inside the mobile stacked menu, an absolutely-positioned floating panel
     (the desktop hover-dropdown look) overlaps the following menu items
     instead of pushing them down - lay it out inline in the list instead. */
  @media (max-width:960px){
    .nav-dropdown-panel{
      display:none;position:static;background:var(--cream);border:none;border-radius:0;
      box-shadow:none;padding:0;min-width:0;width:100%;
    }
    .nav-dropdown.open .nav-dropdown-panel{display:block;}
    .nav-dropdown-panel a{padding:12px 22px 12px 36px;border-bottom:1px solid var(--line);border-radius:0;}
    .nav-dropdown-panel a:last-child{border-bottom:none;}
  }

  .action.wishlist-action{position:relative;}
  .wishlist-panel{
    display:none;position:absolute;top:calc(100% + 14px);right:0;background:var(--white);
    border:1px solid var(--line);border-radius:8px;box-shadow:0 20px 45px rgba(20,14,8,.18);
    padding:14px;min-width:230px;z-index:80;font-size:12.5px;color:var(--ink);
  }
  .wishlist-panel.open{display:block;}
  .wishlist-panel .wl-empty{color:var(--muted);line-height:1.6;}
  .wishlist-panel .wl-empty a{color:var(--gold-dark);font-weight:600;}
  .wishlist-panel .wl-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);}
  .wishlist-panel .wl-item:last-child{border-bottom:none;}
  .wishlist-panel .wl-item button{background:none;border:none;color:var(--muted);font-size:15px;line-height:1;padding:0 2px;}
  .wishlist-panel .wl-item button:hover{color:var(--red);}
  .wishlist-panel .wl-title{font-weight:700;font-size:12px;letter-spacing:.5px;text-transform:uppercase;color:var(--brown-800);margin-bottom:10px;}

  #toastWrap{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:999;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;}
  .toast-msg{
    background:var(--brown-900);color:var(--white);padding:12px 20px;border-radius:30px;
    font-size:13px;font-weight:500;box-shadow:0 12px 30px rgba(0,0,0,.25);
    opacity:0;transform:translateY(8px);transition:opacity .25s ease,transform .25s ease;max-width:88vw;text-align:center;
  }
  .toast-msg.show{opacity:1;transform:translateY(0);}

  .search-bar{position:relative;}
  .search-bar button{cursor:pointer;}

  /* ----- Live search suggestions dropdown (3+ characters, see common.js) ----- */
  .search-suggest-dropdown{
    position:fixed;z-index:999;
    background:var(--white);border:1px solid var(--line);border-radius:8px;
    box-shadow:0 20px 45px rgba(20,14,8,.18);max-height:420px;overflow-y:auto;
  }
  .search-suggest-item{display:flex;align-items:center;gap:12px;padding:10px 14px;text-decoration:none;color:var(--ink);border-bottom:1px solid var(--line);}
  .search-suggest-item:last-child{border-bottom:none;}
  .search-suggest-item:hover{background:var(--cream);}
  .search-suggest-item img{width:44px;height:44px;object-fit:cover;border-radius:6px;flex-shrink:0;}
  .ssi-info{display:flex;flex-direction:column;gap:2px;min-width:0;}
  .ssi-title{font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .ssi-price{font-size:12px;color:var(--gold-dark);font-weight:600;}


  /* ----- CART PANEL (id="cart-styles" block, shared across pages with a cart badge) ----- */
.header-actions .action{text-decoration:none;}
.action.cart-action{position:relative;cursor:pointer;}
.cart-badge{display:inline-flex;align-items:center;justify-content:center;background:var(--red,#b64a3a);color:#fff;font-size:10px;font-weight:700;border-radius:50%;min-width:16px;height:16px;padding:0 3px;margin-left:4px;vertical-align:middle;}
.cart-panel{display:none;position:absolute;top:calc(100% + 14px);right:0;background:var(--white,#fff);border:1px solid var(--line,#e7ded0);border-radius:8px;box-shadow:0 20px 45px rgba(20,14,8,.18);padding:14px;min-width:250px;z-index:90;font-size:12.5px;color:var(--ink,#2a211a);}
.cart-panel.open{display:block;}
.cart-panel .cp-title{font-weight:700;font-size:12px;letter-spacing:.5px;text-transform:uppercase;color:var(--brown-800,#4a3524);margin-bottom:10px;}
.cart-panel .cp-empty{color:var(--muted,#786f64);line-height:1.6;}
.cart-panel .cp-empty a{color:var(--gold-dark,#d3a25c);font-weight:600;}
.cart-panel .cp-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line,#e7ded0);}
.cart-panel .cp-item:last-child{border-bottom:none;}
.cart-panel .cp-item button,
.cart-panel .cp-item a{background:none;border:none;color:var(--muted,#786f64);font-size:15px;line-height:1;padding:0 2px;cursor:pointer;text-decoration:none;}
.cart-panel .cp-item button:hover,
.cart-panel .cp-item a:hover{color:var(--red,#b64a3a);}
.cart-panel .cp-total{border-top:1px solid var(--line,#e7ded0);margin-top:8px;padding-top:10px;display:flex;justify-content:space-between;font-weight:700;color:var(--brown-900,#3a2a1c);}
.cart-panel .cp-checkout{display:block;text-align:center;margin-top:12px;background:var(--brown-800,#4a3524);color:#fff;padding:10px;border-radius:4px;font-weight:600;font-size:12.5px;}

/* ===========================================================================
   ADD-TO-CART POPUP (top-right) — replaces WooCommerce's inline "View cart"
   link, which is hidden below.
   =========================================================================== */
.woocommerce a.added_to_cart,
.product-card a.added_to_cart { display:none !important; }

.hs-cart-popup{
  position:fixed; top:96px; right:24px; width:310px; max-width:92vw;
  background:var(--white); border:1px solid var(--line); border-radius:10px;
  box-shadow:0 20px 45px rgba(20,14,8,.20); padding:16px 16px 18px; z-index:1000;
  opacity:0; transform:translateX(24px); pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
}
.hs-cart-popup.show{ opacity:1; transform:translateX(0); pointer-events:auto; }
.hs-cart-popup .hs-cp-close{
  position:absolute; top:10px; right:12px; background:none; border:none;
  font-size:20px; line-height:1; color:var(--muted); cursor:pointer;
}
.hs-cart-popup .hs-cp-close:hover{ color:var(--red); }
.hs-cart-popup .hs-cp-head{
  display:flex; align-items:center; gap:8px; font-family:var(--font-heading);
  font-weight:700; font-size:14px; color:var(--brown-900); margin-bottom:14px;
}
.hs-cart-popup .hs-cp-tick{
  width:20px; height:20px; border-radius:50%; background:var(--green);
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
}
.hs-cart-popup .hs-cp-body{ display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.hs-cart-popup .hs-cp-body img{ width:56px; height:56px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.hs-cart-popup .hs-cp-name{ font-size:12.5px; color:var(--ink); line-height:1.45; }
.hs-cart-popup .hs-cp-actions{ display:flex; gap:8px; }
.hs-cart-popup .hs-cp-actions .btn{ flex:1; padding:10px 8px; font-size:11px; }
@media (max-width:640px){ .hs-cart-popup{ top:auto; bottom:20px; right:12px; left:12px; width:auto; } }

/* Gallery widgets (Current Grid / Masonry) render .page-hero AND the grid's
   own <section class="section"> inside the Elementor column that holds
   them, which constrains both to the column's (narrower) width instead of
   the true edge-to-edge bleed a normal page template gets. Break BOTH out
   to full viewport width equally, so their inner .wrap divs (same
   max-width, same padding) line up at the exact same left/right edge
   instead of the grid sitting inset further than the hero above it. */
.hs-widget .page-hero,
.hs-widget .section{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);}

/* Shared square-box pagination (matches the shop/blog pagination style),
   used by both gallery views (inc/gallery-render.php's
   homesara_gallery_pagination_html()). */
.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:42px;flex-wrap:wrap;}
.pagination a{width:36px;height:36px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;color:var(--brown-800);border:1px solid var(--line);cursor:pointer;}
.pagination a:hover{border-color:var(--gold-dark);color:var(--gold-dark);background:var(--cream);}
.pagination a.active{background:var(--brown-900);color:var(--white);border-color:var(--brown-900);cursor:default;}
.pagination .dots{border:none;width:auto;color:var(--muted);}

/* ===== DEMO WIDGET: Gallery Masonry (Pinterest-style) ===== */
.hs-masonry-demo-badge{display:inline-block;background:var(--gold-dark,#d3a25c);color:#fff;font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;padding:5px 12px;border-radius:20px;margin-bottom:14px;}
.hs-masonry{column-gap:14px;}
.hs-masonry-item{position:relative;break-inside:avoid;margin-bottom:14px;border-radius:8px;overflow:hidden;cursor:pointer;}
.hs-masonry-item img,.hs-masonry-item video{width:100%;height:auto;display:block;transition:transform .3s ease;}
.hs-masonry-item:hover img,.hs-masonry-item:hover video{transform:scale(1.03);}
.hs-masonry-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;pointer-events:none;transition:transform .2s ease,background .2s ease;}
.hs-masonry-item:hover .hs-masonry-play{transform:translate(-50%,-50%) scale(1.1);background:rgba(0,0,0,.7);}
@media (max-width:900px){ .hs-masonry{column-count:2 !important;column-gap:10px;} }
@media (max-width:520px){ .hs-masonry{column-gap:8px;} .hs-masonry-item{margin-bottom:8px;} }
.hs-masonry-loadmore-wrap{display:flex;justify-content:center;margin-top:32px;}
.hs-masonry-loadmore{min-width:180px;}
.hs-masonry-loadmore[disabled]{opacity:.6;cursor:default;}

/* ===== Generic Swiper controls, shared by every Homesara slider widget
   (category grid, videos, brands, testimonials, related products...).
   Widget-specific stylesheets (e.g. .hero-swiper in page-home.css) load
   after this and take precedence for their own look. ===== */
/* Swiper's own core CSS sets overflow:hidden on .swiper (so slides outside
   the viewport are clipped). Side padding on .hs-swiper itself carves out a
   safe, un-clipped gutter (padding is inside the box, so it's never clipped)
   for the arrows to sit OUTSIDE the card row - not overlapping the cards -
   matching a normal "cards inset, arrows in the margin" carousel look.
   "div.hs-swiper" (not just ".hs-swiper") is deliberate: Swiper's own CDN
   CSS also has a plain ".swiper{padding:0}" rule of equal specificity that
   loads AFTER this stylesheet, so it would otherwise silently win and zero
   this padding back out regardless of source order. */
div.hs-swiper{position:relative;padding:20px 54px 14px;}
/* Swiper's own default behaviour already stretches every slide in a row to
   the height of the tallest one (e.g. related-products cards with 1 vs
   2-line titles) - the card itself (a flex column) then needs height:100%
   to actually fill that stretched slide, or it floats at the top leaving an
   uneven gap below (bottoms not aligned). Scoped to the sliders whose cards
   are plain flexible-height blocks - NOT category/videos (fixed
   aspect-ratio artwork) or brands (fixed 80px height), where stretching
   would fight those intentional sizes instead of just closing a gap. */
.related-products-swiper .swiper-slide > *,
.test-grid-swiper .swiper-slide > *{height:100%;}
.hs-swiper .swiper-button-prev,
.hs-swiper .swiper-button-next{
  width:44px;height:44px;background:var(--brown-900);border-radius:50%;
  box-shadow:0 4px 14px rgba(0,0,0,.18);color:var(--white);
  top:calc(50% - 22px);margin-top:0;transition:background .2s ease,transform .2s ease;
}
.hs-swiper .swiper-button-prev:hover,
.hs-swiper .swiper-button-next:hover{background:var(--gold-dark);transform:scale(1.06);}
.hs-swiper .swiper-button-prev:after,
.hs-swiper .swiper-button-next:after{font-size:14px;font-weight:700;}
.hs-swiper .swiper-button-prev{left:0;}
.hs-swiper .swiper-button-next{right:0;}
.hs-swiper .swiper-button-disabled{opacity:.35;}
.hs-swiper .swiper-pagination{position:relative;margin-top:22px;}
.hs-swiper .swiper-pagination-bullet{background:var(--line);opacity:1;}
.hs-swiper .swiper-pagination-bullet-active{background:var(--gold-dark);}
@media (max-width:960px){
  div.hs-swiper{padding:16px 44px 12px;}
}
@media (max-width:640px){
  div.hs-swiper{padding-left:8px;padding-right:8px;padding-top:15px;padding-bottom:10px;}
  .hs-swiper .swiper-button-prev,.hs-swiper .swiper-button-next{display:none;}
}

/* ===== FILTER TABS + PRODUCT GRID (shared across pages) =====
   .filter-tabs/.product-grid/.product-card are used by several page-specific
   stylesheets (shop, cart, wishlist...) but those only load on their own
   page - defined here too, identically, so any widget built on these classes
   (e.g. the Product Category Filter widget) looks right on ANY page it's
   dropped on, not just the ones with a matching page-*.css. */
.filter-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:30px;}
.filter-tabs button{
  padding:9px 22px;border:1.5px solid var(--line);border-radius:30px;background:var(--white);
  font-size:13px;font-weight:600;color:var(--brown-800);cursor:pointer;white-space:nowrap;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.filter-tabs button.active{background:var(--brown-900);color:var(--white);border-color:var(--brown-900);}
.filter-tabs button:hover:not(.active){border-color:var(--gold-dark);color:var(--gold-dark);}

.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.product-card{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--white);display:flex;flex-direction:column;cursor:pointer;}
.product-card .thumb{position:relative;aspect-ratio:1/0.86;overflow:hidden;}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.product-card .wish{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;color:var(--brown-800);cursor:pointer;transition:background .2s ease,color .2s ease;}
.product-card .wish .icon{width:15px;height:15px;}
.product-card .wish.active{background:var(--red);color:var(--white);}
.product-card .wish.active svg{fill:currentColor;}
.product-card .info{padding:16px;flex:1;display:flex;flex-direction:column;}
.product-card h4{font-size:15px;line-height:1.3;margin:0 0 4px;font-weight:600;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.6em;}
.product-card .info h4 a{color:inherit;}
.product-card .info h4 a:hover{color:var(--gold-dark);}
.product-card .designs{font-size:12px;color:var(--muted);margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* WooCommerce's own woocommerce.css ships ".woocommerce div.product p.price"
   (color + font-size:1.25em, olive/oversized) at 3 classes + 2 elements of
   specificity - a plain ".product-card .price" (2 classes) loses to it. Every
   WooCommerce product node already carries a "product" class alongside our
   "product-card" one (see wc_product_class()), so ".product-card.product"
   matches the same element and brings us back to 3 classes + 2 elements -
   a tie our later cascade position wins, same fix pattern as the PDP's
   .pdp-price ins/del override. */
div.product-card.product p.price,
div.product-card.product span.price{font-size:12.5px;color:var(--ink);margin:0 0 14px;}
div.product-card.product p.price b{font-weight:700;}
div.product-card.product p.price .woocommerce-Price-amount{font-size:inherit;font-weight:inherit;color:inherit;}
div.product-card.product p.price ins{text-decoration:none;}
div.product-card.product p.price del{font-size:.8em;color:var(--muted);margin-left:6px;opacity:.8;text-decoration:line-through;}
.product-card .btn{width:100%;margin-top:auto;}
.product-card .add-to-cart-btn.added{opacity:.85;}
.product-card .add-to-cart-btn.loading{opacity:.7;}
.woocommerce div.product.product-card{padding:0;margin:0;text-align:left;width:auto;float:none;}
@media (max-width:1180px){ .product-grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:960px){ .product-grid{grid-template-columns:repeat(2,1fr);} .product-card .info{padding:12px;} .product-card h4{font-size:13.5px;} }
@media (max-width:640px){ .product-grid{grid-template-columns:repeat(2,1fr);gap:12px;} }
