/* ===== CALLIGRAPHY TOOLS STORE - MASTER STYLES ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-dark: #A07832;
  --cream: #F7F4EF;
  --cream-2: #F0EBE1;
  --dark: #0D0D0D;
  --dark-2: #1A1A1A;
  --green: #1C3D2E;
  
  --shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.15);
  --tr: all 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5, .font-playfair, .sec-title, .hero-title {
  font-family: 'Playfair Display', serif;
}

/* Typography & Titles */
.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}
.sec-title.light { color: #fff; }

.lbl {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.divider.center {
  height: 2px; width: 40px; background: var(--gold); margin: 0 auto 2rem;
}

/* Global Buttons */
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--tr);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 168, 76, 0.6); }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  transition: var(--tr);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

.btn-dark {
  background: var(--dark);
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  transition: var(--tr);
}
.btn-dark:hover { background: var(--gold); color: var(--dark); }

.btn-wa {
  background: #25D366;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--tr);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.btn-wa:hover { background: #20BA56; transform: translateY(-2px); }

/* Navigation */
#main-nav {
  position: fixed; top:0; z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--tr);
  width: 100%;
}
#main-nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-logo { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.5rem; color:#fff; text-decoration: none; }
.nav-logo span { color: var(--gold); font-style: italic; font-weight: 400; }
.nav-logo-img { height: 40px; width: 40px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; color: #fff; }
.nav-logo-sub { font-family: 'Inter', sans-serif; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; opacity: 0.8; }
.nav-link { color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.9rem; transition: var(--tr); }
.nav-link:hover { color: var(--gold); }
.cart-badge {
  position: absolute; top:-6px; right:-8px; background: var(--gold); color: var(--dark);
  font-size: 0.6rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Hero */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1544458920-569d2d0c2688?w=2000&q=80') center/cover;
  opacity: 0.15;
}
.floating-el { position: absolute; filter: blur(60px); opacity: 0.5; animation: float 6s infinite ease-in-out alternate; }
@keyframes float { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
  margin-bottom: 2rem; backdrop-filter: blur(4px);
}
.hero-badge span { color: var(--gold); }

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: 2rem;
  animation: floatTitle 4s infinite ease-in-out;
}
@keyframes floatTitle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-title .italic-gold { color: var(--gold); font-style: italic; }
.hero-sub { color: rgba(255,255,255,0.7); font-size: 1.15rem; max-width: 500px; line-height: 1.7; margin-bottom: 2.8rem; }

/* Stats Bar */
.stats-bar { background: var(--gold); padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--dark); line-height: 1; margin-bottom: 0.5rem; }
.stat-lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(13,13,13,0.7); font-weight: 600; }

/* Products / General Sections */
section { padding: 6rem 0; }

