/* ═══════════════════════════════════════════════════════════════════════════
   YX PRECIOUS METAL — REDESIGN CSS v3
   Colors: YX Green (#006771), Gold Yellow (#D4A72C), Super White (#FFFFFF)
   Fonts: Serif Bold headings, sans-serif body
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* YX Green (dark bluish emerald) */
  --yx: #006771; --yx-light: #008a96; --yx-dark: #004f57; --yx-50: #e6f5f7;
  /* Gold Yellow */
  --gold: #D4A72C; --gold-light: #F0D88C; --gold-dark: #B8860B; --gold-50: #FDF8EC;
  /* Super White + Neutrals */
  --white: #FFFFFF; --bg: #FFFFFF; --light-grey: #F7F7F7; --border: #E0E0E0;
  --text: #1A1A1A; --text-light: #555555; --text-muted: #999999;
  /* Red for cancel/clear/exit */
  --red: #DC3545; --red-dark: #B02A37;
  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-gold: 0 8px 24px rgba(0,103,113,.12);
  /* Radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 50px;
  /* Motion */
  --speed: 0.3s; --ease: cubic-bezier(.25,.46,.45,.94);
}

/* ═══ GLOBAL ═══ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important; font-weight: 400 !important; line-height: 1.6 !important;
  color: var(--text) !important; background: var(--bg) !important;
  margin: 0 !important; overflow-x: hidden !important; padding-bottom: 0 !important;
}
@media (max-width: 575.98px) { body { padding-bottom: 56px !important; } }

h1,h2,h3,h4,h5,h6,.main-title,.prodName,.modal-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important; color: var(--text) !important;
}
p,a,span,li,label,td,th,input,select,textarea,button,div {
  font-family: 'Source Sans 3', sans-serif !important;
}

a { color: var(--yx) !important; transition: color var(--speed) !important; }
a:hover { color: var(--yx-light) !important; text-decoration: none !important; }

.main-title, h2.main-title {
  font-size: 28px !important; font-weight: 700 !important;
  position: relative !important; padding-bottom: 12px !important; margin-bottom: 20px !important;
}
.main-title::after {
  content: '' !important; position: absolute !important;
  bottom: 0 !important; left: 50% !important; transform: translateX(-50%) !important;
  width: 40px !important; height: 3px !important; background: var(--yx) !important;
}

/* ═══ MAIN CONTENT ═══ */
main.main1 { margin-top: 100px !important; }
section { background: transparent !important; }
.pb-60px { padding-bottom: 56px !important; }

/* ═══ DESKTOP NAV BAR ═══ */
.desk-nav {
  display: none; background: var(--white);
  border-bottom: 2px solid var(--yx); box-shadow: var(--shadow-xs);
  position: sticky; top: 0; z-index: 1050; margin-top: -8px;
}
@media (min-width: 768px) { .desk-nav { display: block; } }
.desk-nav-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 720px; margin: 0 auto;
}
.desk-nav a {
  display: flex; align-items: center; gap: 8px; padding: 10px 24px;
  font-size: 13px; font-weight: 500; color: var(--text-light) !important;
  text-decoration: none !important; transition: all .2s;
  border-bottom: 3px solid transparent; letter-spacing: .03em;
}
.desk-nav a:hover, .desk-nav a.dn-active {
  color: var(--yx) !important; border-bottom-color: var(--gold); background: var(--yx-50);
}
.desk-nav a i { font-size: 14px; color: var(--yx); }

/* ═══ HERO CAROUSEL ═══ */
#header-carousel { border-radius: 0 !important; overflow: hidden !important; }
#header-carousel .carousel-item img { border-radius: 0 !important; width: 100%; object-fit: cover; }
#header-carousel .carousel-indicators li { width: 10px !important; height: 10px !important; border-radius: 50% !important; background: rgba(255,255,255,.5) !important; border: none !important; }
#header-carousel .carousel-indicators li.active { background: var(--gold) !important; }

