/* =========================================================
   cat-soft-copy.css
   CSS for Soft Copy / Digital Vastu Tools pages.
   Loads AFTER product.css — overrides only what it needs.
   Theme: warm ink + deep navy — professional digital tool feel.
========================================================= */

/* =========================================================
   1. LOCAL DESIGN TOKENS
========================================================= */
:root {
  --vgx-bg:     #f9f5f0;
  --vgx-card:   #ffffff;
  --vgx-border: #e2d9ce;
  --vgx-text:   #0f172a;
  --vgx-muted:  #6b7280;
  --vgx-accent: #c65d00;
  --vgx-navy:   #1e3a5f;
  --vgx-soft:   #f3ede2;
  --vgx-glow:   rgba(198, 93, 0, .10);
}


/* =========================================================
   2. HERO SECTION
========================================================= */
.vgx-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--vgx-border);
  background:
    radial-gradient(circle at 20% 20%, rgba(198, 93, 0, .08), transparent 38%),
    radial-gradient(circle at 80% 30%, rgba(30, 58, 95, .07), transparent 44%),
    linear-gradient(135deg, #fdf5ec, #fff9f3);
  border-radius: 24px;
  margin: 18px 0 20px;
  overflow: visible;
  position: relative;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .08);
}

.vgx-hero::after {
  content: "";
  position: absolute;
  inset: -30% auto auto 55%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(198, 93, 0, .14), rgba(198, 93, 0, 0));
  filter: blur(30px);
  pointer-events: none;
}

.vgx-hero.has-media .vgx-heroMedia img {
  display: block;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  filter: drop-shadow(0 18px 40px rgba(15, 23, 42, .16));
}

.vgx-heroMedia { position: relative; z-index: 1; text-align: right; }
.vgx-heroText  { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }

.vgx-kicker {
  margin: 0;
  color: var(--vgx-accent);
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 12.5px;
  text-transform: uppercase;
}

.vgx-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.12;
  color: var(--vgx-navy);
}

.vgx-sub {
  margin: 2px 0 0;
  color: var(--vgx-muted);
  max-width: 640px;
  font-size: 15px;
}


/* =========================================================
   3. SEARCH BOX
========================================================= */
.vgx-search {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  max-width: 520px;
  background: var(--vgx-card);
  border: 1px solid var(--vgx-border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.vgx-search input {
  flex: 1;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--vgx-text);
  outline: none;
  font-size: 14px;
}

.vgx-search input:focus {
  border-color: rgba(198, 93, 0, .45);
  box-shadow: 0 0 0 3px rgba(198, 93, 0, .12);
}

.vgx-search button {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(198, 93, 0, .50);
  background: linear-gradient(180deg, #c65d00, #a84d00);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-width: 90px;
}

.vgx-search button:hover { filter: brightness(.97); }


/* =========================================================
   4. RESULTS BAR
========================================================= */
.vgx-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 12px;
  color: var(--vgx-muted);
}

.vgx-clear {
  color: var(--vgx-text);
  text-decoration: none;
  border: 1px solid var(--vgx-border);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
}

.vgx-clear:hover { background: var(--vgx-soft); }

.vgx-pmini {
  margin-left: auto;
  font-size: 13px;
  opacity: .85;
}


/* =========================================================
   5. CATEGORY CARD GRID
========================================================= */
.vgx-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.vgc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

@media (max-width: 1200px) {
  .vgx-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vgc-grid  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .vgx-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vgc-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vgx-hero  { grid-template-columns: 1fr; }
  .vgx-heroMedia { text-align: center; }
}
@media (max-width: 768px) {
  .vgx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgc-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .vgx-cats { grid-template-columns: 1fr; }
  .vgc-grid  { grid-template-columns: 1fr; }
}


/* =========================================================
   6. CATEGORY CARD
========================================================= */
.vgx-catCard {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--vgx-border);
  background: var(--vgx-card);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.vgx-catCard:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 93, 0, .40);
  box-shadow: 0 14px 24px rgba(15, 23, 42, .08);
}

.vgx-catImg {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--vgx-soft);
  position: relative;
}

.vgx-catImg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .03), rgba(15, 23, 42, .08));
}

