/* VIP Peptides Shop */
body.woocommerce-shop,
body.post-type-archive-product {
  --vip-navy: #0A192F;
  --vip-border: #DCE3EC;
  --vip-light: #F5F7FA;

  color: var(--vip-navy);
  background: linear-gradient(
    115deg,
    #DDE3F0 0%,
    #F3F4F7 45%,
    #E8EAF1 68%,
    #DCE4F0 100%
  ) !important;
}

/* Inner wrappers ko transparent rakhein */
body.woocommerce-shop #content,
body.post-type-archive-product #content,
body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.woocommerce-shop main,
body.post-type-archive-product main {
  background: transparent !important;
}

/* Header white rahe */
body.woocommerce-shop .site-header,
body.post-type-archive-product .site-header,
body.woocommerce-shop #masthead,
body.post-type-archive-product #masthead,
body.woocommerce-shop .elementor-location-header,
body.post-type-archive-product .elementor-location-header {
  background: #fff !important;
}

/* Hide default title */
body.post-type-archive-product .woocommerce-products-header__title {
  display: none !important;
}

/* Intro and search */
body.post-type-archive-product .vip-shop-intro {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

body.post-type-archive-product .vip-shop-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #718096;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}

body.post-type-archive-product .vip-shop-intro h1 {
  margin: 0 0 12px;
  color: var(--vip-navy);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
}

body.post-type-archive-product .vip-shop-intro > p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: #64748B;
  font-size: 16px;
  line-height: 1.7;
}

/* Product search */
body.post-type-archive-product .vip-shop-search {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

body.post-type-archive-product .vip-shop-search form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0;
}

body.post-type-archive-product .vip-shop-search input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 18px;
  color: var(--vip-navy);
  background: #fff;
  border: 1px solid #D5DDE6;
  border-radius: 7px;
  font: inherit;
}

body.post-type-archive-product .vip-shop-search input[type="search"]:focus {
  outline: none;
  border-color: var(--vip-navy);
  box-shadow: 0 0 0 3px rgba(10, 25, 47, .09);
}

