/* ============================================================
   SHOP PAGE — Complete Standalone Stylesheet
   Load ONLY this file on shop pages. Do NOT load style.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --primary:       #ff6600;
  --secondary:     #222831;
  --accent:        #ffd700;
  --bg:            #181c20;
  --bg-card:       #23272d;
  --border-radius: 18px;
  --shadow:        0 2px 24px rgba(0,0,0,0.15);
  --text:          #222;
  --muted:         #b6bbc7;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f7f9fa;
  color: var(--text);
  padding-top: 64px;
  font-size: 16px;
  line-height: 1.6;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  background: #ff6600 !important;
  border-bottom: 2px solid #ff6600;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  padding: 0.7rem 0;
  transition: box-shadow 0.2s, background 0.2s;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  min-height: 64px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #ff660044;
  transition: opacity 0.2s;
}
.navbar-logo:hover { opacity: 0.85; }
.navbar-logo img   { height: 2.2rem; width: auto; }
.navbar-logo span  { font-weight: 900; color: #fff; letter-spacing: 1.5px; }

.navbar-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  flex-wrap: wrap;
}
.navbar-links a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.07rem;
  padding: 0.3rem 1.1rem;
  border-radius: 7px;
  letter-spacing: 0.7px;
  background: none;
  transition: background 0.18s, box-shadow 0.18s;
}
.navbar-links a:hover,
.navbar-links a:focus {
  background: rgba(255,255,255,0.15) !important;
  box-shadow: 0 2px 12px #ff660066;
}

.navbar-login-btn {
  background: linear-gradient(90deg, var(--primary) 60%, var(--accent) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.6rem;
  font-weight: 900;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 12px #ff660044;
  margin-left: 1rem;
  display: inline-block;
  text-decoration: none;
}
.navbar-login-btn:hover {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  box-shadow: 0 4px 24px #2b72ff44;
  transform: translateY(-2px) scale(1.04);
  color: #181c20;
}

.navbar-mobile-toggle {
  display: none;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  z-index: 1101;
  margin-left: 1rem;
}

.search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2px 10px;
}
.search-input {
  border: none;
  background: transparent;
  padding: 0.5rem 0.7rem;
  outline: none;
  font-size: 1rem;
  width: 180px;
  color: #fff;
}
.search-input::placeholder { color: rgba(255,255,255,0.7); }
.search-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #fff;
  padding: 0 8px;
}
.nav-icon { font-size: 1.2rem; color: #fff; }

/* ── Mobile Navbar ──────────────────────────────────────────── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .navbar-container { padding: 0 1rem; }
  .navbar-mobile-toggle { display: block; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px; left: 0;
    width: 100vw;
    background: #ff6600;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 6px 28px #ff660033;
    padding: 0.5rem 0 1rem;
    z-index: 1100;
    border-radius: 0 0 18px 18px;
    animation: slideDown 0.23s;
  }
  .navbar-links.show { display: flex; }
  .navbar-links a {
    padding: 1.1rem 2rem;
    border-radius: 0;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255,163,102,0.2);
    margin: 0;
    text-align: left;
  }
  .navbar-links a:last-child { border-bottom: none; }
  .navbar-login-btn { padding: 0.7rem 1.1rem; font-size: 1rem; margin-left: 0.5rem; }
  .search-form { max-width: 120px; margin-right: 0.3rem; }
  .search-input { width: 70px; font-size: 0.95rem; }
  .nav-icon.user-dropdown { display: block !important; position: relative !important; margin-left: 0.2rem; z-index: 1100; }
}

@media (max-width: 600px) {
  .navbar-login-btn { width: 100%; margin: 0.5rem 0; font-size: 1.07rem; padding: 1rem 0; border-radius: 8px; text-align: center; display: block; }
  .search-form { max-width: 90px; }
  .search-input { width: 48px; font-size: 0.83rem; }
}

/* ── Global Buttons (outside cards) ────────────────────────── */
.add-cart-btn {
  width: 100%;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: #ff6600;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
}
.add-cart-btn:hover    { background: #e05500; }
.add-cart-btn:disabled { background: #ccc; color: #fff; cursor: not-allowed; opacity: 0.7; }

.add-wishlist-btn {
  width: 100%;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: #ff7043;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
}
.add-wishlist-btn:hover    { background: #d35400; }
.add-wishlist-btn:disabled { background: #ccc; color: #888; cursor: not-allowed; }

.msg {
  background: #e6f9f2;
  color: #157a6e;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  margin-bottom: 1.3rem;
  font-weight: 500;
  font-size: 1.04rem;
}

/* ── Page Layout ────────────────────────────────────────────── */
.section {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  width: 100%;
}

.section h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

section.products-list-parent {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0 1rem;
}

/* ── Products Grid ──────────────────────────────────────────── */
.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  padding: 0 0.5rem;
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  overflow-x: visible;
}

/* ════════════════════════════════════════════════════════════
   PRODUCT CARD
   HTML structure required:
   <div class="product-card">
     <div class="card-img-wrap"><img src="..." alt="..."></div>
     <div class="card-body">
       <div class="card-title">Full name always shown</div>
       <div class="card-spacer"></div>
       <div class="card-category">Category</div>
       <div class="price">$0.00</div>
       <div class="card-actions">
         <button class="add-cart-btn">Add to Cart</button>
         <button class="add-wishlist-btn">Wishlist</button>
       </div>
     </div>
   </div>
   ════════════════════════════════════════════════════════════ */

.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  border: 1.5px solid #f0f0f0;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255,102,0,0.13);
  border-color: var(--primary);
}

/* ── Photo ── */
.product-card .card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f7f8fa;
  overflow: hidden;
  flex-shrink: 0;
}
.product-card img,
.product-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  margin: 0;
  padding: 0.8rem;
  background: transparent;
  transition: transform 0.3s ease;
}
.product-card:hover img,
.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* ── Card body ── */
.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 0.85rem 0.85rem;
}

