/* =====================================================
   STRINGS OF FAITH — Rosary Website Stylesheet
   ===================================================== */

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

/* --- CSS Variables --- */
:root {
  --cream:       #fdf8f2;
  --white:       #ffffff;
  --gold:        #c8914a;
  --gold-light:  #f5ede0;
  --gold-dark:   #9e6e30;
  --brown-deep:  #2d1a0e;
  --brown-mid:   #6b4c3b;
  --brown-light: #b08060;
  --border:      #e8d5be;
  --rose:        #f5e8e0;
  --green:       #4a8c5c;
  --red:         #c0392b;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  --nav-height:     70px;
  --section-pad:    80px 20px;
  --max-width:      1200px;

  --shadow-sm: 0 2px 8px rgba(100,60,20,0.08);
  --shadow-md: 0 4px 16px rgba(100,60,20,0.12);
  --shadow-lg: 0 8px 32px rgba(100,60,20,0.16);

  --ease: all 0.3s ease;
  --ease-fast: all 0.15s ease;
}

/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--brown-deep);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; transition: var(--ease-fast); }
ul { list-style:none; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin:0 auto; padding:0 24px; }
.text-center { text-align:center; }
.hidden { display:none !important; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.btn-primary  { background:var(--gold);      color:var(--white); border-color:var(--gold); }
.btn-primary:hover  { background:var(--gold-dark); border-color:var(--gold-dark); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn-outline  { background:transparent;      color:var(--gold);  border-color:var(--gold); }
.btn-outline:hover  { background:var(--gold);      color:var(--white); }
.btn-dark     { background:var(--brown-deep); color:var(--white); border-color:var(--brown-deep); }
.btn-dark:hover     { background:var(--brown-mid);  border-color:var(--brown-mid); }
.btn-danger   { background:var(--red); color:var(--white); border-color:var(--red); }
.btn-danger:hover   { opacity:.85; }
.btn-sm  { padding:8px 16px;  font-size:0.8rem; }
.btn-lg  { padding:16px 36px; font-size:1rem; }

/* --- Alert Banner --- */
.alert-banner {
  background: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-cross { font-size:1.4rem; color:var(--gold); }
.brand-name  {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown-deep);
}
.brand-name span { color:var(--gold); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-mid);
  padding: 4px 0;
  position: relative;
}
.nav-link::after {
  content:'';
  position:absolute;
  bottom:-2px; left:0;
  width:0; height:2px;
  background:var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active { color:var(--gold); }
.nav-link:hover::after,
.nav-link.active::after { width:100%; }

.navbar-right { display:flex; align-items:center; gap:16px; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: var(--ease);
  text-decoration: none;
}
.cart-btn:hover { border-color:var(--gold); background:var(--gold-light); }
.cart-btn svg { width:20px; height:20px; stroke:var(--brown-mid); }
.cart-btn:hover svg { stroke:var(--gold); }
.cart-count {
  position:absolute;
  top:-6px; right:-6px;
  background:var(--gold);
  color:var(--white);
  font-size:0.65rem; font-weight:700;
  width:18px; height:18px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--white);
}

.mobile-menu-btn {
  display:none;
  background:none; border:none; cursor:pointer;
  flex-direction:column; gap:5px; padding:4px;
}
.mobile-menu-btn span {
  display:block; width:24px; height:2px;
  background:var(--brown-mid); transition:var(--ease);
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--rose) 50%, var(--gold-light) 100%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content:'✝';
  position:absolute;
  font-size:200px;
  color:rgba(200,145,74,0.05);
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.page-header h1 {
  font-family:var(--font-heading);
  font-size:3rem; font-weight:600;
  color:var(--brown-deep); margin-bottom:8px;
  position:relative;
}
.page-header p {
  font-size:1.05rem; color:var(--brown-mid);
  font-style:italic; position:relative;
}

/* --- Hero --- */
.hero {
  min-height: calc(90vh - var(--nav-height));
  background: linear-gradient(160deg, #fdf8f2 0%, #f5ede0 40%, #faebd7 100%);
  display: flex;
  align-items: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content:'';
  position:absolute; top:-50px; right:-50px;
  width:400px; height:400px;
  background:radial-gradient(circle,rgba(200,145,74,0.1) 0%,transparent 70%);
  border-radius:50%;
}
.hero::after {
  content:'';
  position:absolute; bottom:-50px; left:-50px;
  width:300px; height:300px;
  background:radial-gradient(circle,rgba(200,145,74,0.08) 0%,transparent 70%);
  border-radius:50%;
}
.hero .container {
  position:relative; z-index:1;
  display:grid; grid-template-columns:1fr 1fr;
  gap:60px; align-items:center;
}
.hero-content h1 {
  font-family:var(--font-heading);
  font-size:3.5rem; font-weight:600; line-height:1.15;
  color:var(--brown-deep); margin-bottom:20px;
}
.hero-content h1 span { color:var(--gold); display:block; }
.hero-content p { font-size:1.05rem; color:var(--brown-mid); margin-bottom:24px; max-width:480px; }
.hero-verse {
  font-family:var(--font-heading);
  font-style:italic; font-size:1rem;
  color:var(--brown-light); margin-bottom:32px;
  padding-left:16px; border-left:3px solid var(--gold);
}
.hero-cta { display:flex; gap:16px; flex-wrap:wrap; }
.hero-image { display:flex; justify-content:center; align-items:center; }
.hero-image-frame {
  width:360px; height:360px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold-light),var(--rose));
  border:4px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-size:8rem;
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(200,145,74,0.08);
  overflow:hidden;
}
.hero-image-frame img { width:100%; height:100%; object-fit:cover; }

