/* Silver Jewelry Professional Theme (Full Redesign) */
/* Goal: premium, minimalist, jewelry-focused UI. Works as a skin over existing pages without touching PHP logic. */

:root{
  /* Premium white jewelry palette */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #fcfcfd;
  --line: rgba(17,24,39,.10);
  --line2: rgba(17,24,39,.16);
  --text: #0f172a;
  --muted: rgba(15,23,42,.68);
  --muted2: rgba(15,23,42,.54);

  --silver: #d6dbe2;
  --silver2:#b7c0cc;
  --silver3:#eef1f5;
  --ink: #111827;

  --accent: #9aa4b2;
  --accent2:#7b8697;

  --shadow: 0 10px 30px rgba(15,23,42,.10);
  --shadow2: 0 20px 60px rgba(15,23,42,.12);

  --radius: 18px;
  --radius2: 24px;
}

html{scroll-behavior:smooth;}
body.ts-theme{
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(214,219,226,.55), transparent 62%),
    radial-gradient(900px 600px at 92% -2%, rgba(238,241,245,.75), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.ts-theme h1,.ts-theme h2,.ts-theme h3,.ts-theme .ts-title{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: .2px;
}
.ts-theme h1{font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1;}
.ts-theme h2{font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15;}
.ts-theme h3{font-size: 18px; line-height: 1.25;}
.ts-muted{color: var(--muted) !important;}
.ts-muted2{color: var(--muted2) !important;}

/* Layout container */
.ts-container{max-width: 1180px; margin: 0 auto; padding: 0 18px;}
.ts-main{padding: 22px 0 34px;}

/* Header */
.ts-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.ts-brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.ts-brand__dot{
  width: 12px; height: 12px; border-radius: 999px;
  background: linear-gradient(180deg, var(--silver3), var(--silver2));
  box-shadow: 0 0 0 6px rgba(199,205,214,.25);
}
.ts-brand__name{
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--text);
  text-transform: uppercase;
  font-size: 14px;
}

/* Mobile menu button */
.ts-iconbtn{
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 26px rgba(15,23,42,.10);
}
.ts-iconbtn__line{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(15,23,42,.78);
  border-radius: 999px;
  margin: 2px 0;
}

/* Top actions */
.ts-nav{
  display:flex; flex-wrap:wrap;
  gap: 10px;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(17,24,39,.06);
}

/* Collapsible nav (mobile) */
.ts-nav.ts-nav--collapsible{
  transition: max-height .22s ease, opacity .22s ease;
}
@media (max-width: 767px){
  .ts-nav.ts-nav--collapsible{
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 18px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 16px 46px rgba(15,23,42,.10);
  }
  .ts-nav.ts-is-collapsed{display:none;}
}
.ts-nav__link{
  color: rgba(15,23,42,.78);
  text-decoration:none;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  transition: all .18s ease;
  border: 1px solid transparent;
}
.ts-nav__link:hover{
  background: rgba(199,205,214,.18);
  border-color: rgba(17,24,39,.08);
  color: var(--text);
}

/* Search */
.ts-search{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  min-width: 260px;
}
.ts-search__icon{color: rgba(15,23,42,.50);}
.ts-search__input{
  width: 100%;
  background: transparent;
  outline: none;
  border: 0;
  color: var(--text);
  font-size: 14px;
}
.ts-search__input::placeholder{color: rgba(15,23,42,.45);}

/* Buttons */
.ts-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(17,24,39,.10);
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,247,249,.95));
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.ts-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(15,23,42,.12);
}
.ts-btn:active{transform: translateY(0px);}

.ts-btn--ghost{
  background: rgba(255,255,255,.70);
  border-color: rgba(17,24,39,.10);
  box-shadow: none;
}
.ts-btn--ghost:hover{
  background: rgba(199,205,214,.20);
  box-shadow: none;
  transform: translateY(-1px);
}

.ts-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, var(--silver3), var(--silver));
  border: 1px solid rgba(17,24,39,.10);
}

/* Dropdown */
.ts-dropdown{
  display:none;
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 220px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 16px;
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.ts-dropdown__item{
  display:block;
  padding: 12px 14px;
  font-size: 13px;
  text-decoration:none;
  color: rgba(15,23,42,.86);
  border-bottom: 1px solid rgba(17,24,39,.06);
}
.ts-dropdown__item:hover{background: rgba(199,205,214,.16); color: var(--text);}
.ts-dropdown__item:last-child{border-bottom: 0;}

/* Cards & panels */
.ts-card, .card, .panel, .box, .product-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ts-card{padding: 16px;}

.ts-section{
  margin: 18px 0;
  padding: 18px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius2);
  box-shadow: 0 10px 28px rgba(15,23,42,.07);
}

