/*
Theme Name:   My Child Theme
Template:     hello-elementor
Version:      1.0
*/

/* ==============================
   TOKENS
============================== */
:root{
  --brand-yellow:#ffcd00;
  --brand-navy:#222C62;

  --text:#111319;
  --muted:#6b7280;
  --bg:#ffffff;

  --shadow-sm:0 10px 28px rgba(17,19,25,.08);
  --shadow-md:0 22px 60px rgba(17,19,25,.14);

  --radius:22px;
  --transition:.22s cubic-bezier(.22,.61,.36,1);
  --gap:28px;

  /* Bigger image area (premium) */
  --img-ratio: 1 / 1;     /* square makes image area taller */
  --img-pad: 18px;

  /* Typography */
  --title-size:20px;
  --title-weight:700;

  --btn-size:14px;
  --btn-weight:700;
}

/* ==============================
   GLOBAL
============================== */
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Open Sans',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{text-decoration:none}
a:hover{opacity:.92}

/* ==============================
   GLOBAL PRODUCTS GRID
============================== */
.woocommerce ul.products,
.woocommerce-page ul.products,
.elementor-widget-woocommerce-products ul.products{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap: clamp(16px, 2.2vw, 28px) !important;
  margin:0;
  padding:0;
  align-items:stretch;
  box-sizing:border-box;
  grid-auto-rows:1fr;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after{
  content:none !important;
  display:none !important;
}

/* ==============================
   SHARED CARD DESIGN (Global + Slider)
============================== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.elementor-widget-woocommerce-products ul.products li.product,
.paxLuxuryCard{
  background:#ffffff;
  border-radius:var(--radius);
  overflow:hidden;

  border:1px solid rgba(34,44,98,.10);
  box-shadow:var(--shadow-sm);

  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display:flex;
  flex-direction:column;
  height:100%;
  min-width:0;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
.elementor-widget-woocommerce-products ul.products li.product:hover,
.paxLuxuryCard:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
  border-color:rgba(34,44,98,.18);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.elementor-widget-woocommerce-products ul.products li.product{
  float:none !important;
  width:auto !important;
  margin:0 !important;
  list-style:none;
  position:relative;
  padding-bottom:20px;
}

/* ==============================
   GLOBAL PRODUCT IMAGE (BIGGER)
   Do NOT style the Woo link box, only style the image
============================== */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link,
.elementor-widget-woocommerce-products ul.products li.product a.woocommerce-LoopProduct-link{
  display:block;
  padding:0;
  overflow:visible;
  background:transparent;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link img,
.elementor-widget-woocommerce-products ul.products li.product a.woocommerce-LoopProduct-link img{
  width:100%;
  max-width:100%;

  aspect-ratio: var(--img-ratio);
  object-fit: cover;      /* makes image look larger and premium */
  display:block;

  padding:0;
  background:#ffffff;
}

/* ==============================
   GLOBAL TITLE (BLACK) + EQUAL HEIGHT
============================== */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.elementor-widget-woocommerce-products ul.products li.product .woocommerce-loop-product__title{
  font-size:var(--title-size);
  font-weight:var(--title-weight);
  color:#000000 !important;
  line-height:1.22;
  letter-spacing:.12px;

  padding:18px 18px 0 18px;
  margin:0;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;

  min-height: calc(1.22em * 2);
}

/* Remove underline globally */
.woocommerce ul.products li.product a,
.woocommerce-page ul.products li.product a,
.elementor-widget-woocommerce-products ul.products li.product a{
  text-decoration:none !important;
}

/* Hide price if you want same design like slider */
.woocommerce ul.products li.product .price{
  display:none !important;
}

/* ==============================
   GLOBAL BUTTON (SAME AS SLIDER)
============================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.add_to_cart_button,
.single_add_to_cart_button{
  background:var(--brand-navy) !important;
  border:1px solid var(--brand-navy) !important;
  color:#ffffff !important;

  border-radius:18px;
  padding:14px 16px;

  font-size:var(--btn-size);
  font-weight:var(--btn-weight);
  letter-spacing:.35px;
  text-transform:uppercase;

  text-decoration:none !important;

  box-shadow:0 16px 40px rgba(17,19,25,.12);
  transition:transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover{
  background:var(--brand-yellow) !important;
  border-color:var(--brand-yellow) !important;
  color:var(--brand-navy) !important;

  transform:translateY(-2px);
  box-shadow:0 22px 60px rgba(17,19,25,.16);
}

/* Button always bottom and full width */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.elementor-widget-woocommerce-products ul.products li.product .button{
  margin-top:auto !important;
  margin-left:18px;
  margin-right:18px;
  width:calc(100% - 36px);
  text-align:center;
}

/* Sale badge */
.woocommerce span.onsale{
  background:var(--brand-yellow);
  color:var(--brand-navy);
  font-weight:800;
  border-radius:999px;
  padding:6px 12px;
  font-size:13px;
  top:12px;
  left:12px;
  min-height:auto;
  min-width:auto;
  line-height:1;
  box-shadow:0 10px 22px rgba(255,205,0,.30);
  z-index:2;
}

/* ==============================
   Responsive columns
============================== */
@media (min-width: 1201px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .elementor-widget-woocommerce-products ul.products{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 993px) and (max-width: 1200px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .elementor-widget-woocommerce-products ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 992px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .elementor-widget-woocommerce-products ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 481px) and (max-width: 768px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .elementor-widget-woocommerce-products ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px){
  :root{
    --title-size:19px;
    --btn-size:14px;
    --img-ratio: 6 / 5; /* still tall but fits phone */
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .elementor-widget-woocommerce-products ul.products{
    grid-template-columns: 1fr;
    gap: 14px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    padding:16px 16px 0 16px;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce-page ul.products li.product .button,
  .elementor-widget-woocommerce-products ul.products li.product .button{
    width:calc(100% - 32px);
    margin-left:16px;
    margin-right:16px;
    border-radius:16px;
    padding:13px 14px;
  }
}

/* Prevent Woo width helpers */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product{
  width: auto !important;
  clear: none !important;
}

/* ==============================
   SLIDER (same design)
============================== */
.paxSliderWrap{
  width:100%;
  position:relative;
}

.paxProductSlider{
  position:relative;
  padding: 6px 12px 14px 12px;
  box-sizing:border-box;
}

.paxProductSlider .swiper-wrapper{
  align-items:stretch;
}

.paxProductSlider .swiper-slide{
  height:auto;
  display:flex;
}

.paxLuxuryImg{
  display:block;
  background:#ffffff;
  aspect-ratio: var(--img-ratio);
  overflow:hidden;
}

.paxLuxuryImg img{
  width:100%;
  height:100%;
  object-fit: cover; /* match global */
  display:block;
}

.paxLuxuryBody{
  padding: 18px 18px 20px 18px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.paxLuxuryTitle{
  font-size:var(--title-size);
  font-weight:var(--title-weight);
  color:#000000 !important;
  line-height:1.22;
  letter-spacing:.12px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;

  min-height: calc(1.22em * 2);
  text-decoration:none !important;
  font-family: inherit !important;
}

.paxLuxuryBtn{
  margin-top:auto;
  width:100%;
  display:inline-flex;
  justify-content:center;
  align-items:center;

  border-radius:18px;
  padding:14px 16px;

  font-size:var(--btn-size);
  font-weight:var(--btn-weight);
  letter-spacing:.35px;
  text-transform:uppercase;

  background:var(--brand-navy);
  color:#ffffff;

  border:1px solid var(--brand-navy);
  box-shadow:0 16px 40px rgba(17,19,25,.12);

  transition:transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-decoration:none !important;
  font-family: inherit !important;
}

.paxLuxuryBtn:hover{
  background:var(--brand-yellow);
  border-color:var(--brand-yellow);
  color:var(--brand-navy);
  transform:translateY(-2px);
  box-shadow:0 22px 60px rgba(17,19,25,.16);
}

/* Slider arrows */
.paxProductSlider .paxArrow{
  position:absolute;
  top:38%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border-radius:999px;

  background:var(--brand-navy) !important;
  color:var(--brand-yellow) !important;
  border:2px solid rgba(255,205,0,.45) !important;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:26px;
  font-weight:800;

  cursor:pointer;
  box-shadow:0 18px 50px rgba(17,19,25,.18);
  z-index:9999;

  transition:transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.paxProductSlider .paxArrow:hover{
  transform:translateY(-50%) scale(1.06);
  box-shadow:0 25px 70px rgba(17,19,25,.22);
  opacity:.98;
}

.paxProductSlider .paxArrow.swiper-button-disabled{
  opacity:.35 !important;
  cursor:not-allowed;
  transform:translateY(-50%) !important;
  box-shadow:none !important;
}

.paxPrev{left:10px;}
.paxNext{right:10px;}
.paxArrowIcon{line-height:1;}

@media (max-width: 767px){
  .paxProductSlider{
    padding-left: 10px;
    padding-right: 10px;
  }
  .paxProductSlider .paxArrow{
    width:46px;
    height:46px;
    font-size:22px;
  }
  .paxLuxuryBody{
    padding: 16px 16px 18px 16px;
  }
}