/* --- Features Strip --- */
.features-strip {
  background:var(--brown-deep);
  padding:18px 24px;
}
.features-strip .container {
  display:flex; justify-content:center;
  gap:52px; flex-wrap:wrap;
}
.feature-item {
  display:flex; align-items:center; gap:10px;
  color:var(--gold-light);
  font-size:0.88rem; letter-spacing:0.04em;
}
.feature-item .fi { font-size:1.3rem; color:var(--gold); }

/* --- Sections --- */
section { padding:var(--section-pad); }
.section-divider {
  display:flex; align-items:center; justify-content:center;
  gap:12px; margin-bottom:12px;
}
.section-divider::before,
.section-divider::after { content:''; width:60px; height:1px; background:var(--gold); }
.section-divider span { color:var(--gold); font-size:1.2rem; }
.section-title {
  font-family:var(--font-heading);
  font-size:2.5rem; font-weight:600;
  color:var(--brown-deep); text-align:center; margin-bottom:10px;
}
.section-subtitle {
  text-align:center; color:var(--brown-mid);
  font-size:1rem; margin-bottom:48px; font-style:italic;
}

/* --- Product Cards --- */
.products-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px,1fr));
  gap:28px;
}
.product-card {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  transition:var(--ease);
  display:flex; flex-direction:column;
  box-shadow:var(--shadow-sm);
}
.product-card:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color:var(--gold);
}
.product-img-wrap {
  position:relative; padding-top:75%;
  background:var(--gold-light); overflow:hidden;
}
.product-img-wrap img {
  position:absolute; top:0; left:0;
  width:100%; height:100%; object-fit:cover;
  transition:transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform:scale(1.05); }