/* ── Name ── */
.product-card .card-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  text-align: center;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  display: block;
  max-height: none;
  min-height: unset;
  -webkit-line-clamp: unset;
}

.product-card .card-spacer {
  flex: 1;
  min-height: 0.65rem;
}

/* ── Category: plain grey text, same size as title, no pill ── */
.product-card .card-category {
  font-size: 0.93rem;          /* matches .card-title */
  font-weight: 700;
  text-transform: none;        /* no ALL CAPS */
  letter-spacing: 0;
  color: #666;                 /* dark grey */
  background: none;            /* no pill background */
  border: none;                /* no pill border */
  border-radius: 0;
  padding: 0;
  height: auto;
  line-height: 1.45;
  display: block;
  margin: 0.3rem 0 0.7rem 0;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
  flex-shrink: 0;
}

/* ── Description (optional) ── */
.product-card .card-desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.4;
}

/* ── Price ── */
.product-card .price,
.product-card .card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.8rem 0;
  text-align: center;
  letter-spacing: 0.2px;
}

/* ── Buttons: stacked vertically ── */
.product-card .card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-card .add-cart-btn,
.product-card .add-wishlist-btn {
  flex: 1;
  width: auto;
  margin: 0;
  padding: 0.52rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  letter-spacing: 0.2px;
}

