/* 
 * Vinethrift — Main Stylesheet
 * Based on the product blueprint brand identity.
 */

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

:root {
  /* Brand Colors */
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --primary-dark: #0D2818;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #F7F3EC;
  --cream-dark: #EDE7DA;
  --charcoal: #1A1A1A;
  --muted: #6B6B6B;
  --border: #D5CFC5;
  --white: #FFFFFF;
  --danger: #C0392B;
  --success: #27AE60;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --header-announcement-height: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: 56px; font-weight: 900; }
h2 { font-size: 36px; font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  body { font-size: 14px; }
}

/* ── Layout ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--white);
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--white);
}
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--white);
}

.grid {
  display: grid;
  gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--primary-dark);
}
.btn-gold:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white) !important;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  background-color: var(--white);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* ── Header ── */
.announcement-bar {
  background-color: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  height: var(--header-announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold);
  color: var(--primary-dark) !important;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.announcement-cta:hover {
  background: var(--gold-light);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
}

.site-header {
  background-color: var(--white);
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg {
  width: 24px;
  height: 24px;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}
.logo-text span {
  color: var(--gold);
}

.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--charcoal);
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}
.main-nav a.sale-link {
  color: var(--danger);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.action-icon {
  position: relative;
  color: var(--charcoal);
  font-size: 20px;
}
.action-icon:hover {
  color: var(--primary);
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--gold);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--charcoal);
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ── Footer ── */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  font-size: 14px;
}

.footer-top {
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul a:hover {
  color: var(--gold);
}

.footer-logo {
  margin-bottom: 20px;
}
.footer-logo .logo-text {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.social-links a:hover {
  background-color: var(--gold);
  color: var(--primary-dark);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.payment-icons {
  display: flex;
  gap: 10px;
}
.payment-icons img {
  height: 24px;
  background: white;
  border-radius: 4px;
  padding: 2px 4px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ── Product Card ── */
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-img-wrap {
  position: relative;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #f9f9f9;
  overflow: hidden;
}

.product-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.product-img-wrap img.hover-img {
  opacity: 0;
}

.product-card:hover .product-img-wrap img.hover-img {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  z-index: 2;
}

.badge-sale {
  background: var(--danger);
  color: var(--white);
}

.badge-new {
  background: var(--gold);
  color: var(--primary-dark);
}

.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  z-index: 2;
  transition: all 0.2s;
}

.wishlist-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.product-info {
  padding: 20px;
}

.product-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 5px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
}

.price-current {
  color: var(--charcoal);
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 500;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mt-4 { margin-top: 40px; }

/* Alerts / Flashes */
.alert {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ── Premium Hero Section ── */
.hero-premium {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 4s ease-in-out var(--delay) infinite;
}
@keyframes floatParticle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  50% { opacity: 0.7; transform: translateY(-30px) scale(1.3); }
}

/* Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Left Content */
.hero-content {
  animation: fadeSlideUp 0.8s ease-out both;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.hero-tag-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}

.hero-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title-accent {
  color: var(--gold);
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 45px;
}
.hero-btn-primary {
  padding: 14px 28px;
  font-size: 14px;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.hero-btn-primary:hover {
  box-shadow: 0 6px 30px rgba(201,168,76,0.5);
}
.hero-btn-secondary {
  padding: 14px 28px;
  font-size: 14px;
  border-color: rgba(255,255,255,0.3) !important;
  color: var(--white) !important;
  gap: 8px;
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.5) !important;
  color: var(--white) !important;
}

/* Glassmorphism Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 28px;
}
.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.12);
}

/* Right Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeSlideUp 1s ease-out 0.3s both;
}
.hero-glow {
  display: none;
}
.hero-shoe-img {
  max-width: 90%;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  animation: floatShoe 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes floatShoe {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

.hero-price-badge {
  position: absolute;
  bottom: 30px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  animation: fadeSlideUp 1.2s ease-out 0.6s both;
}
.hero-price-from {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}
.hero-price-value {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

/* Hero Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 0; margin-bottom: 10px; }
  .hero-title { font-size: 40px; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-shoe-img { max-height: 280px; }
  .hero-premium { padding: 50px 0 40px; min-height: auto; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 10px; padding: 14px 20px; }
  .hero-stat-divider { width: 60px; height: 1px; }
  .hero-price-badge { bottom: 10px; right: 10px; }
}

/* ── Customer Account styling ── */
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.account-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  height: fit-content;
}
.account-user-info {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream-dark);
}
.account-user-avatar {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.account-user-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-dark);
}
.account-user-email {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.account-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  color: var(--charcoal);
  transition: all 0.2s ease;
}
.account-menu-item:hover, .account-menu-item.active {
  background: var(--cream);
  color: var(--primary);
}
.account-menu-item.active {
  font-weight: 600;
  border-left: 3px solid var(--gold);
}
.account-menu-item i {
  font-size: 18px;
}
.account-menu-item.logout-btn {
  color: var(--danger);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.account-menu-item.logout-btn:hover {
  background: #fdf2f2;
}
.account-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
}
.account-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.account-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.account-card:hover {
  border-color: var(--gold);
  background: rgba(247, 243, 236, 0.5);
}
.account-card-icon {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 10px;
}
.account-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}
.account-card-desc {
  font-size: 12px;
  color: var(--muted);
}
.address-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  position: relative;
  background: var(--white);
}
.address-card.default {
  border-color: var(--primary);
  background: rgba(45, 106, 79, 0.03);
}
.address-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
}
@media (max-width: 992px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-card-grid {
    grid-template-columns: 1fr;
  }
}