.product-img-placeholder {
  position:absolute; top:0; left:0;
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:4rem;
  background:linear-gradient(135deg,var(--gold-light),var(--rose));
}
.product-info {
  padding:20px; display:flex; flex-direction:column; flex:1;
}
.product-name {
  font-family:var(--font-heading);
  font-size:1.2rem; font-weight:600;
  color:var(--brown-deep); margin-bottom:8px;
}
.product-desc {
  font-size:0.875rem; color:var(--brown-mid);
  margin-bottom:16px; line-height:1.55; flex:1;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.product-footer {
  display:flex; align-items:center;
  justify-content:space-between; gap:12px; margin-top:auto;
}
.product-price { font-size:1.25rem; font-weight:700; color:var(--gold-dark); }
.add-to-cart-btn {
  padding:9px 18px;
  background:var(--gold); color:var(--white);
  border:none; border-radius:4px;
  font-size:0.78rem; font-weight:700;
  letter-spacing:0.05em; text-transform:uppercase;
  cursor:pointer; transition:var(--ease);
}
.add-to-cart-btn:hover  { background:var(--gold-dark); transform:scale(1.02); }
.add-to-cart-btn.added { background:var(--green); }

.view-details-btn {
  padding: 9px 14px;
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.view-details-btn:hover { background: var(--gold); color: var(--white); }

/* --- Shop Filters --- */
.shop-filters {
  display:flex; align-items:center; gap:12px;
  margin-bottom:36px; flex-wrap:wrap;
}
.filter-label {
  font-size:0.82rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.06em;
  color:var(--brown-mid);
}
.filter-btn {
  padding:8px 18px;
  border:1px solid var(--border); border-radius:20px;
  background:var(--white); color:var(--brown-mid);
  font-size:0.84rem; cursor:pointer; transition:var(--ease);
}
.filter-btn.active,
.filter-btn:hover { background:var(--gold); border-color:var(--gold); color:var(--white); }

/* --- Cart Page --- */
.cart-section { padding:60px 24px; }
.cart-layout {
  display:grid; grid-template-columns:1fr 360px;
  gap:40px; align-items:start;
}
.cart-items-list {
  background:var(--white); border:1px solid var(--border);
  border-radius:12px; overflow:hidden; box-shadow:var(--shadow-sm);
}
.cart-items-header {
  padding:20px 24px; border-bottom:1px solid var(--border);
  background:var(--gold-light);
}
.cart-items-header h2 {
  font-family:var(--font-heading); font-size:1.5rem; color:var(--brown-deep);
}
.cart-item {
  display:grid; grid-template-columns:90px 1fr auto;
  gap:16px; align-items:center;
  padding:20px 24px; border-bottom:1px solid var(--border);
  transition:var(--ease);
}
.cart-item:last-child { border-bottom:none; }
.cart-item:hover { background:var(--cream); }
.cart-item-img {
  width:90px; height:90px; border-radius:8px;
  background:var(--gold-light);
  display:flex; align-items:center; justify-content:center;
  font-size:2rem; color:var(--gold);
  overflow:hidden; flex-shrink:0;
}
.cart-item-img img { width:100%; height:100%; object-fit:cover; }
.cart-item-details .item-name {
  font-family:var(--font-heading); font-size:1.1rem; font-weight:600; margin-bottom:4px;
}
.cart-item-details .item-price { color:var(--gold-dark); font-size:0.9rem; margin-bottom:12px; }
.qty-control {
  display:flex; align-items:center;
  border:1px solid var(--border); border-radius:4px;
  overflow:hidden; width:fit-content;
}
.qty-btn {
  background:var(--cream); border:none;
  width:32px; height:32px; cursor:pointer;
  font-size:1.1rem; color:var(--brown-mid);
  display:flex; align-items:center; justify-content:center;
  transition:var(--ease-fast);
}
.qty-btn:hover { background:var(--gold); color:var(--white); }
.qty-value {
  width:40px; height:32px; text-align:center;
  border:none; border-left:1px solid var(--border); border-right:1px solid var(--border);
  font-family:var(--font-body); font-size:0.9rem; font-weight:700;
  background:var(--white); color:var(--brown-deep);
}
.cart-item-actions { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.item-total-price { font-size:1.1rem; font-weight:700; color:var(--brown-deep); }
.remove-item-btn {
  background:none; border:none; color:var(--red);
  cursor:pointer; font-size:0.8rem; padding:4px;
  opacity:0.55; transition:opacity 0.2s;
}
.remove-item-btn:hover { opacity:1; }
.cart-empty {
  text-align:center; padding:60px 24px; color:var(--brown-mid);
}
.cart-empty .cart-empty-icon { font-size:4rem; margin-bottom:16px; opacity:.45; }
.cart-empty h3 { font-family:var(--font-heading); font-size:1.8rem; margin-bottom:8px; }

/* Order Summary */
.order-summary {
  background:var(--white); border:1px solid var(--border);
  border-radius:12px; padding:28px;
  box-shadow:var(--shadow-sm);
  position:sticky; top:calc(var(--nav-height) + 20px);
}
.order-summary h2 {
  font-family:var(--font-heading); font-size:1.5rem;
  margin-bottom:20px; color:var(--brown-deep);
  padding-bottom:12px; border-bottom:2px solid var(--gold-light);
}
.summary-line {
  display:flex; justify-content:space-between;
  margin-bottom:12px; font-size:0.92rem;
}
.summary-line.total {
  font-size:1.2rem; font-weight:700;
  color:var(--brown-deep); padding-top:12px;
  border-top:1px solid var(--border); margin-top:8px;
}
.paypal-btn-container { margin-top:20px; }
.paypal-note {
  font-size:0.76rem; color:var(--brown-light);
  text-align:center; margin-top:10px;
}

/* --- About Page --- */
.about-hero {
  background:linear-gradient(160deg, var(--gold-light) 0%, var(--rose) 100%);
  padding:80px 24px; text-align:center;
  position:relative; overflow:hidden;
}
.about-hero::before {
  content:'✝'; position:absolute;
  font-size:260px; color:rgba(200,145,74,0.05);
  top:50%; left:50%; transform:translate(-50%,-50%);
}
.about-hero h1 {
  font-family:var(--font-heading); font-size:3.2rem;
  color:var(--brown-deep); margin-bottom:16px; position:relative;
}
.about-hero p {
  font-size:1.1rem; color:var(--brown-mid);
  max-width:580px; margin:0 auto 28px;
  font-style:italic; position:relative;
}
.about-content { padding:80px 24px; }
.about-layout {
  display:grid; grid-template-columns:1fr 1fr;
  gap:60px; align-items:center;
  max-width:1000px; margin:0 auto;
}
.about-image-frame {
  width:100%; aspect-ratio:1;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold-light),var(--rose));
  border:4px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-size:6rem;
  box-shadow:var(--shadow-lg), 0 0 0 10px rgba(200,145,74,0.08);
  overflow:hidden; max-width:380px; margin:0 auto;
}
.about-image-frame img { width:100%; height:100%; object-fit:cover; }
.about-text h2 {
  font-family:var(--font-heading); font-size:2.2rem;
  color:var(--brown-deep); margin-bottom:16px;
}
.about-text p { color:var(--brown-mid); margin-bottom:16px; line-height:1.8; }
.about-text .scripture {
  background:var(--gold-light); border-left:4px solid var(--gold);
  padding:16px 20px; border-radius:0 8px 8px 0;
  margin:24px 0;
  font-family:var(--font-heading); font-style:italic;
  font-size:1.05rem; color:var(--brown-mid);
}

/* About Features Dark Band */
.about-features {
  background:var(--brown-deep); padding:70px 24px; text-align:center;
}
.about-features .section-title  { color:var(--gold-light); }
.about-features .section-subtitle { color:rgba(245,237,224,.65); }
.features-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:32px; max-width:900px; margin:0 auto;
}
.feature-card { text-align:center; padding:28px 16px; }
.feature-card .icon { font-size:2.4rem; margin-bottom:14px; display:block; }
.feature-card h3 {
  font-family:var(--font-heading); font-size:1.25rem;
  color:var(--gold-light); margin-bottom:8px;
}
.feature-card p { font-size:0.88rem; color:rgba(245,237,224,.65); line-height:1.6; }