.prod-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--tr); border: 1px solid rgba(0,0,0,0.05); display:flex; flex-direction:column;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.prod-card-img-wrap {
  width: 100%; aspect-ratio: 1; background: var(--cream-2); overflow: hidden; position: relative;
}
.prod-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prod-card:hover .prod-card-img { transform: scale(1.05); }
.prod-card-body { padding: 1.5rem; display:flex; flex-direction:column; flex:1; }
.prod-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; color: var(--dark); margin: 0.5rem 0; line-height: 1.3; }
.prod-price { font-weight: 600; color: var(--gold-dark); font-size: 1.1rem; }
.prod-orig { font-size: 0.9rem; color: #999; text-decoration: line-through; }
.stock-low { font-size: 0.8rem; color: #d97706; font-weight: 500; margin-top:0.5rem; }

/* Tags */
.tag { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; padding: 4px 10px; border-radius: 4px; display:inline-block; }
.tag-premium { background: var(--gold); color: var(--dark); }
.tag-bundle { background: var(--green); color: #fff; }
.tag-bestseller { background: #000; color: var(--gold); }
.tag-beginner { background: #e2e8f0; color: #475569; }

/* Font Preview Section */
.font-preview {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border-radius: 24px; padding: 3rem; text-align: center;
  position: relative; overflow:hidden;
}
.font-preview-script { color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.font-preview-label { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.5rem; font-style: italic; }

/* Bundle Feature */
.bundle-box {
  background: var(--green);
  border-radius: 24px; padding: 4rem; overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.bundle-box::before {
  content: ''; position: absolute; top:-50%; right:-20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%); border-radius: 50%;
}
.bundle-item { display: flex; gap: 1rem; align-items: flex-start; transition: var(--tr); }
.bundle-item:hover { transform: translateY(-5px); background: rgba(255,255,255,0.06) !important; }
.savings { background: rgba(37,211,102,0.2); color: #4ade80; padding: 4px 12px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; }

/* Categories Card */
.cat-card {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; display: block;
  box-shadow: var(--shadow); transition: var(--tr);
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.cat-card-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.cat-card-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #fff; font-weight: 600; margin-bottom: 0.25rem; }
.cat-card-count { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.cat-arrow { display: inline-flex; align-items: center; color: var(--gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: var(--tr); }
.cat-card:hover .cat-arrow { padding-left: 8px; }

/* Why Us / Value Props */
.why-card { background: #fff; padding: 2rem; border-radius: 16px; text-align: center; border: 1px solid rgba(0,0,0,0.05); transition: var(--tr); }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-icon { width: 64px; height: 64px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 1.5rem; }

/* Testimonials */
.testi-card { border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 2rem; transition: var(--tr); }
.stars { color: var(--gold); font-size: 1.25rem; letter-spacing: 2px; }

/* Footer */
footer { background: var(--dark); padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-logo { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.5rem; color:#fff; display: flex; align-items: center; gap: 10px; }
.footer-logo span { color: var(--gold); font-style: italic; font-weight: 400; }
.footer-logo-img { height: 36px; width: 36px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.footer-title { color: #fff; font-weight: 600; font-size: 1.1rem; margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; }
.footer-link { display: block; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; font-size: 0.9rem; transition: var(--tr); text-decoration: none; }
.footer-link:hover { color: var(--gold); transform: translateX(4px); }
.footer-hr { border-color: rgba(255,255,255,0.1); margin: 3rem 0 2rem; }
.footer-copy { text-align: center; color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* Utility / Admin Layout Components */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 4px; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.filter-box { background: #fff; border-radius: 16px; padding: 1.5rem; border: 1px solid #e5e7eb; margin-bottom: 2rem; }
.a-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); border: 1px solid #e5e7eb; overflow: hidden; }
.admin-side { background: var(--dark); color: #fff; min-height: 100vh; }
.a-nav-item { display: flex; align-items: center; padding: 0.75rem 1.5rem; color: rgba(255,255,255,0.7); transition: var(--tr); border-left: 3px solid transparent; }
.a-nav-item:hover, .a-nav-item.active { background: rgba(255,255,255,0.05); color: var(--gold); border-left-color: var(--gold); }
.form-ctrl { width: 100%; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid #e5e7eb; background: #fafafa; transition: var(--tr); outline: none; }
.form-ctrl:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.form-lbl { display: block; font-weight: 500; font-size: 0.875rem; color: #374151; margin-bottom: 0.5rem; }
.qty-ctrl { display: flex; align-items: center; background: var(--cream); border-radius: 50px; overflow: hidden; width: fit-content; border: 1px solid #e5e7eb; }
.qty-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; font-size: 1.2rem; cursor: pointer; color: var(--dark); transition: var(--tr); }
.qty-btn:hover { background: #e5e7eb; }
.qty-val { width: 40px; text-align: center; background: transparent; border: none; font-weight: 600; font-size: 0.9rem; pointer-events: none; }

.cart-item { background: #fff; border-radius: 12px; padding: 1.5rem; border: 1px solid #e5e7eb; display: flex; gap: 1.5rem; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

/* Mobile Menu */
#mob-menu-btn { background: transparent; border: none; cursor: pointer; color: #fff; }

/* Products Page Missing Classes */
.search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border-radius: 50px; padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb; transition: var(--tr);
}
.search-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.search-bar input {
  border: none; background: transparent; outline: none; flex: 1; font-size: 0.95rem;
}

.filter-section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.1rem; color: var(--dark);
  margin-bottom: 0.75rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem;
}

.f-opt {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: #4b5563; margin-bottom: 0.5rem; cursor: pointer;
}
.f-opt input[type="radio"], .f-opt input[type="checkbox"] {
  accent-color: var(--gold); transform: scale(1.1); cursor: pointer;
}

.empty-state { text-align: center; padding: 4rem 2rem; background: #fff; border-radius: 16px; border: 1px dashed #e5e7eb; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; color: #9ca3af; }
.nav-light { color: #0D0D0D !important; }

/* Product Details Page */
.page-pad { padding-top: 140px; padding-bottom: 80px; }
.zoom-wrap { border-radius: 18px; overflow: hidden; background: #fff; position: relative; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05); }
.thumb-grid { display: flex; gap: 12px; }
.thumb { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: var(--tr); background: #fff; }
.thumb.active, .thumb:hover { border-color: var(--gold); transform: translateY(-2px); }
.bundle-item-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.stock-ok { color: #10b981; font-weight: 500; font-size: 14px; }
.stock-low { color: #f59e0b; font-weight: 500; font-size: 14px; }

/* Cart Page */
.form-row { margin-bottom: 1.25rem; }
.cart-item-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; background: var(--cream-2); flex-shrink: 0; }

/* Admin Dashboard Elements */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-logo { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
.admin-main { flex: 1; padding: 40px; }
.a-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.a-stat-num { font-size: 2.5rem; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; line-height: 1; margin-bottom: 8px; }
.a-stat-lbl { font-size: 0.85rem; color: #6b7280; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.a-btn-sm { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: none; cursor: pointer; transition: var(--tr); }
.a-table { width: 100%; border-collapse: collapse; }
.a-table th { background: #f9fafb; border-bottom: 1px solid #e5e7eb; padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: #4b5563; text-transform: uppercase; }
.a-table td { padding: 16px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