/* ═══ CATEGORY CARDS (owl carousel) ═══ */
[class*="card-categories-li"][class*="card-categories-li"] {
  background: transparent !important; border: none !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 4px !important;
}
[class*="card-categories-image-container"][class*="card-categories-image-container"] {
  width: auto !important; height: auto !important; min-height: 0 !important;
  max-height: none !important; border-radius: 0 !important; box-shadow: none !important;
  padding: 8px 4px 4px !important; display: flex !important; flex-direction: column !important; align-items: center !important;
}
[class*="card-categories-image-container"][class*="card-categories-image-container"]:hover { box-shadow: none !important; }
[class*="image-cate"][class*="image-cate"],
[class*="img-cate"][class*="img-cate"],
[class*="card-categories-image-container"] > img[class],
[class*="card-categories-image-container"] > img.img-fluid {
  width: 88px !important; height: 88px !important; max-width: 88px !important; max-height: 88px !important;
  min-width: 0 !important; min-height: 0 !important; object-fit: cover !important;
  border-radius: 50% !important; background: var(--light-grey) !important;
  border: 2px solid var(--border) !important; box-shadow: var(--shadow-xs) !important;
  transition: all .3s ease !important;
}
[class*="card-categories-li"]:hover [class*="image-cate"],
[class*="card-categories-li"]:hover [class*="card-categories-image-container"] > img {
  transform: scale(1.06) !important; border-color: var(--yx) !important;
  box-shadow: 0 4px 16px rgba(0,103,113,.15) !important;
}
[class*="card-categories-name"][class*="card-categories-name"] {
  position: static !important; width: auto !important; padding: 0 2px !important;
  margin-top: 10px !important; text-align: center !important; display: block !important;
}
[class*="categories-name"][class*="categories-name"] {
  color: var(--text) !important; font-size: 11px !important; font-weight: 600 !important;
  letter-spacing: 0.06em !important; text-transform: uppercase !important;
  position: static !important; display: block !important; text-align: center !important;
  white-space: normal !important; line-height: 1.3 !important; margin: 0 !important;
}
@media (min-width: 768px) {
  [class*="image-cate"][class*="image-cate"],
  [class*="card-categories-image-container"] > img[class],
  [class*="card-categories-image-container"] > img.img-fluid {
    width: 108px !important; height: 108px !important; max-width: 108px !important; max-height: 108px !important;
  }
  [class*="categories-name"][class*="categories-name"] { font-size: 12px !important; }
}

/* Owl nav arrows */
.owl-carousel .owl-nav button.owl-prev, .owl-carousel .owl-nav button.owl-next {
  background: var(--white) !important; border: 1px solid var(--border) !important;
  border-radius: 50% !important; width: 36px !important; height: 36px !important;
  color: var(--text-light) !important; box-shadow: var(--shadow-xs) !important;
}
.owl-carousel .owl-nav button:hover { background: var(--yx-50) !important; border-color: var(--yx) !important; color: var(--yx) !important; }