/* Socials Section */
.socials-section {
  padding:80px 24px; text-align:center; background:var(--gold-light);
}
.socials-grid {
  display:flex; justify-content:center;
  gap:16px; flex-wrap:wrap; margin-top:32px;
}
.social-link {
  display:flex; align-items:center; gap:10px;
  padding:14px 26px;
  background:var(--white); border:2px solid var(--border);
  border-radius:50px; color:var(--brown-mid);
  font-weight:700; font-size:0.9rem;
  text-transform:uppercase; letter-spacing:0.05em;
  transition:var(--ease); box-shadow:var(--shadow-sm);
}
.social-link:hover {
  border-color:var(--gold); color:var(--gold);
  box-shadow:var(--shadow-md); transform:translateY(-2px);
}
.social-icon { font-size:1.2rem; }

/* --- Admin Page --- */
.admin-login {
  min-height:calc(100vh - var(--nav-height));
  display:flex; align-items:center; justify-content:center;
  padding:40px 24px;
}
.admin-login-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:16px; padding:48px;
  max-width:420px; width:100%;
  box-shadow:var(--shadow-lg); text-align:center;
}
.admin-login-card .admin-icon { font-size:3rem; margin-bottom:16px; }
.admin-login-card h2 {
  font-family:var(--font-heading); font-size:2rem; margin-bottom:8px;
}
.admin-login-card p { color:var(--brown-mid); font-size:0.9rem; margin-bottom:32px; }

