/* ==========================================================================
   Cignet - Shop Pages Stylesheet
   Covers: products.html, product-single.html, cart.html, checkout.html,
           order-received.html
   ========================================================================== */

/* Shared quantity control ------------------------------------------------ */
.qty-input {
  display: inline-flex;
  align-items: center;
  height: 50px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  background: var(--white);
  padding: 0 6px;
}
.qty-input button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.qty-input button:hover {
  background: var(--cream);
}
.qty-input input {
  width: 44px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--heading);
  outline: 0;
  -moz-appearance: textfield;
}
.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 01. Shop Archive (products.html) --------------------------------------- */
.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* Sticky filter panel (desktop): scrolls on its own when taller than the viewport */
@media (min-width: 992px) {
  .shop-sticky {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb), .25) transparent;
    padding-right: 4px;
    margin-right: -4px;
  }
}
.shop-widget {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
}
.shop-widget-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}
.widget-search {
  position: relative;
}
.widget-search input {
  width: 100%;
  padding: 13px 48px 13px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--divider);
  background: var(--white);
  color: var(--heading);
  font-size: 15px;
  outline: 0;
}
.widget-search input:focus {
  border-color: var(--primary);
}
.widget-search button {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--primary);
}
.category-filter-list li + li {
  margin-top: 8px;
}
.category-filter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  text-align: left;
  transition: all .25s var(--ease);
}
.category-filter-btn span.cat-count {
  font-size: 13px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--primary);
}
.category-filter-btn:hover,
.category-filter-btn.active {
  background: var(--primary);
  color: var(--white);
}
.category-filter-btn:hover span.cat-count,
.category-filter-btn.active span.cat-count {
  background: rgba(255, 255, 255, .18);
  color: var(--white);
}

.price-range-wrap .form-range {
  accent-color: var(--primary);
}
.price-range-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 14px;
  color: var(--heading);
  font-weight: 500;
}

.metal-filter-list li + li {
  margin-top: 10px;
}
.metal-filter-list .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chip {
  display: inline-block;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--divider);
  color: var(--heading);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.tag-chip:hover,
.tag-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.sidebar-promo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.sidebar-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), .15) 0%, rgba(var(--primary-rgb), .9) 100%);
}
.sidebar-promo-body {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.sidebar-promo-body span {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.sidebar-promo-body h4 {
  color: var(--white);
  font-size: 26px;
  margin: 8px 0 16px;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  margin-bottom: 32px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}
.shop-results-text {
  margin: 0;
  font-size: 15px;
  color: var(--heading);
  font-weight: 500;
}
.shop-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.view-switch {
  display: inline-flex;
  gap: 6px;
}
.view-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--white);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
}
.view-btn.active,
.view-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.shop-sort-select {
  width: auto;
  min-width: 210px;
  padding: 10px 38px 10px 18px;
  border-radius: var(--radius-pill);
}

.products-grid-wrap.products-list-view .col {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
}
.products-grid-wrap.products-list-view .product-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
}
.products-grid-wrap.products-list-view .product-thumb {
  margin-bottom: 0;
  aspect-ratio: 1 / 1;
}
.products-grid-wrap.products-list-view .product-info {
  text-align: left;
}
.products-grid-wrap.products-list-view .product-price {
  justify-content: flex-start;
  margin-bottom: 12px;
}
.product-list-desc {
  display: none;
  font-size: 15px;
  margin-top: 10px;
  max-width: 560px;
}
.products-grid-wrap.products-list-view .product-list-desc {
  display: block;
}
.shop-empty-state {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 56px 28px;
  text-align: center;
}

/* 02. Product Single (product-single.html) ------------------------------- */
.product-gallery {
  position: relative;
}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 14px;
  position: relative;
}
.gallery-main .swiper-slide img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all .3s var(--ease);
}
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-prev:hover,
.gallery-next:hover {
  background: var(--primary);
  color: var(--white);
}
.gallery-thumbs .swiper-slide {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .65;
  transition: all .3s var(--ease);
  background: var(--cream);
}
.gallery-thumbs .swiper-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-thumbs .swiper-slide-thumb-active {
  border-color: var(--primary);
  opacity: 1;
}

.product-summary-cat {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 10px;
}
.product-summary-title {
  font-size: 42px;
  margin-bottom: 14px;
}
.product-summary-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.product-summary-rating .rating {
  margin-bottom: 0;
}
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(60, 141, 90, .12);
  color: var(--success);
  font-size: 13px;
  font-weight: 500;
}
.product-summary-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-heading);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--divider);
}
.product-summary-price ins {
  text-decoration: none;
  font-size: 34px;
  font-weight: 600;
  color: var(--primary);
}
.product-summary-price del {
  font-size: 22px;
  color: #9aa19e;
}
.product-save-badge {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--primary);
}
.option-group {
  margin-bottom: 22px;
}
.option-group-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 10px;
}
.option-group-label span {
  font-weight: 400;
  color: var(--text);
}
.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.option-chips input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--divider);
  background: var(--white);
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.option-chips input[type="radio"]:checked + .option-chip-label {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.metal-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .15);
}
.metal-dot.dot-yellow { background: #e5c158; }
.metal-dot.dot-rose { background: #d99b8a; }
.metal-dot.dot-white { background: #e3e5e6; }

.purchase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
}
.purchase-wish-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--white);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
}
.purchase-wish-btn:hover,
.purchase-wish-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.product-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.product-trust-card {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--heading);
}
.product-trust-card i {
  display: block;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 6px;
}

