/* =============================================
   GLOBAL CUSTOM STYLES
   ============================================= */

/* Add your custom global styles here */

.woocommerce form .form-row .input-text, 
/* .woocommerce form .form-row select, */
.woocommerce form .form-row textarea {
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid rgba(17, 27, 67, 0.16);
  background: #fff;
  color: var(--navy, #111b43);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.woocommerce form .form-row .input-text:focus,
/* .woocommerce form .form-row select:focus, */
.woocommerce form .form-row textarea:focus {
  outline: 0;
  border-color: var(--gold, #a28e66);
}

/* Form Row Container */
.woocommerce form .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

/* Form Row Labels */
.woocommerce form .form-row label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy, #111b43);
  font-weight: 600;
}

#place_order_sidebar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 40px;
  border-radius: 999px; /* var(--r-pill) */
  background: var(--navy, #111b43);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  margin-bottom: 18px;
  border: none;
  cursor: pointer;
}

#place_order_sidebar:hover {
  background: var(--navy-deep, #091a44);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 27, 67, 0.25);
}

/* WooCommerce Select2 Overrides */
.woocommerce form .form-row .select2-container .select2-selection--single {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(17, 27, 67, 0.16);
  background: #fff;
  color: var(--navy, #111b43);
  font-family: inherit;
  font-size: 14.5px;
  height: auto;
  transition: border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
  display: flex;
  align-items: center;
}

.woocommerce form .form-row .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce form .form-row .select2-container--default .select2-selection--single:focus {
  border-color: var(--gold, #a28e66);
}

.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: normal;
  color: var(--navy, #111b43);
}

.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 16px;
  top: 0;
}

/* ====== PDP LAYOUT ====== */
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  padding: 140px 0 96px;
  align-items: start;
}
@media (max-width: 980px) {
  .pdp { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
}

/* Gallery */
.gallery { position: sticky; top: 110px; }
@media (max-width: 980px) { .gallery { position: static; } }
.gallery .main {
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-warm);
  position: relative;
}
.gallery .main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s var(--ease); }
.gallery .main video { width: 100%; height: 100%; object-fit: cover; display: none; }
.gallery .main.video-mode img { display: none; }
.gallery .main.video-mode video { display: block; }
.gallery .main .badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--cream); color: var(--navy);
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
}
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; }
.thumbs button {
  aspect-ratio: 1/1; border-radius: 16px; overflow: hidden;
  border: 1.5px solid transparent; padding: 0;
  transition: border-color var(--t) var(--ease);
  position: relative;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--gold); }