.admin-panel { padding:40px 24px; }
.admin-panel-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:32px; padding-bottom:20px;
  border-bottom:2px solid var(--border);
}
.admin-panel-header h1 { font-family:var(--font-heading); font-size:2rem; }

.products-table-wrap {
  background:var(--white); border:1px solid var(--border);
  border-radius:12px; overflow:hidden;
  box-shadow:var(--shadow-sm); overflow-x:auto;
}
.products-table { width:100%; border-collapse:collapse; font-size:0.88rem; }
.products-table th {
  background:var(--gold-light); padding:14px 16px; text-align:left;
  font-weight:700; font-size:0.78rem; letter-spacing:0.06em;
  text-transform:uppercase; color:var(--brown-mid);
  border-bottom:1px solid var(--border);
}
.products-table td {
  padding:14px 16px; border-bottom:1px solid var(--border);
  vertical-align:middle; color:var(--brown-deep);
}
.products-table tr:last-child td { border-bottom:none; }
.products-table tr:hover td { background:var(--cream); }
.table-product-img {
  width:56px; height:56px; border-radius:6px;
  background:var(--gold-light); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; color:var(--gold);
}
.table-product-img img { width:100%; height:100%; object-fit:cover; }
.table-actions { display:flex; gap:8px; }

/* --- Modal --- */
.modal-overlay {
  position:fixed; inset:0;
  background:rgba(45,26,14,0.55);
  z-index:2000;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  backdrop-filter:blur(4px);
  opacity:0; visibility:hidden; transition:var(--ease);
}
.modal-overlay.active { opacity:1; visibility:visible; }
.modal {
  background:var(--white); border-radius:16px;
  padding:36px; max-width:560px; width:100%;
  max-height:90vh; overflow-y:auto;
  box-shadow:var(--shadow-lg);
  transform:translateY(20px); transition:var(--ease);
}
.modal-overlay.active .modal { transform:translateY(0); }
.modal-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid var(--border);
}
.modal-header h2 { font-family:var(--font-heading); font-size:1.6rem; }
.modal-close {
  background:none; border:none; font-size:1.5rem;
  cursor:pointer; color:var(--brown-mid); padding:4px; line-height:1;
}