body.post-type-archive-product .vip-shop-search button,
body.post-type-archive-product .vip-shop-search input[type="submit"] {
  min-height: 52px;
  padding: 0 24px;
  color: #fff;
  background: var(--vip-navy);
  border: 1px solid var(--vip-navy);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

body.post-type-archive-product .vip-shop-search button:hover,
body.post-type-archive-product .vip-shop-search input[type="submit"]:hover {
  color: var(--vip-navy);
  background: #fff;
  transform: translateY(-2px);
}

/* Results count */
body.woocommerce-shop .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count {
  color: #64748B;
  font-size: 14px;
}

/* Sorting dropdown */
body.woocommerce-shop .woocommerce-ordering select.orderby,
body.post-type-archive-product .woocommerce-ordering select.orderby,
body.woocommerce-shop select.orderby,
body.post-type-archive-product select.orderby {
  width: 232px;
  min-height: 46px;
  padding: 0 42px 0 15px;
  color: var(--vip-navy);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A192F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  border: 1px solid var(--vip-border);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(10, 25, 47, .04);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

body.woocommerce-shop .woocommerce-ordering select.orderby:hover,
body.post-type-archive-product .woocommerce-ordering select.orderby:hover {
  border-color: var(--vip-navy);
}

body.woocommerce-shop .woocommerce-ordering select.orderby:focus,
body.post-type-archive-product .woocommerce-ordering select.orderby:focus {
  outline: none;
  border-color: var(--vip-navy);
  box-shadow: 0 0 0 3px rgba(10, 25, 47, .1);
}

/* Product grid */
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 0 !important;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after {
  display: none !important;
  content: none !important;
}

/* Product cards */
body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product {
  display: flex;
  float: none !important;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 14px;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid var(--vip-border);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(10, 25, 47, .06);
  animation: vip-product-enter .5s ease both;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.woocommerce-shop ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover {
  transform: translateY(-5px);
  border-color: #B9C6D6;
  box-shadow: 0 14px 30px rgba(10, 25, 47, .11);
}

body.woocommerce-shop ul.products li.product a.woocommerce-LoopProduct-link,
body.post-type-archive-product ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: var(--vip-navy);
  text-decoration: none;
}

/* Product images */
body.woocommerce-shop ul.products li.product a img,
body.post-type-archive-product ul.products li.product a img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 0 16px !important;
  border-radius: 7px;
  background: var(--vip-light);
  transition: transform .4s ease, filter .3s ease;
}

body.woocommerce-shop ul.products li.product:hover a img,
body.post-type-archive-product ul.products li.product:hover a img {
  transform: scale(1.04);
  filter: brightness(1.03);
}

/* Product title */
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.8em;
  margin: 0 0 8px !important;
  padding: 0;
  color: var(--vip-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* Price */
body.woocommerce-shop ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price {
  margin: auto 0 14px !important;
  color: var(--vip-navy);
  font-size: 16px;
  font-weight: 600;
}

body.woocommerce-shop ul.products li.product .price del,
body.post-type-archive-product ul.products li.product .price del {
  color: #8994A3;
  font-weight: 400;
}

body.woocommerce-shop ul.products li.product .price ins,
body.post-type-archive-product ul.products li.product .price ins {
  color: var(--vip-navy);
  text-decoration: none;
}

/* Add to cart button */
body.woocommerce-shop ul.products li.product a.button,
body.post-type-archive-product ul.products li.product a.button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 0 !important;
  padding: 13px 12px;
  color: #fff;
  background: var(--vip-navy);
  border: 1px solid var(--vip-navy);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

body.woocommerce-shop ul.products li.product a.button:hover,
body.post-type-archive-product ul.products li.product a.button:hover {
  color: var(--vip-navy);
  background: #C4CED8;
  border-color: #C4CED8;
  transform: translateY(-2px);
}

/* Sale badge */
body.woocommerce-shop ul.products li.product .onsale,
body.post-type-archive-product ul.products li.product .onsale {
  top: 20px;
  left: 20px;
  right: auto;
  min-height: auto;
  padding: 7px 10px;
  color: #fff;
  background: var(--vip-navy);
  border-radius: 5px;
  font-size: 11px;
}

/* Pagination */
body.woocommerce-shop nav.woocommerce-pagination,
body.post-type-archive-product nav.woocommerce-pagination {
  margin-top: 42px;
}

body.woocommerce-shop nav.woocommerce-pagination ul,
body.post-type-archive-product nav.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  border: 0;
}

body.woocommerce-shop nav.woocommerce-pagination ul li,
body.post-type-archive-product nav.woocommerce-pagination ul li {
  border: 0;
}

body.woocommerce-shop nav.woocommerce-pagination ul li a,
body.woocommerce-shop nav.woocommerce-pagination ul li span,
body.post-type-archive-product nav.woocommerce-pagination ul li a,
body.post-type-archive-product nav.woocommerce-pagination ul li span {
  display: flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--vip-navy);
  border: 1px solid var(--vip-border);
  border-radius: 5px;
  transition: background .2s ease, color .2s ease;
}

body.woocommerce-shop nav.woocommerce-pagination ul li span.current,
body.woocommerce-shop nav.woocommerce-pagination ul li a:hover,
body.post-type-archive-product nav.woocommerce-pagination ul li span.current,
body.post-type-archive-product nav.woocommerce-pagination ul li a:hover {
  color: #fff;
  background: var(--vip-navy);
  border-color: var(--vip-navy);
}

/* Entrance animation */
@keyframes vip-product-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  body.woocommerce-shop ul.products,
  body.post-type-archive-product ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body.post-type-archive-product .vip-shop-intro {
    margin-bottom: 32px;
  }

  body.post-type-archive-product .vip-shop-intro > p {
    font-size: 14px;
  }

  body.woocommerce-shop ul.products,
  body.post-type-archive-product ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.woocommerce-shop ul.products li.product,
  body.post-type-archive-product ul.products li.product {
    padding: 10px;
  }

  body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
  body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
  }

  body.woocommerce-shop ul.products li.product .price,
  body.post-type-archive-product ul.products li.product .price {
    font-size: 14px;
  }

  body.woocommerce-shop ul.products li.product a.button,
  body.post-type-archive-product ul.products li.product a.button {
    padding: 11px 8px;
    font-size: 10px;
  }

  body.woocommerce-shop .woocommerce-ordering select.orderby,
  body.post-type-archive-product .woocommerce-ordering select.orderby {
    width: 190px;
    min-height: 42px;
    font-size: 13px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body.post-type-archive-product .vip-shop-search form {
    flex-direction: column;
  }

  body.post-type-archive-product .vip-shop-search button,
  body.post-type-archive-product .vip-shop-search input[type="submit"] {
    width: 100%;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  body.woocommerce-shop ul.products li.product,
  body.post-type-archive-product ul.products li.product,
  body.woocommerce-shop ul.products li.product *,
  body.post-type-archive-product ul.products li.product * {
    animation: none !important;
    transition: none !important;
  }
}