.thumbs button:hover { border-color: var(--gold-soft); }
.thumbs button .play-ov {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 27, 67, 0.35);
}
.thumbs button .play-ov .tri {
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(251, 248, 243, 0.92);
  display: inline-flex; align-items: center; justify-content: center;
}
.thumbs button .play-ov .tri::after {
  content: ''; margin-left: 3px;
  border-left: 9px solid var(--navy);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Info column */
.pinfo .collection {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 16px;
  display: inline-block;
}
.pinfo h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500; font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.05; letter-spacing: -0.015em;
  color: var(--navy); margin: 0 0 14px;
}
.pinfo .rating { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.pinfo .rating .stars { color: var(--gold); letter-spacing: 3px; margin-right: 8px; }
.pinfo .price-line { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.pinfo .price {
  font-family: 'Playfair Display', serif;
  font-size: 34px; font-weight: 500; color: var(--navy);
}
.pinfo .tax-note { font-size: 12px; color: var(--ink-soft); margin-bottom: 26px; }
.pinfo .desc { font-size: 15px; line-height: 1.8; color: var(--ink-soft); max-width: 480px; margin: 0 0 32px; }

.opt-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy); font-weight: 600; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.opt-label a { font-size: 11px; color: var(--gold); border-bottom: 1px solid var(--gold); letter-spacing: 0.1em; }
.metal-row { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.metal-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: var(--r-pill);
  border: 1px solid rgba(17, 27, 67, 0.16); color: var(--ink-soft);
  font-size: 13px; font-weight: 500;
  transition: all var(--t) var(--ease);
}
.metal-chip .dot { width: 14px; height: 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.metal-chip:hover { border-color: var(--gold); color: var(--navy); }
.metal-chip.checked, .metal-chip.selected { border-color: var(--navy); color: var(--navy); box-shadow: 0 6px 16px rgba(17, 27, 67, 0.08); }

.buy-row { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }

/* WooCommerce Quantity Input Styling */
.buy-row .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 27, 67, 0.16);
  border-radius: var(--r-pill);
  overflow: hidden;
  height: 54px;
  background: transparent;
}
.buy-row .quantity .qty-selector {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.buy-row .quantity input.qty,
.buy-row .quantity input.qty-input {
  width: 48px;
  min-width: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 500;
  color: var(--navy);
  font-size: 15px;
  padding: 0;
  height: 100%;
  -moz-appearance: textfield;
}
.buy-row .quantity input.qty::-webkit-outer-spin-button,
.buy-row .quantity input.qty::-webkit-inner-spin-button,
.buy-row .quantity input.qty-input::-webkit-outer-spin-button,
.buy-row .quantity input.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.buy-row .quantity button.qty-minus,
.buy-row .quantity button.qty-plus {
  width: 42px;
  height: 100%;
  font-size: 20px;
  font-weight: 300;
  color: var(--navy);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.buy-row .quantity button.qty-minus:hover,
.buy-row .quantity button.qty-plus:hover {
  background: var(--navy); color: #fff;
}

/* Add to Cart Button */
.buy-row .single_add_to_cart_button { 
  flex: 1; 
  min-width: 220px;
  height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--navy-deep, #0a0f22); color: #fff;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  border: none; cursor: pointer; transition: all var(--t) var(--ease);
}
.buy-row .single_add_to_cart_button:hover { 
  background: var(--ink, #1a1c2a); 
  box-shadow: 0 8px 40px rgba(28, 36, 64, 0.12);
}
.buy-row .single_add_to_cart_button .arrow {
  display: inline-block;
  margin-left: 8px;
}
.buy-row .single_add_to_cart_button .arrow::after {
  content: '→';
}
.buy-row .single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Wishlist button */
.yith-wcwl-add-to-wishlist { margin: 0 0 28px 0 !important; }
.yith-wcwl-add-to-wishlist a { 
  display: inline-flex !important; align-items: center; gap: 10px;
  font-size: 11px !important; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy) !important; font-weight: 600;
}
.yith-wcwl-add-to-wishlist a:before {
  content: ''; display: inline-block; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310162c' stroke-width='1.5'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform var(--t) var(--ease);
}
.yith-wcwl-add-to-wishlist a:hover { color: var(--gold) !important; }
.yith-wcwl-add-to-wishlist a:hover:before { 
  transform: scale(1.1); 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08d57' stroke-width='1.5'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}
.yith-wcwl-add-to-wishlist.exists a:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b08d57' stroke='%23b08d57' stroke-width='1.5'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}
.yith-wcwl-add-to-wishlist .yith-wcwl-icon { display: none !important; }
.yith-wcwl-add-to-wishlist a span { display: inline-block !important; margin: 0 !important; }

.viewing-link { margin-bottom: 34px; display: inline-block; }

.pdp-trust { margin-bottom: 40px; }

.pdp-accs { border-top: 1px solid rgba(162, 142, 102, 0.25); }

/* Recs */
.recs { padding: 40px 0 130px; }
.recs .head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 48px; gap: 32px; }
.recs h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500; font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05; color: var(--navy); margin: 12px 0 0;
  letter-spacing: -0.01em;
}
.recs h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.recs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1100px) { .recs-grid { grid-template-columns: repeat(2, 1fr); } }

