@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Poppins:wght@300;400;500&display=swap');

:root {
  --primary-color: #218edd;
  --primary-light: #3da0e6;
  --secondary-color: #c5a059;
  --bg-color: #ffffff;
  --surface-color: #f7f9fa;
  --text-main: #111111;
  --text-muted: #666666;
  --white: #ffffff;
  --danger: #d93025;
  --success: #1e8e3e;
  
  --border-radius: 6px;
  --border-radius-lg: 12px;
  --border-radius-sm: 3px;
  
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(33, 142, 221, 0.15);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #dcdcdc;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-main);
}

.btn-danger {
  background-color: #fdf5f5;
  color: var(--danger);
  border: 1px solid #fad2d2;
}

.btn-danger:hover {
  background-color: var(--danger);
  color: var(--white);
}

.btn:disabled, .btn[disabled] {
  background-color: #f5f5f5;
  color: #a0a0a0;
  border-color: #eeeeee;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Navbar */
header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #f2f2f2;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--text-main);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 26px;
  height: 18px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 1.5px;
  width: 100%;
  background: var(--text-main);
  transition: var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--surface-color);
  height: 65vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.hero-content h1 {
  font-size: 3.8rem;
  margin-bottom: 15px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--white);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  font-weight: 300;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Brand Logos Slideshow */
.logo-slider {
  background: var(--white);
  padding: 40px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-bottom: 1px solid #f2f2f2;
  display: flex;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-logos 25s linear infinite;
}

.logo-track img {
  width: 150px;
  height: 80px;
  object-fit: contain;
  margin-right: 80px;
  transition: var(--transition);
  flex-shrink: 0;
}

.logo-track img:hover {
  transform: scale(1.05); /* Slight interactive bump instead of color change */
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-10%); } 
}

/* Filters & Search */
.shop-controls {
  padding: 80px 0 50px;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  font-weight: 400;
}

.search-bar {
  max-width: 450px;
  margin: 0 auto 40px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: var(--border-radius-sm);
  border: 1px solid #e5e5e5;
  background-color: var(--surface-color);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--text-main);
  background-color: var(--white);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.filter-btn {
  padding: 5px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  position: relative;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active::after, .filter-btn:hover::after {
  width: 100%;
}

/* Products Grid */
.products-section {
  padding: 0 0 120px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 60px 40px;
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 130%;
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stock-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.stock-badge.in { color: var(--text-main); }
.stock-badge.out { color: var(--text-muted); border: 1px solid #eaeaea; }

.product-info {
  padding: 24px 10px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.product-category {
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
  line-height: 1.3;
  color: #000000;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 25px;
}

.product-card .btn {
  width: 100%;
  margin-top: auto;
  padding: 14px;
  background: transparent;
  color: var(--text-main);
  border: 1px solid #e0e0e0;
}

.product-card .btn:hover:not(:disabled) {
  background: var(--text-main);
  color: var(--white);
  border-color: var(--text-main);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

/* Checkout Section */
.checkout-section {
  background-color: var(--surface-color);
  padding: 100px 0;
  text-align: center;
}

.checkout-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f2f2f2;
}

.checkout-card h3 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  font-weight: 400;
}

.bank-details {
  background: var(--surface-color);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 35px;
  text-align: left;
  border: 1px solid #ebebeb;
}

.bank-details p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 15px;
}
.bank-details p:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.bank-details p strong {
  color: var(--text-muted);
  font-weight: 500;
}
.bank-details p span {
  font-weight: 500;
  color: var(--text-main);
}

.checkout-instructions {
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Admin Panel */
.admin-container {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-header h1 {
  font-size: 2.5rem;
  font-weight: 400;
}

.admin-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  border: 1px solid #f2f2f2;
}

.admin-card h2 {
  margin-bottom: 35px;
  font-size: 1.8rem;
  font-weight: 500;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--text-main);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.admin-table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid #f0f0f0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.admin-table th, .admin-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.admin-table th {
  font-weight: 500;
  color: #888;
  background-color: #fafafa;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

.action-btns {
  display: flex;
  gap: 10px;
}

.action-btns .btn {
  padding: 8px 16px;
  font-size: 0.75rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.toast {
  background-color: var(--text-main);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 400;
  font-size: 0.9rem;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  background-color: var(--danger);
}

.toast.success {
  background-color: var(--success);
}

/* Footer */
footer {
  background-color: var(--text-main);
  color: var(--white);
  padding: 80px 20px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col p {
  color: #a0a0a0;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col a {
  color: #a0a0a0;
  font-weight: 300;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Cart Navigation */
#cart-nav-btn {
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

#cart-nav-btn:hover {
  color: var(--primary-color);
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--text-main);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1.5px solid var(--white);
}

/* Cart Modal Overlay */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-modal {
  position: fixed;
  top: 0; right: 0;
  width: 100%; max-width: 420px;
  height: 100vh;
  background: var(--white);
  z-index: 1100;
  box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-modal.active { transform: translateX(0); }

.cart-header {
  padding: 30px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 { font-size: 1.5rem; margin: 0; font-family: 'Playfair Display', serif; font-weight: 500; }
.close-cart { background: none; border: none; font-size: 2rem; cursor: pointer; color: #999; line-height: 1; transition: var(--transition); }
.close-cart:hover { color: var(--text-main); }

.cart-items { padding: 30px; flex-grow: 1; overflow-y: auto; }
.cart-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: center; }
.cart-item img { width: 70px; height: 90px; object-fit: cover; border-radius: var(--border-radius-sm); border: 1px solid #f5f5f5; }
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 5px; color: var(--text-main); font-family: 'Playfair Display', serif; }
.cart-item-price { font-size: 0.95rem; color: #777; margin-bottom: 12px; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; }

.qty-btn {
  background: #f9f9f9; border: 1px solid #eaeaea;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-weight: 500; color: var(--text-main);
  display: flex; justify-content: center; align-items: center;
  transition: var(--transition);
}
.qty-btn:hover { background: #eeeeee; }
.cart-item-remove { background: none; border: none; color: var(--danger); font-size: 0.75rem; font-weight: 500; letter-spacing: 1px; cursor: pointer; margin-left: auto; text-transform: uppercase; }

.cart-footer { padding: 30px; border-top: 1px solid #f0f0f0; background: var(--surface-color); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 25px; font-size: 1.25rem; font-weight: 500; color: var(--text-main); }

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 30px 0;
    gap: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .hamburger {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 40px 20px;
  }
  
  .product-title {
    font-size: 1.1rem;
  }

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

  .product-info {
    padding: 15px 5px 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
  }
  
  .product-img-wrap {
    padding-top: 120%;
  }
  
  .toast-container {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }
  
  .toast {
    width: 100%;
    justify-content: center;
  }
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
  0% { background-color: #e2e5e7; }
  100% { background-color: #f0f2f4; }
}

.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
  border-radius: var(--border-radius-sm);
}

.skeleton-text {
  width: 100%;
  height: 1rem;
  margin-bottom: 0.8rem;
}

.skeleton-text:last-child {
  margin-bottom: 0;
  width: 80%;
}

.skeleton-img {
  width: 100%;
  padding-top: 130%; /* same as product-img-wrap */
}

.skeleton-btn {
  width: 100%;
  height: 48px;
  margin-top: 15px;
}