/* --- Forms --- */
.form-group { margin-bottom:20px; }
.form-group label {
  display:block; font-size:0.82rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.05em;
  color:var(--brown-mid); margin-bottom:6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width:100%; padding:11px 14px;
  border:1px solid var(--border); border-radius:6px;
  font-family:var(--font-body); font-size:0.95rem;
  color:var(--brown-deep); background:var(--cream);
  transition:var(--ease-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline:none; border-color:var(--gold); background:var(--white);
  box-shadow:0 0 0 3px rgba(200,145,74,0.15);
}
.form-group textarea { resize:vertical; min-height:90px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-actions {
  display:flex; gap:12px; justify-content:flex-end;
  margin-top:24px; padding-top:20px; border-top:1px solid var(--border);
}
.form-error {
  background:#fde8e8; border:1px solid #f5c6c6;
  color:var(--red); padding:10px 14px; border-radius:6px;
  font-size:0.88rem; margin-top:12px;
}

/* --- Image Upload Preview --- */
.image-upload-area {
  width:100%; height:180px;
  border:2px dashed var(--border); border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; cursor:pointer; transition:var(--ease);
  background:var(--cream); margin-bottom:8px; position:relative;
}
.image-upload-area:hover { border-color:var(--gold); background:var(--gold-light); }
.image-upload-area img { width:100%; height:100%; object-fit:cover; }
.img-placeholder {
  text-align:center; color:var(--brown-light);
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.img-placeholder .icon { font-size:2.4rem; }
.img-placeholder span { font-size:0.85rem; }

/* --- Toast --- */
.toast-container {
  position:fixed; bottom:24px; right:24px; z-index:3000;
  display:flex; flex-direction:column; gap:8px;
}
.toast {
  background:var(--brown-deep); color:var(--white);
  padding:14px 20px; border-radius:8px;
  font-size:0.9rem; box-shadow:var(--shadow-lg);
  display:flex; align-items:center; gap:10px;
  animation:slideInToast 0.3s ease;
  max-width:320px;
}
.toast.success { background:var(--green); }
.toast.error   { background:var(--red); }
@keyframes slideInToast {
  from { transform:translateX(110%); opacity:0; }
  to   { transform:translateX(0);    opacity:1; }
}

/* --- Spinner --- */
.spinner {
  width:40px; height:40px;
  border:3px solid var(--border); border-top-color:var(--gold);
  border-radius:50%; animation:spin 0.8s linear infinite;
  margin:40px auto;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* --- Footer --- */
footer {
  background:var(--brown-deep);
  color:var(--gold-light);
  padding:52px 24px 24px;
  margin-top:auto;
}
.footer-content {
  display:grid; grid-template-columns:2fr 1fr 1fr;
  gap:40px; max-width:var(--max-width); margin:0 auto;
  padding-bottom:32px; border-bottom:1px solid rgba(200,145,74,.2);
}
.footer-brand .fn {
  font-family:var(--font-heading); font-size:1.5rem; color:var(--gold); margin-bottom:12px;
}
.footer-brand p { font-size:0.88rem; color:rgba(245,237,224,.6); line-height:1.7; max-width:280px; }
.footer-col h4 {
  font-size:0.78rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.1em;
  color:var(--gold); margin-bottom:16px;
}
.footer-col ul { display:flex; flex-direction:column; gap:8px; }
.footer-col ul li a { font-size:0.88rem; color:rgba(245,237,224,.6); transition:color 0.2s; }
.footer-col ul li a:hover { color:var(--gold); }
.footer-bottom {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:20px; max-width:var(--max-width); margin:0 auto;
  font-size:0.78rem; color:rgba(245,237,224,.4);
  flex-wrap:wrap; gap:8px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero .container { grid-template-columns:1fr; text-align:center; }
  .hero-content p  { max-width:100%; }
  .hero-cta        { justify-content:center; }
  .hero-image      { display:none; }
  .about-layout    { grid-template-columns:1fr; }
  .about-image-wrap{ display:none; }
  .cart-layout     { grid-template-columns:1fr; }
  .footer-content  { grid-template-columns:1fr 1fr; }
  .footer-brand    { grid-column:1/-1; }
}
@media (max-width: 640px) {
  .navbar-nav {
    position:fixed; top:var(--nav-height); left:0; right:0;
    background:var(--white); flex-direction:column;
    padding:20px; border-bottom:1px solid var(--border);
    box-shadow:var(--shadow-md); gap:4px;
    transform:translateY(-120%); opacity:0; transition:var(--ease); z-index:999;
  }
  .navbar-nav.open { transform:translateY(0); opacity:1; }
  .mobile-menu-btn { display:flex; }
  .hero-content h1 { font-size:2.4rem; }
  .section-title   { font-size:2rem; }
  .page-header h1  { font-size:2.2rem; }
  .cart-item { grid-template-columns:70px 1fr; }
  .cart-item-actions { grid-column:1/-1; flex-direction:row; justify-content:space-between; }
  .footer-content { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
}

/* =====================================================
   PINK THEME
   ===================================================== */
[data-theme="pink"] {
  --cream:       #fff5f8;
  --gold:        #d4698b;
  --gold-light:  #fce8f0;
  --gold-dark:   #a84468;
  --brown-deep:  #3b1020;
  --brown-mid:   #8b3a5a;
  --brown-light: #c47a9a;
  --border:      #f0c4d4;
  --rose:        #fce4ec;

  --shadow-sm: 0 2px 8px rgba(180,60,100,0.08);
  --shadow-md: 0 4px 16px rgba(180,60,100,0.12);
  --shadow-lg: 0 8px 32px rgba(180,60,100,0.16);
}

/* --- Admin Theme Presets --- */
.theme-presets {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.theme-preset-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brown-mid);
  transition: var(--ease);
}
.theme-preset-btn:hover { border-color: var(--gold); color: var(--gold); }
.theme-preset-btn.active { border-color: var(--gold); background: var(--gold-light); color: var(--brown-deep); }
.theme-swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* =====================================================
   PRODUCT CARD — make <a> behave like the old <div>
   ===================================================== */
a.product-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */
.product-detail-section {
  padding: 40px 24px 80px;
  min-height: 60vh;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--brown-light);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--brown-mid); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span:not([aria-hidden]) { color: var(--brown-deep); font-weight: 600; }

/* Two-column layout: carousel | info */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* =====================================================
   CAROUSEL
   ===================================================== */
.carousel-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.carousel {
  position: relative;
  background: #1a1008;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: grid;
  width: 100%;
}

.carousel-slide {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease;
  background: var(--gold-light);
}
.carousel-slide.active {
  opacity: 1;
  height: auto;
  overflow: visible;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-slide iframe,
.carousel-slide video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  display: block;
}

.carousel-empty {
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.4;
}

/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--brown-deep);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  user-select: none;
}
.carousel-arrow:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--ease);
}
.carousel-dot.active,
.carousel-dot:hover { background: var(--gold); }