/* Product Cards & Recommendations Section */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #a28e66);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.text-link {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy, #111b43);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 27, 67, 0.2);
  padding-bottom: 4px;
  transition: border-color var(--t) var(--ease);
}
.text-link:hover {
  border-bottom-color: var(--navy, #111b43);
}

.product {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product .imgbox {
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-warm, #fbf8f3);
}
.product .imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.product:hover .imgbox img {
  transform: scale(1.05);
}
.product .info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.product .name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy, #111b43);
  margin: 0 0 6px 0;
  line-height: 1.3;
}
.product .karat {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft, #6b7280);
  font-weight: 500;
}
.product .price {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy, #111b43);
  white-space: nowrap;
}
.product .wishlist {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(251, 248, 243, 0.88); backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, color 0.3s ease; color: var(--navy);
  border: none;
  cursor: pointer;
}
.product .wishlist:hover { background: #fff; color: var(--gold); }
.product .wishlist.active { color: var(--gold); }
.product .wishlist.active svg { fill: var(--gold); }

/* Wishlist button */
.single-product .yith-add-to-wishlist-button-block a,
.single-product .yith-add-to-wishlist-button-block button,
.single-product .yith-wcwl-add-to-wishlist a,
.single-product .yith-wcwl-add-button a,
.single-product .yith-wcwl-wishlistaddedbrowse a,
.single-product .yith-wcwl-wishlistexistsbrowse a {
    background: #000 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    font-size: 14px !important;
}

.single-product .yith-add-to-wishlist-button-block a:hover,
.single-product .yith-add-to-wishlist-button-block button:hover,
.single-product .yith-wcwl-add-to-wishlist a:hover,
.single-product .yith-wcwl-add-button a:hover,
.single-product .yith-wcwl-wishlistaddedbrowse a:hover,
.single-product .yith-wcwl-wishlistexistsbrowse a:hover {
    background: #333 !important;
    color: #fff !important;
}

/* Product Card Wishlist Icon Only */
.card-product-wishlist .yith-add-to-wishlist-button-block a,
.card-product-wishlist .yith-wcwl-add-to-wishlist a,
.card-product-wishlist .yith-wcwl-wishlistaddedbrowse a,
.card-product-wishlist .yith-wcwl-wishlistexistsbrowse a {
    font-size: 0 !important; /* Hide raw text */
    color: transparent !important; /* Hide raw text */
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.95) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    line-height: 1 !important;
}

.card-product-wishlist .yith-add-to-wishlist-button-block a:hover,
.card-product-wishlist .yith-wcwl-add-to-wishlist a:hover,
.card-product-wishlist .yith-wcwl-wishlistaddedbrowse a:hover,
.card-product-wishlist .yith-wcwl-wishlistexistsbrowse a:hover {
    background: #fff !important;
    transform: scale(1.05) !important;
}

.card-product-wishlist .yith-wcwl-add-to-wishlist a span,
.card-product-wishlist .yith-wcwl-wishlistaddedbrowse a span,
.card-product-wishlist .yith-wcwl-wishlistexistsbrowse a span {
    display: none !important; /* Hide span text */
}

.card-product-wishlist .yith-wcwl-add-to-wishlist a i,
.card-product-wishlist .yith-wcwl-add-to-wishlist a .yith-wcwl-icon,
.card-product-wishlist .yith-wcwl-wishlistaddedbrowse a i,
.card-product-wishlist .yith-wcwl-wishlistaddedbrowse a .yith-wcwl-icon,
.card-product-wishlist .yith-wcwl-wishlistexistsbrowse a i,
.card-product-wishlist .yith-wcwl-wishlistexistsbrowse a .yith-wcwl-icon,
.card-product-wishlist .yith-add-to-wishlist-button-block a svg,
.card-product-wishlist .yith-wcwl-add-to-wishlist a svg,
.card-product-wishlist .yith-wcwl-wishlistaddedbrowse a svg,
.card-product-wishlist .yith-wcwl-wishlistexistsbrowse a svg {
    font-size: 16px !important;
    width: 18px !important;
    height: 18px !important;
    color: #e91e63 !important; /* Pink color */
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.card-product-wishlist .yith-add-to-wishlist-button-block,
.card-product-wishlist .yith-wcwl-add-to-wishlist {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}