:root {
  --vintage-cream: #f4ecdf;
  --vintage-brown: #8b5a2b;
  --vintage-dark-brown: #5c3a21;
  --vintage-green: #2e4a3d;
  --vintage-dark-green: #1a2a22;
  --vintage-black: #1c1c1c;
  --vintage-grey: #6c757d;
  --vintage-light-grey: #e9ecef;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--vintage-cream);
  color: var(--vintage-black);
  /* Subtle texture effect */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}
.cart-product-quantity {
    min-width: 120px;
}

.cart-plus-minus {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin: auto;
    background: #fff;
}

/* زرار + و - */
.btn-quantity {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #063636;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-quantity:hover {
    background: #063636;
    color: #fff;
}

/* الانبوت */
.cart-plus-minus-box {
    width: 50px;
    height: 35px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: #f9fafb;
}

/* إزالة الـ arrows من input type number (لو غيرته) */
.cart-plus-minus-box::-webkit-outer-spin-button,
.cart-plus-minus-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-plus-minus-box {
    -moz-appearance: textfield;
}

/* تأثير عند الضغط */
.btn-quantity:active {
    transform: scale(0.95);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--vintage-dark-green);
}
a{
    list-style: none;
    text-decoration: none;
}

/* Typography styles */
.fs-7 { font-size: 0.85rem; }

/* Navbar */
.navbar {
  background-color: var(--vintage-dark-green) !important;
  border-bottom: 4px solid var(--vintage-brown);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--vintage-cream) !important;
  font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
  color: #d8d8d8;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--vintage-cream);
  border-bottom: 2px solid var(--vintage-brown);
}

/* Custom Buttons */
.btn-vintage {
  background-color: var(--vintage-brown);
  border-color: var(--vintage-brown);
  color: var(--vintage-cream);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-vintage:hover {
  background-color: var(--vintage-dark-brown);
  border-color: var(--vintage-dark-brown);
  color: var(--vintage-cream);
}

.btn-vintage-outline {
  background-color: transparent;
  border: 2px solid var(--vintage-brown);
  color: var(--vintage-brown);
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-vintage-outline:hover {
  background-color: var(--vintage-brown);
  color: var(--vintage-cream);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--vintage-black);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--vintage-cream);
}

.hero-content h1 {
  color: var(--vintage-cream);
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Product Cards */
.card-vintage {
  background-color: #fff;
  border: 1px solid var(--vintage-light-grey);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-vintage:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-vintage .card-img-top {
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--vintage-light-grey);
}

.card-vintage .card-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--vintage-black);
  font-weight: bold;
}

.card-vintage .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vintage-green);
}

.badge-condition {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--vintage-brown);
  color: white;
  padding: 5px 10px;
  border-radius: 2px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

.badge-sold {
  background-color: #dc3545;
}

/* Sidebar Filters */
.filter-section {
  background-color: #fff;
  padding: 20px;
  border: 1px solid var(--vintage-light-grey);
  border-radius: 2px;
}

.filter-title {
  border-bottom: 2px solid var(--vintage-brown);
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.form-check-label {
  color: var(--vintage-black);
}

/* Product Detail */
.gallery-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 1px solid var(--vintage-light-grey);
  border-radius: 2px;
}

.gallery-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  border-radius: 2px;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
  border-color: var(--vintage-brown);
}

.product-specs {
  background-color: #fff;
  border: 1px solid var(--vintage-light-grey);
  padding: 20px;
  border-radius: 2px;
}

/* Footer */
footer {
  background-color: var(--vintage-dark-green);
  color: var(--vintage-cream);
  padding-top: 50px;
  border-top: 4px solid var(--vintage-brown);
}

footer a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--vintage-cream);
  text-decoration: underline;
}

footer h5 {
  color: var(--vintage-cream);
  border-bottom: 2px solid var(--vintage-brown);
  padding-bottom: 10px;
  display: inline-block;
}

.footer-bottom {
  background-color: #121c17;
  padding: 15px 0;
  margin-top: 40px;
}

/* Trust Badges */
.trust-badges img {
  height: 30px;
  margin: 0 10px;
  opacity: 0.8;
}

/* Search Bar */
.search-form .form-control {
  border-radius: 2px 0 0 2px;
  border: 1px solid var(--vintage-brown);
}
.search-form .btn {
  border-radius: 0 2px 2px 0;
}