/* =====================================================
   PRODUCT DETAIL INFO PANEL
   ===================================================== */
.product-detail-info {
  padding-top: 8px;
}

.product-detail-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  background: var(--gold-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.product-detail-name {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--brown-deep);
  line-height: 1.2;
  margin-bottom: 16px;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 24px;
}

.product-detail-desc {
  font-size: 1rem;
  color: var(--brown-mid);
  line-height: 1.8;
  margin-bottom: 32px;
}
.product-detail-desc p {
  margin: 0 0 14px;
}
.product-detail-desc .desc-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 20px 0 6px;
}
.product-detail-desc .desc-list {
  margin: 0 0 14px;
  padding-left: 20px;
}
.product-detail-desc .desc-list li {
  margin-bottom: 4px;
}

.product-detail-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.product-detail-actions .btn-primary.added { background: var(--green); border-color: var(--green); }

.product-detail-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta-item {
  font-size: 0.9rem;
  color: var(--brown-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.meta-icon { font-size: 1.1rem; }

/* Not-found state */
.product-not-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}
.product-not-found h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}
.product-not-found p { color: var(--brown-mid); margin-bottom: 8px; }

/* =====================================================
   ADMIN — Image upload rows
   ===================================================== */
.img-upload-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.img-thumb-preview {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.img-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.thumb-icon { font-size: 1.8rem; }

/* Extra image rows */
.extra-image-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.extra-img-thumb { flex-shrink: 0; }

/* =====================================================
   RESPONSIVE — Product detail
   ===================================================== */
@media (max-width: 860px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .carousel-wrap { position: static; }
  .product-detail-name { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .product-detail-actions { flex-direction: column; }
  .product-detail-actions .btn { width: 100%; justify-content: center; }
}