.vgx-catBody  { padding: 14px; }
.vgx-catTitle { font-size: 16px; font-weight: 700; color: var(--vgx-navy); }
.vgx-catSub   { margin-top: 6px; color: var(--vgx-muted); font-size: 13px; }
.vgx-catMeta  { margin-top: 10px; color: var(--vgx-muted); font-size: 13px; }


/* =========================================================
   7. PRODUCT CARDS
========================================================= */
.vgc-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--vgx-border);
  background: var(--vgx-card);
  text-decoration: none;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vgc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 93, 0, .35);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.vgc-thumb-link { display: block; text-decoration: none; color: inherit; }
.vgc-thumb { background: var(--vgx-soft); padding: 10px; position: relative; }

.vgc-thumb img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}

.vgc-card:hover .vgc-thumb img {
  transform: scale(1.04);
  filter: drop-shadow(0 12px 22px rgba(15, 23, 42, .18));
}

.vgc-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--vgx-navy);
  color: #f3ede2;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .25);
}

.vgc-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.vgc-name {
  font-weight: 900;
  font-size: 15.5px;
  color: var(--vgx-navy);
}

.vgc-name:hover { text-decoration: underline; }

.vgc-tagline {
  font-size: 13px;
  color: var(--vgx-muted);
  line-height: 1.5;
  min-height: 38px;
  margin-bottom: 4px;
}

.vgc-desc {
  font-size: 13px;
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vgc-price {
  font-weight: 800;
  color: var(--vgx-accent);
  font-size: 14px;
}

.vgc-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.vgc-price-now {
  font-weight: 900;
  color: var(--vgx-accent);
  font-size: 16px;
}

.vgc-price-mrp {
  color: var(--vgx-muted);
  text-decoration: line-through;
  font-weight: 700;
  font-size: 12.5px;
}

.vgc-price-off {
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 800;
  font-size: 12px;
}

.vgc-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vgc-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* View Details button — orange */
.vgc-cta-lite {
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c65d00, #a84d00);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  box-shadow: 0 10px 24px rgba(198, 93, 0, .25);
  text-decoration: none;
}

/* Add to Cart button — navy ghost */
.vgc-cta-cart {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(30, 58, 95, .35);
  background: rgba(30, 58, 95, .07);
  color: var(--vgx-navy);
  font-weight: 800;
  font-size: 12.5px;
  box-shadow: 0 8px 18px rgba(30, 58, 95, .10);
}

.vgc-cta-cart:hover { filter: brightness(.96); }


/* =========================================================
   8. PAGINATION
========================================================= */
.vgc-pager {
  margin: 14px 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vgc-pagebtn {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--vgx-border);
  text-decoration: none;
  color: var(--vgx-text);
  background: var(--vgx-card);
}

.vgc-pagebtn.is-disabled { opacity: .5; pointer-events: none; }
.vgc-pageinfo { font-size: 13px; color: var(--vgx-muted); }

.vgc-empty {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--vgx-border);
  background: var(--vgx-card);
  border-radius: 14px;
  text-align: center;
  color: var(--vgx-muted);
}


/* =========================================================
   9. RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .vgx-hero { grid-template-columns: 1fr; padding: 22px; }
  .vgx-heroMedia { text-align: center; }
  .vgx-heroMedia img { margin: 0 auto; }
}

@media (max-width: 720px) {
  .vgx-hero { padding: 20px; gap: 12px; }
  .vgx-search { max-width: 100%; }
  .vgc-thumb img { height: 210px; }
  .vgc-card { border-radius: 16px; }
  .vgc-pill { font-size: 11px; padding: 5px 9px; }
  .vgc-name { font-size: 14.5px; }
  .vgc-desc { font-size: 12.5px; }
  .vgc-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vgc-buttons { width: 100%; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .vgx-title { font-size: 26px; }
  .vgx-sub { font-size: 14px; }
  .vgx-hero { padding: 18px; }
  .vgx-search { flex-direction: column; align-items: stretch; }
  .vgx-search button { width: 100%; }
  .vgc-thumb img { height: 190px; }
  .vgc-buttons { width: 100%; gap: 6px; }
  .vgc-buttons .vgc-cta-lite,
  .vgc-buttons .vgc-cta-cart { flex: 1; text-align: center; }
}

@media (max-width: 400px) {
  .vgc-thumb img { height: 170px; }
  .vgc-body { padding: 12px; }
}


/* =========================================================
   10. REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