.product-meta-list {
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-size: 14px;
}
.product-meta-list li + li {
  margin-top: 8px;
}
.product-meta-list strong {
  color: var(--heading);
  min-width: 96px;
  display: inline-block;
}
.product-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.product-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
}
.product-share a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.product-tabs-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--divider);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table th,
.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
}
.specs-table th {
  width: 240px;
  color: var(--heading);
  font-weight: 500;
  background: var(--cream);
}
.order-details-card .specs-table thead th:first-child {
  width: auto;
}
.review-item {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}
.review-item:last-child {
  border-bottom: 0;
}
.review-item img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.review-head h4 {
  font-size: 19px;
}
.review-head span {
  font-size: 13px;
  color: #7c8682;
}
.star-picker {
  display: inline-flex;
  gap: 6px;
}
.star-picker button {
  border: 0;
  background: none;
  padding: 2px;
  font-size: 18px;
  color: var(--gold);
  cursor: pointer;
}

/* 03. Cart (cart.html) --------------------------------------------------- */
.cart-table-wrap {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table thead th {
  background: var(--cream);
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  padding: 18px 20px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
}
.cart-table tbody td {
  padding: 20px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}
.cart-table tbody tr:last-child td {
  border-bottom: 0;
}
.cart-product {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-product img {
  width: 82px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--cream);
  flex-shrink: 0;
}
.cart-product-title {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--heading);
  display: block;
  margin-bottom: 4px;
}
.cart-product-meta {
  font-size: 13px;
  color: var(--text);
}
.cart-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
}
.cart-remove:hover {
  background: var(--error);
  border-color: var(--error);
  color: var(--white);
}
.coupon-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.coupon-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.coupon-form input {
  width: 230px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--divider);
  outline: 0;
}
.coupon-form input:focus {
  border-color: var(--primary);
}
.cart-totals-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: 110px;
}
.cart-totals-box h3 {
  font-size: 26px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}
.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.totals-row.totals-grand {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 0;
  padding-bottom: 6px;
}
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  font-size: 14px;
}
.shipping-options label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  cursor: pointer;
}
.cart-empty {
  text-align: center;
  padding: 70px 28px;
  background: var(--cream);
  border-radius: var(--radius);
}
.cart-empty i {
  font-size: 46px;
  color: var(--primary);
  margin-bottom: 18px;
}

/* 04. Checkout (checkout.html) ------------------------------------------- */
.checkout-notice {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  margin-bottom: 16px;
  border-left: 3px solid var(--primary);
  font-size: 15px;
}
.checkout-notice a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checkout-collapse-box {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}
.checkout-card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 34px;
}
.checkout-card h3 {
  font-size: 26px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}
.order-summary-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 34px;
  position: sticky;
  top: 110px;
}
.order-summary-card h3 {
  font-size: 26px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}
.order-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
}
.order-line-item strong {
  color: var(--heading);
}
.payment-methods {
  margin: 22px 0;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}
.payment-method-item {
  border-bottom: 1px solid var(--divider);
}
.payment-method-item:last-child {
  border-bottom: 0;
}
.payment-method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  color: var(--heading);
}
.payment-method-head .form-check-input {
  margin-right: 10px;
}
.payment-desc {
  padding: 0 18px 18px 44px;
  font-size: 14px;
  color: var(--text);
  display: none;
}
.payment-method-item.active .payment-desc {
  display: block;
}

/* 05. Order Received (order-received.html) ------------------------------- */
.order-success-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 50px 32px;
  text-align: center;
  margin-bottom: 36px;
}
.order-success-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.order-success-box h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
.order-overview-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
}
.overview-cell span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin-bottom: 6px;
}
.overview-cell strong {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--heading);
}
.order-details-card,
.address-card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}
.order-details-card h3,
.address-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}

/* 06. Responsive --------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .product-summary-title { font-size: 36px; }
  .order-overview-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
  .cart-totals-box,
  .order-summary-card {
    position: static;
  }
  .product-trust-grid {
    grid-template-columns: 1fr;
  }
  .products-grid-wrap.products-list-view .product-card {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }
}

@media (max-width: 767.98px) {
  .products-grid-wrap.products-list-view .product-card {
    grid-template-columns: 1fr;
  }
  .product-tabs-panel,
  .checkout-card,
  .order-summary-card,
  .order-details-card,
  .address-card {
    padding: 24px;
  }
  .specs-table th {
    width: 140px;
  }
  .order-overview-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .cart-table thead {
    display: none;
  }
  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }
  .cart-table tbody tr {
    padding: 18px;
    border-bottom: 1px solid var(--divider);
  }
  .cart-table tbody tr:last-child {
    border-bottom: 0;
  }
  .cart-table tbody td {
    padding: 8px 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .cart-table tbody td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--heading);
    font-size: 14px;
  }
  .cart-table tbody td.td-product {
    display: block;
  }
  .cart-table tbody td.td-product::before {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .product-summary-title { font-size: 30px; }
  .order-overview-strip { grid-template-columns: 1fr; }
  .coupon-form input { width: 100%; }
}