/* ═══ PRODUCT CARDS ═══ */
.card-product, .card.card-product, .card.card_product {
  background: var(--white) !important; border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important; overflow: hidden !important;
  transition: box-shadow var(--speed), transform var(--speed) !important; height: auto !important;
}
.card-product:hover, .card.card-product:hover, .card.card_product:hover {
  box-shadow: var(--shadow-gold) !important; transform: translateY(-4px) !important;
}
.card-product__img, .card-product_img { overflow: hidden !important; background: var(--light-grey) !important; }
.card-product__img img, .card-product_img img,
.card-product__img video, .card-product_img video { transition: transform 0.5s ease !important; }
.card-product:hover .card-product__img img, .card-product:hover .card-product_img img { transform: scale(1.06) !important; }
.card-cate { font-size: 10px !important; color: var(--text-muted) !important; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.card-product .title, a.title { font-family: 'Playfair Display', serif !important; font-weight: 700 !important; color: var(--text) !important; }
.card-product .title:hover, a.title:hover { color: var(--yx) !important; }
.add-to-cart-btn { background-color: var(--gold) !important; border-radius: var(--r-md) !important; border: none !important; }
.add-to-cart-btn:hover { background-color: var(--gold-dark) !important; transform: scale(1.1) !important; }
.sold-out-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.5); display: flex; justify-content: center; align-items: center; }
.sold-out-text { font-size: 13px; color: #fff; background: var(--red); padding: 6px 16px; border-radius: 4px; font-weight: 700; text-transform: uppercase; transform: rotate(-12deg); }

/* ═══ NAVBAR ═══ */
.yx-topbar { background: var(--white) !important; border-bottom: 1px solid var(--border) !important; }
.header_area { background: var(--white) !important; box-shadow: var(--shadow-sm) !important; }
.header_area .main_menu nav.navbar { background: var(--white) !important; }
.dropdown-menu { border: 1px solid var(--border) !important; border-radius: var(--r-md) !important; box-shadow: var(--shadow-md) !important; }
.dropdown-item:hover { background: var(--yx-50) !important; color: var(--yx) !important; }

/* ═══ BUTTONS ═══ */
.btn-primary, .btn-gold { background: var(--yx) !important; border-color: var(--yx) !important; color: #fff !important; border-radius: var(--r-sm) !important; font-weight: 600 !important; }
.btn-primary:hover, .btn-gold:hover { background: var(--yx-dark) !important; border-color: var(--yx-dark) !important; }
.btn-outline-primary { color: var(--yx) !important; border-color: var(--yx) !important; background: transparent !important; }
.btn-outline-primary:hover { background: var(--yx) !important; color: #fff !important; }
.view-more { font-size: 13px !important; font-weight: 600 !important; color: var(--yx) !important; }

/* ScrollSection buttons */
#scrollSection .button { background: transparent !important; color: var(--text-light) !important; border: 1.5px solid var(--border) !important; border-radius: var(--r-pill) !important; }
#scrollSection .button:hover { background: var(--yx-50) !important; color: var(--yx) !important; border-color: var(--yx) !important; }

/* ═══ FORMS ═══ */
.form-control { border: 1.5px solid var(--border) !important; border-radius: var(--r-sm) !important; background: var(--white) !important; color: var(--text) !important; }
.form-control:focus { border-color: var(--yx) !important; box-shadow: 0 0 0 3px rgba(0,103,113,.1) !important; }
.form-check-input { accent-color: var(--yx) !important; }

/* ═══ ALERTS ═══ */
.alert { border-radius: var(--r-md) !important; border: none !important; }
.alert-success { background: #e6f5f7 !important; color: var(--yx-dark) !important; border-left: 4px solid var(--yx) !important; }
.alert-danger { background: #fef2f2 !important; color: var(--red-dark) !important; border-left: 4px solid var(--red) !important; }

/* ═══ MODALS ═══ */
.modal-content { border: none !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow-md) !important; }

/* ═══ TABLES ═══ */
.table thead th { background: var(--light-grey) !important; color: var(--text-light) !important; font-weight: 700 !important; font-size: 11px !important; text-transform: uppercase !important; }
.table td { border-color: var(--border) !important; }
.table-hover tbody tr:hover { background: var(--yx-50) !important; }

/* ═══ PAGINATION ═══ */
.pagination .page-item .page-link { color: var(--text-light) !important; border: 1px solid var(--border) !important; border-radius: var(--r-sm) !important; }
.pagination .page-item.active .page-link { background: var(--yx) !important; border-color: var(--yx) !important; color: #fff !important; }
.pagination .page-item .page-link:hover { background: var(--yx-50) !important; color: var(--yx) !important; }

/* ═══ FOOTER ═══ */
.footer { background: var(--yx) !important; }
.footer-area-home, footer.footer .footer-area-home, footer .footer-area-home { background: var(--yx) !important; padding: 60px 0 40px !important; }
.footer_title, footer .footer_title, .footer-area-home .footer_title {
  font-family: 'Playfair Display', serif !important; font-size: 17px !important;
  font-weight: 700 !important; color: #fff !important; margin-bottom: 20px !important;
  padding-bottom: 14px !important; border-bottom: 1px solid rgba(255,255,255,.2) !important;
}
.tp_widgets p, .single-footer-widget p { color: rgba(255,255,255,.7) !important; }
.single-footer-widget .list li a { color: rgba(255,255,255,.7) !important; }
.single-footer-widget .list li a:hover { color: #fff !important; }
.footer-bottom, footer .footer-bottom { background: var(--yx-dark) !important; border-top: 1px solid rgba(255,255,255,.1) !important; }
.footer-text { color: rgba(255,255,255,.5) !important; font-size: 12px !important; }

/* ═══ MOBILE BOTTOM NAV (Gold) ═══ */
.footer-mobile {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
  border-top: none !important; box-shadow: 0 -2px 12px rgba(0,0,0,.1) !important;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 1060 !important;
}
@media (min-width: 768px) { .footer-mobile { display: none !important; } }
.footer-mobile .d-flex { align-items: flex-start !important; }
.footer-mobile a { color: rgba(255,255,255,.8) !important; font-size: 10px !important; text-decoration: none !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 2px !important; flex: 1 !important; }
.footer-mobile a:hover { color: #fff !important; }
.footer-mobile a i { font-size: 18px !important; color: rgba(255,255,255,.9) !important; }
.footer-mobile span { color: rgba(255,255,255,.8) !important; font-size: 9px !important; }
.tabbar-item-icon { width: 20px !important; height: 20px !important; filter: brightness(0) invert(1) !important; opacity: .85 !important; }
.footer-mobile .cart-badge { position: absolute; top: -4px; right: -8px; background: var(--red); color: #fff; font-size: 8px; font-weight: 700; min-width: 14px; height: 14px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }

/* ═══ PRODUCT DETAIL ═══ */
.prodName { font-size: 22px !important; font-weight: 700 !important; }
.imgVendor { border-radius: 50% !important; border: 2px solid var(--yx) !important; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1200px) { main.main1 { margin-top: 80px !important; } }
@media (max-width: 768px) { main.main1 { margin-top: 70px !important; } .main-title { font-size: 22px !important; } }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light-grey); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--yx); }

/* ═══ PRINT ═══ */
@media print { .yx-topbar, .header_area, .footer, .footer-mobile, .desk-nav { display: none !important; } body { background: #fff !important; } }

/* ═══ HIDE OLD PRODUCT PAGE STICKY NAV ═══ */
section.bg-white.s_product_inner.pb-60px[style*="sticky"] { display: none !important; }

/* ═══ PRODUCT GRID ═══ */
#product-list, div.row#product-list, .row#product-list {
  display: flex !important; flex-wrap: wrap !important; margin: 0 -8px !important; justify-content: flex-start !important;
}
#product-list > div[class*="col-"], #product-list > .col-xl-3, #product-list > .col-6 {
  padding: 0 8px !important; margin-bottom: 16px !important; display: flex !important;
}
@media (min-width: 1200px) { #product-list > div[class*="col-"] { flex: 0 0 25% !important; max-width: 25% !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { #product-list > div[class*="col-"] { flex: 0 0 33.333% !important; max-width: 33.333% !important; } }
@media (min-width: 576px) and (max-width: 991.98px) { #product-list > div[class*="col-"] { flex: 0 0 50% !important; max-width: 50% !important; } }
@media (max-width: 575.98px) { #product-list > div[class*="col-"] { flex: 0 0 50% !important; max-width: 50% !important; } }
.card-product, .card.card-product, .card.card_product { width: 100% !important; max-width: 100% !important; flex: 1 !important; }
#product-list .card-product__img, #product-list .card-product_img { width: 100% !important; aspect-ratio: 1 !important; overflow: hidden !important; }
#product-list .card-product__img img, #product-list .card-product_img img,
#product-list .card-product__img video, #product-list .card-product_img video { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#product-list .card-product .p-2, #product-list div[style*="width:266px"] { width: 100% !important; }

/* ═══ CAROUSEL INDICATORS — Bold lines instead of dots ═══ */
html body .carousel-indicators li,
html body .carousel-indicators [data-bs-target],
html body .carousel-indicators button {
  width: 20px !important;
  height: 4px !important;
  border-radius: 2px !important;
  background-color: rgba(0,0,0,.2) !important;
  border: none !important;
  margin: 0 3px !important;
  opacity: 1 !important;
  cursor: pointer !important;
  transition: all .2s !important;
}
html body .carousel-indicators li.active,
html body .carousel-indicators .active,
html body .carousel-indicators [data-bs-target].active,
html body .carousel-indicators button.active {
  background-color: rgba(0,0,0,.6) !important;
  width: 28px !important;
}
html body .carousel-indicators li:hover,
html body .carousel-indicators [data-bs-target]:hover,
html body .carousel-indicators button:hover {
  background-color: rgba(0,0,0,.4) !important;
}
/* No auto-rotate for all carousels */
html body .carousel {
  touch-action: pan-y !important;
}
/* Owl carousel indicators (home page) */
html body .owl-dots .owl-dot span {
  width: 20px !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: rgba(0,0,0,.2) !important;
  margin: 0 3px !important;
  transition: all .2s !important;
}
html body .owl-dots .owl-dot.active span {
  background: rgba(0,0,0,.6) !important;
  width: 28px !important;
}