/* Product grid (works even if markup is generic) */
.ts-theme .grid{
  gap: 16px !important;
}
.ts-theme .product, .ts-theme .product-item, .ts-theme .product-card{
  overflow:hidden;
}
.ts-theme .product img, .ts-theme .product-item img, .ts-theme .product-card img{
  width: 100%;
  height: auto;
  display:block;
  background: linear-gradient(180deg, rgba(199,205,214,.30), rgba(255,255,255,1));
}
.ts-theme a:hover{text-decoration:none;}

.ts-theme .price, .ts-theme .product-price, .ts-theme .ts-price{
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
}

/* Tailwind utility overrides (visual redesign without touching PHP markup) */
.ts-theme .bg-white{background: rgba(255,255,255,.96) !important;}
.ts-theme .rounded-lg{border-radius: 22px !important;}
.ts-theme .shadow-lg{box-shadow: 0 18px 55px rgba(15,23,42,.10) !important;}
.ts-theme .shadow-xl{box-shadow: 0 26px 80px rgba(15,23,42,.12) !important;}
.ts-theme .border{border-color: rgba(17,24,39,.10) !important;}
.ts-theme .text-gray-700{color: rgba(15,23,42,.78) !important;}
.ts-theme .text-gray-600{color: rgba(15,23,42,.72) !important;}
.ts-theme .text-gray-500{color: rgba(15,23,42,.58) !important;}

/* Product card hover: subtle, expensive */
.ts-theme .hover\:scale-105:hover{transform: translateY(-2px) scale(1.01) !important;}
.ts-theme .transition-all{transition: transform .18s ease, box-shadow .18s ease !important;}

