@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─── */
:root {
  --bg: #0e0e0e;
  --surface: #161616;
  --card: #1c1c1c;
  --border: #2a2a2a;
  --accent: #c9933a;
  --accent-lt: #e0b060;
  --text: #f0ece4;
  --muted: #888;
  --danger: #c0392b;
  --danger-lt: #e05545;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
#alert{
  display: none;
}
/*styles for cart.html*/
#cart_img{
  width: 400px;
  height: 400px;
  margin-top: 10px;
}
#cart_title{
margin:20px ;
}
#one_cart{
display: flex;
}
.cart_div{
  width: 97%;
  background-color: #c9933a;
  padding: 20px; 
  margin: 20px;  
  border-radius: 20px;
}
/* reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

input,
button {
  font-family: inherit;
}


.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo img {
  width: 35px;
  height: 35px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

#outbtn {
    background: none;
    border:none;
    border: solid ;
    color: var(--danger);
    padding:5px  10px;
    font-size: 14px;
    cursor: pointer;
    width: auto;
    border-radius: 5px;
    
}


.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0e0e0e;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 147, 58, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #0e0e0e;
  transform: translateY(-2px);
}

.btn-danger {
  background: transparent;
  color: var(--danger-lt);
  border: 2px solid var(--danger);
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  transform: translateY(-1px);
}


.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 5%;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 147, 58, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201, 147, 58, 0.05) 0%, transparent 60%),
    var(--bg);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 147, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 147, 58, 0.04) 1px, transparent 1px);
  background-size: 70px 70px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero-heading span {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 2.8rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-cta {
  animation: fadeUp 0.8s ease 0.45s both;
}

.hero-cta .btn {
  padding: 1rem 2.8rem;
  font-size: 0.95rem;
}


.page-header {
  padding: 4rem 5% 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header h1 span {
  color: var(--accent);
}

.page-header p {
  color: var(--muted);
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.divider {
  width: 600px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-lt));
  border-radius: 2px;
  margin: 1rem auto 0;
}

.divider2 {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-lt));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ─── Products Grid ─── */
.products-section {
  padding: 2rem 5% 5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.6rem;
  max-width: 1280px;
  margin: 0 auto;
  animation-name: fadeInSlide;
  animation-duration: 1.2s;
  animation-timing-function: ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  display: flex;
  flex-direction: column;
  
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 147, 58, 0.35);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.07);
}

.card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.7rem;
}

.card-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.card-price span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.3rem;
}

.card-actions .btn-outline {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
}

.form-section {
  padding: 2rem 20px 5rem;
  display: flex;
  justify-content: center;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.8rem 3rem;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.form-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.form-card .form-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.6rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-group input::placeholder {
  color: #444;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 147, 58, 0.15);
}

.form-submit {
  width: 100%;
  margin-top: 0.8rem;
  padding: 1rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

/* ─── Product Detail Page Styles ─── */

/* Breadcrumb */
.breadcrumb-section {
  padding: 1.2rem 5%;
  border-bottom: 1px solid var(--border);
  background: rgba(22, 22, 22, 0.5);
}

.breadcrumb-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.breadcrumb-container a {
  color: var(--accent);
  transition: color 0.25s;
}

.breadcrumb-container a:hover {
  color: var(--accent-lt);
}

.breadcrumb-container span {
  color: var(--muted);
}

.breadcrumb-container .current {
  color: var(--muted);
}

/* Product Detail Section */
.product-detail-section {
  padding: 3rem 5% 5rem;
}

.product-detail-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-image-wrapper {
  position: sticky;
  top: 100px;
}

.product-image {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stars {
  display: flex;
  gap: 0.2rem;
  font-size: 1.1rem;
}

.star {
  color: var(--accent);
}

.star.half {
  position: relative;
  color: var(--muted);
}

.star.half::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--accent);
  overflow: hidden;
  width: 50%;
}

.rating-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-price-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.product-price .currency {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.3rem;
}

.product-stock {
  display: inline-block;
  width: fit-content;
  padding: 0.4rem 1rem;
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.product-description {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-description h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.product-description p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-features h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.product-features ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-left: 1.2rem;
}

.product-features li {
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  padding-left: 0.8rem;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: -0.8rem;
  color: var(--accent);
  font-weight: bold;
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quantity-selector label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s;
  font-weight: 600;
}

.qty-btn:hover {
  background: rgba(201, 147, 58, 0.1);
}

#quantity {
  width: 60px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#quantity[type=number] {
  -moz-appearance: textfield;
}

.add-to-cart {
  flex: 1;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
}

/* Product Meta */
.product-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(201, 147, 58, 0.05);
  border: 1px solid rgba(201, 147, 58, 0.15);
  border-radius: var(--radius);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.meta-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  color: var(--text);
  font-size: 0.95rem;
}

/* Related Products Section */
.related-products-section {
  padding: 4rem 5% 5rem;
  background: rgba(22, 22, 22, 0.3);
  border-top: 1px solid var(--border);
}

.related-header {
  text-align: center;
  margin-bottom: 3rem;
}

.related-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.related-header h2 span {
  color: var(--accent);
}

.related-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 5%;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.footer span {
  color: var(--accent);
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-image-wrapper {
    position: static;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 4%;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding: 5rem 5%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
  }

  .form-card {
    padding: 2rem 1.5rem;
  }

  .product-detail-section {
    padding: 2rem 5% 3rem;
  }

  .product-image-wrapper {
    position: static;
  }

  .product-actions {
    flex-direction: column;
  }

  .add-to-cart {
    width: 100%;
  }

  .breadcrumb-section {
    padding: 1rem 5%;
  }

  .breadcrumb-container {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn-outline,
  .btn-danger {
    width: 100%;
    text-align: center;
  }

  .product-detail-section {
    padding: 1.5rem 5%;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.8rem;
  }

  .product-actions {
    gap: 0.5rem;
  }

  .quantity-control {
    width: 100%;
    justify-content: space-between;
  }

  .qty-btn {
    width: 35px;
    height: 35px;
  }

  #quantity {
    width: 50px;
  }

  .product-meta {
    gap: 0.8rem;
  }

  .meta-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .related-header h2 {
    font-size: 1.5rem;
  }
}

@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}