.product-card .add-cart-btn {
  background: #ff6600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,102,0,0.18);
}
.product-card .add-cart-btn:hover {
  background: #e05500;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,102,0,0.28);
}
.product-card .add-cart-btn:disabled {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.product-card .add-wishlist-btn {
  background: #fff;
  color: #ff6600;
  border: 1.5px solid #ff6600;
}
.product-card .add-wishlist-btn:hover {
  background: #fff5f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,102,0,0.13);
}
.product-card .add-wishlist-btn:disabled {
  background: #f5f5f5;
  color: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #23272f;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.footer p { margin: 0.3rem 0; font-size: 0.95rem; color: #b6bbc7; }
.footer-social { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 0.8rem; }
.footer-social a { font-size: 1.7rem; color: #fff; text-decoration: none; transition: color 0.2s; }
.footer-social a:hover { color: var(--primary); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Navbar */
  .navbar-container { padding: 0 1rem; }
  .navbar-mobile-toggle { display: block; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px; left: 0;
    width: 100vw;
    background: #ff6600;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 6px 28px #ff660033;
    padding: 0.5rem 0 1rem;
    z-index: 1100;
    border-radius: 0 0 18px 18px;
    animation: slideDown 0.23s;
  }
  .navbar-links.show { display: flex; }
  .navbar-links a {
    padding: 1.1rem 2rem;
    border-radius: 0;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255,163,102,0.2);
    margin: 0;
    text-align: left;
  }
  .navbar-links a:last-child { border-bottom: none; }
  .navbar-login-btn { padding: 0.7rem 1.1rem; font-size: 1rem; margin-left: 0.5rem; }
  .search-form { max-width: 120px; margin-right: 0.3rem; }
  .search-input { width: 70px; font-size: 0.95rem; }
  .nav-icon.user-dropdown { display: block !important; position: relative !important; margin-left: 0.2rem; z-index: 1100; }

  /* Grid & cards */
  .products-list {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    padding: 0 0.5rem;
  }
  section.products-list-parent { padding: 0 0.5rem; }
  .product-card { border-radius: 12px; }
  .product-card .card-body { padding: 0.75rem 0.7rem 0.7rem; }
  .product-card .card-title  { font-size: 0.88rem; }
  .product-card .card-category { font-size: 0.88rem; }
  .product-card .card-desc   { font-size: 0.9rem; margin-bottom: 0.8rem; }
  .product-card .price,
  .product-card .card-price  { font-size: 1.05rem; margin-bottom: 0.65rem; }
  .product-card .add-cart-btn,
  .product-card .add-wishlist-btn { padding: 0.48rem 0.3rem; font-size: 0.74rem; border-radius: 6px; }

  /* Footer */
  .footer-social { flex-direction: column; align-items: center; gap: 0.6rem; }
}

@media (max-width: 600px) {
  /* Navbar */
  .navbar-login-btn { width: 100%; margin: 0.5rem 0; font-size: 1.07rem; padding: 1rem 0; border-radius: 8px; text-align: center; display: block; }
  .search-form { max-width: 90px; }
  .search-input { width: 48px; font-size: 0.83rem; }

  /* Grid & cards */
  .products-list { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; padding: 0 0.2rem; }
  .product-card { border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
  .product-card .card-body { padding: 0.65rem 0.6rem 0.6rem; }
  .product-card .card-title    { font-size: 0.84rem; }
  .product-card .card-category { font-size: 0.84rem; }
  .product-card .card-desc     { font-size: 0.85rem; margin-bottom: 0.6rem; }
  .product-card .price,
  .product-card .card-price    { font-size: 1rem; margin-bottom: 0.55rem; }
  .product-card .add-cart-btn,
  .product-card .add-wishlist-btn { padding: 0.45rem 0.25rem; font-size: 0.71rem; border-radius: 6px; }
}

@media (max-width: 450px) {
  .products-list { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.4rem; padding: 0 0.1rem; }
  .product-card .card-body { padding: 0.55rem 0.5rem 0.5rem; }
  .product-card .card-title    { font-size: 0.8rem; }
  .product-card .card-category { font-size: 0.8rem; }
  .product-card .card-desc     { font-size: 0.8rem; margin-bottom: 0.5rem; }
  .product-card .price,
  .product-card .card-price    { font-size: 0.95rem; margin-bottom: 0.5rem; }
  .product-card .add-cart-btn,
  .product-card .add-wishlist-btn { padding: 0.42rem 0.2rem; font-size: 0.68rem; }
}