/* Filter accordion */
details.ts-accordion{
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
details.ts-accordion > summary{
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  color: rgba(15,23,42,.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.ts-accordion > summary::-webkit-details-marker{display:none;}
details.ts-accordion > summary:after{
  content: '▾';
  font-size: 14px;
  color: rgba(15,23,42,.55);
  transition: transform .18s ease;
}
details.ts-accordion.is-open > summary:after{transform: rotate(180deg);}
details.ts-accordion .ts-accordion__body{padding: 0 14px 14px;}

/* Mobile: bigger tap targets */
@media (max-width: 639px){
  .ts-btn{padding: 12px 14px;}
  .ts-search{min-width: 0;}
  .ts-container{padding: 0 14px;}
  .ts-main{padding-top: 14px;}
}

/* Forms */
.ts-theme input[type="text"],
.ts-theme input[type="email"],
.ts-theme input[type="password"],
.ts-theme input[type="tel"],
.ts-theme input[type="number"],
.ts-theme input[type="search"],
.ts-theme select,
.ts-theme textarea{
  width: 100%;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(17,24,39,.12);
  border-radius: 14px;
  padding: 12px 12px;
  outline:none;
  color: var(--text);
  font-size: 14px;
  transition: box-shadow .12s ease, border-color .12s ease, transform .12s ease;
}
.ts-theme textarea{min-height: 120px;}
.ts-theme input:focus, .ts-theme select:focus, .ts-theme textarea:focus{
  border-color: rgba(154,164,178,.70);
  box-shadow: 0 0 0 5px rgba(199,205,214,.35);
}

/* Tables (cart/orders/admin lists) */
.ts-theme table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.ts-theme th, .ts-theme td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(17,24,39,.06);
  font-size: 13px;
}
.ts-theme th{
  text-align:left;
  font-weight: 800;
  color: rgba(15,23,42,.82);
  background: rgba(246,247,249,.95);
}
.ts-theme tr:last-child td{border-bottom:0;}
.ts-theme tr:hover td{background: rgba(199,205,214,.14);}

/* Alerts */
.ts-alert{
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.ts-alert--ok{border-color: rgba(34,197,94,.25);}
.ts-alert--warn{border-color: rgba(245,158,11,.25);}
.ts-alert--err{border-color: rgba(239,68,68,.25);}

/* Footer */
.ts-footer{
  margin-top: 40px;
  border-top: 1px solid rgba(17,24,39,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.60), rgba(246,247,249,1));
}
.ts-footer__brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.ts-footer a{color: rgba(15,23,42,.78); text-decoration:none;}
.ts-footer a:hover{color: var(--text);}

/* Utility overrides for Tailwind defaults to feel jewelry-premium */
.ts-theme .bg-white{background-color: rgba(255,255,255,.92) !important;}
.ts-theme .text-gray-500, .ts-theme .text-gray-600, .ts-theme .text-gray-700{color: var(--muted) !important;}
.ts-theme .border, .ts-theme .border-gray-200, .ts-theme .border-gray-300{border-color: rgba(17,24,39,.10) !important;}
.ts-theme .shadow, .ts-theme .shadow-md, .ts-theme .shadow-lg, .ts-theme .shadow-xl{box-shadow: var(--shadow) !important;}
.ts-theme .rounded, .ts-theme .rounded-lg, .ts-theme .rounded-xl, .ts-theme .rounded-2xl{border-radius: var(--radius) !important;}

/* Responsive */
@media (max-width: 768px){
  .ts-search{min-width: 0;}
  .ts-nav{gap: 8px;}
  .ts-nav__link{padding: 7px 9px;}
  .ts-main{padding-top: 14px;}
}


.ts-footer__title{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(15,23,42,.88);
  margin-bottom: 10px;
}
.ts-footer__links{
  display:flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.ts-footer__bottom{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items:center;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(17,24,39,.08);
  font-size: 12.5px;
}


/* ================================
   PAGE LAYOUT (Home / Catalog / Discounts)
   Applies only via .ts-theme--silver_min
==================================*/
[hidden]{display:none !important;}
.ts-theme--silver_min .ts-page{ padding: 18px 0 48px; }
.ts-theme--silver_min .container{ max-width: 1220px !important; }

.ts-theme--silver_min .ts-page h2{
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 10px 0 14px !important;
  letter-spacing: .2px;
}
.ts-theme--silver_min .ts-page h2::after{
  content:"";
  display:block;
  height:2px;
  width:72px;
  margin-top:10px;
  background: linear-gradient(90deg,var(--accent), rgba(0,0,0,0));
  border-radius: 999px;
}

/* Hide duplicate search forms inside pages (keep header search) */
.ts-theme--silver_min .ts-page form[action="search.php"]{ display:none !important; }

/* PRODUCT CARDS */
.ts-theme--silver_min .ts-page .grid > div.bg-white{
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 26px rgba(10,12,18,.08) !important;
}
.ts-theme--silver_min .ts-page .grid > div.bg-white:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 34px rgba(10,12,18,.12) !important;
}
.ts-theme--silver_min .ts-page .grid img{ border-radius: 14px !important; }

/* FILTERS + ACCORDION */
.ts-theme--silver_min .ts-catalog form.space-y-4{
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  box-shadow: 0 10px 22px rgba(10,12,18,.06) !important;
}
.ts-theme--silver_min .ts-accordion{
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  overflow:hidden !important;
  background: var(--surface2) !important;
}
.ts-theme--silver_min .ts-accordion summary{
  cursor:pointer;
  list-style:none;
  padding: 12px 12px;
  font-weight:700;
  color: rgba(16,20,28,.78);
}
.ts-theme--silver_min .ts-accordion summary::-webkit-details-marker{display:none;}
.ts-theme--silver_min .ts-accordion summary::after{
  content:"▾";
  float:right;
  opacity:.7;
  transition: transform .18s ease;
}
.ts-theme--silver_min .ts-accordion[open] summary::after{ transform: rotate(180deg); }
.ts-theme--silver_min .ts-accordion__body{ padding: 10px 12px 12px; }

@media (max-width: 860px){
  .ts-theme--silver_min .ts-page{ padding-top: 12px; }
  .ts-theme--silver_min .ts-catalog .flex.flex-col.md\:flex-row{ gap: 14px !important; }
  .ts-theme--silver_min .ts-catalog .md\:w-1\/4,
  .ts-theme--silver_min .ts-catalog .md\:w-3\/4{ width:100% !important; }
}

/* Home hero */
.ts-theme--silver_min .ts-home .swiper-container,
.ts-theme--silver_min .ts-home .swiper{
  border-radius: 18px !important;
  overflow:hidden !important;
  box-shadow: 0 18px 44px rgba(10,12,18,.10) !important;
  border: 1px solid var(--line) !important;
}
