/* Global Styles */
:root {
  --primary-color: #d4af37;
  --secondary-color: #333;
  --background-color: #f9f9f9;
  --text-color: #333;
  --accent-color: #8a6d3b;
  --light-color: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

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

a:hover {
  color: var(--primary-color);
}

.clickable {
  cursor: pointer;
}

/* Header Styles */
header {
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
}

.logo span {
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 30px;
  display: flex;
  align-items: center;
}

nav ul li a {
  color: var(--secondary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  height: 100%;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* User Menu Styles */
.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-name {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.admin-badge {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-icon, .wishlist-icon {
  position: relative;
  color: var(--secondary-color);
  font-size: 1.2rem;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.cart-icon:hover, .wishlist-icon:hover {
  color: var(--primary-color);
  background-color: rgba(212, 175, 55, 0.1);
}

.cart-count, .wishlist-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-btn {
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.user-dropdown-btn:hover {
  color: var(--primary-color);
  background-color: rgba(212, 175, 55, 0.1);
}

.user-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  border-radius: 8px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
}

.user-dropdown:hover .user-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: var(--secondary-color);
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.user-dropdown-content a:last-child {
  border-bottom: none;
}

.user-dropdown-content a:hover {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--primary-color);
}

/* Login/Logout Button Styles */
.login-btn, .logout-btn {
  background-color: var(--primary-color);
  color: var(--light-color) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.login-btn:hover, .logout-btn:hover {
  background-color: var(--accent-color);
  color: var(--light-color) !important;
  transform: translateY(-2px);
}

.user-email {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/fake10.png');
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
  width: 100%;
}

/* User Profile Section */
.user-profile {
  background-color: var(--light-color);
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-content {
  text-align: center;
}

.profile-content h2 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.3rem;
  font-weight: 600;
}

.profile-content p {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Featured Products Section */
.featured-products {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.product-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

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

.product-card:active {
  transform: translateY(-5px);
  transition: transform 0.1s ease;
}

.product-image {
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.product-info p {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
}

.product-actions {
  display: flex;
  justify-content: space-between;
}

/* Categories Section */
.categories {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.category-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--light-color);
  padding: 10px;
  text-align: center;
  font-weight: 600;
}

/* About Section */
.about {
  padding: 80px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 60px 0 20px;
}

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

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column p,
.footer-column address {
  margin-bottom: 15px;
  font-style: normal;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #999;
}

/* Admin Styles */
.admin-container {
  padding: 30px 0;
}

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

.admin-title {
  font-size: 2rem;
  color: var(--secondary-color);
}

.admin-actions {
  display: flex;
  gap: 15px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background-color: var(--light-color);
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.admin-table th {
  background-color: var(--secondary-color);
  color: var(--light-color);
  font-weight: 600;
}

.admin-table tr:hover {
  background-color: #f5f5f5;
}

.admin-table .actions {
  display: flex;
  gap: 10px;
}

.admin-table .actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.admin-table .edit-btn {
  background-color: #4caf50;
  color: white;
}

.admin-table .delete-btn {
  background-color: #f44336;
  color: white;
}

.admin-form {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--light-color);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .user-menu {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .login-btn, .logout-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .user-profile {
    padding: 30px 0;
  }
  
  .profile-content h2 {
    font-size: 1.8rem;
  }
  
  .profile-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-actions .btn {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 15px 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .hero {
    height: 60vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-info h3 {
    font-size: 1.1rem;
  }
  
  .product-price {
    font-size: 1.2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Product Modal Styles */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
  animation: backdropFadeIn 0.3s ease-out;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.product-modal {
  background-color: var(--light-color);
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  transform-origin: center;
  outline: none;
}

.product-modal:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  background-color: #fafafa;
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.modal-header h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.modal-close:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.modal-close:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.modal-close:hover {
  background-color: #f0f0f0;
  color: var(--secondary-color);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.modal-content {
  display: flex;
  max-height: calc(90vh - 100px);
  position: relative;
}

.modal-image-container {
  flex: 1;
  position: relative;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-right: 1px solid #eee;
}

.modal-product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: var(--transition);
  border-radius: 8px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  opacity: 0;
  animation: imageFadeIn 0.5s ease-out forwards;
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-product-image::after {
  content: '🔍';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: var(--transition);
}

.modal-product-image:hover::after {
  opacity: 1;
}

.modal-product-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-product-image:active {
  transform: scale(1.05);
  transition: transform 0.1s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.modal-product-image.fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  z-index: 1001;
  background-color: rgba(0, 0, 0, 0.95);
  cursor: zoom-out;
  border-radius: 0;
  animation: fullscreenFadeIn 0.3s ease-out;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: none;
}

.modal-product-image.fullscreen-image:hover {
  transform: scale(1.01) translateZ(0);
  transition: transform 0.2s ease;
}

.modal-product-image.fullscreen-image:active {
  transform: scale(0.98) translateZ(0);
  transition: transform 0.1s ease;
}

.modal-product-image.fullscreen-image:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

.modal-product-image.fullscreen-image:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

.modal-product-image.fullscreen-image:focus-visible:hover {
  transform: scale(1.01) translateZ(0);
  transition: transform 0.2s ease;
}

.modal-product-image.fullscreen-image:focus-visible:active {
  transform: scale(0.98) translateZ(0);
  transition: transform 0.1s ease;
}

.modal-product-image.fullscreen-image:focus-visible:active:hover {
  transform: scale(1.01) translateZ(0);
  transition: transform 0.2s ease;
}

.modal-product-image.fullscreen-image:focus-visible:active:hover:active {
  transform: scale(0.98) translateZ(0);
  transition: transform 0.1s ease;
}

.modal-product-image.fullscreen-image:focus-visible:active:hover:active:hover {
  transform: scale(1.01) translateZ(0);
  transition: transform 0.2s ease;
}

.modal-product-image.fullscreen-image:focus-visible:active:hover:active:hover:active {
  transform: scale(0.98) translateZ(0);
  transition: transform 0.1s ease;
}

.modal-product-image.fullscreen-image:focus-visible:active:hover:active:hover:active:hover {
  transform: scale(1.01) translateZ(0);
  transition: transform 0.2s ease;
}

.modal-product-image.fullscreen-image:focus-visible:active:hover:active:hover:active:hover:active {
  transform: scale(0.98) translateZ(0);
  transition: transform 0.1s ease;
}

@keyframes fullscreenFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fullscreen-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1002;
}

.fullscreen-close {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: #333;
  font-size: 1.2rem;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  outline: none;
}

.fullscreen-close:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.fullscreen-close:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.fullscreen-close:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fullscreen-close:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.modal-details {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  max-width: 400px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.modal-details::-webkit-scrollbar {
  width: 6px;
}

.modal-details::-webkit-scrollbar-track {
  background: transparent;
}

.modal-details::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

.modal-description h3,
.modal-specs h3 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
  position: relative;
}

.modal-description h3::after,
.modal-specs h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.modal-description p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 1rem;
}

.modal-specs ul {
  list-style: none;
  margin-bottom: 25px;
}

.modal-specs li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #666;
}

.modal-specs li:last-child {
  border-bottom: none;
}

.modal-price-section {
  border-top: 2px solid #eee;
  padding-top: 25px;
  text-align: center;
  position: relative;
}

.modal-price-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.modal-price {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--light-color);
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  transform: scale(1.02);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  transform: scale(1.02);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .product-modal {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .modal-content {
    flex-direction: column;
    max-height: calc(95vh - 100px);
  }
  
  .modal-image-container {
    min-height: 300px;
  }
  
  .modal-details {
    max-width: none;
    padding: 20px;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-product-image {
    cursor: zoom-in;
  }
  
  .fullscreen-controls {
    top: 10px;
    right: 10px;
  }
  
  .fullscreen-close {
    padding: 10px 14px;
    font-size: 1rem;
  }
  
  .modal-product-image:active {
    transform: scale(1.05);
    transition: transform 0.1s ease;
  }
  
  .modal-product-image {
    -webkit-tap-highlight-color: transparent;
  }
  
  .modal-product-image {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

@media (max-width: 576px) {
  .product-modal-overlay {
    padding: 10px;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .modal-content {
    padding: 15px;
  }
  
  .modal-image-container {
    min-height: 250px;
  }
  
  .modal-details {
    padding: 15px;
  }
  
  .modal-product-image {
    cursor: zoom-in;
  }
  
  .fullscreen-controls {
    top: 15px;
    right: 15px;
  }
  
  .fullscreen-close {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* Enhanced User Profile Section */
.user-profile {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 40px 0;
  border-bottom: 1px solid #dee2e6;
}

.profile-content {
  text-align: center;
}

.profile-header h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
}

.profile-header p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 0;
  flex-wrap: wrap;
}

.stat-item {
  background: var(--light-color);
  padding: 10px 18px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  min-width: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  backdrop-filter: blur(10px);
}

.stat-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.95);
}

.stat-item.cart-stat:hover {
  background-color: rgba(212, 175, 55, 0.05);
}

.stat-item.wishlist-stat:hover {
  background-color: rgba(212, 175, 55, 0.05);
}

.stat-item.orders-stat:hover {
  background-color: rgba(212, 175, 55, 0.05);
}



.stat-item i {
  font-size: 1.1rem;
  color: var(--primary-color);
  display: block;
  flex-shrink: 0;
}

.stat-text {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat-text .number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-right: 4px;
}

/* Product Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay .btn {
  min-width: 120px;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal {
  background: var(--light-color);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Specific Modal Widths */
.wishlist-modal {
  max-width: 700px;
}

.cart-modal {
  max-width: 850px;
}

.orders-modal {
  max-width: 750px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 0;
  background: var(--light-color);
  z-index: 1;
}

.modal-header h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  font-family: 'Cinzel', serif;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary-color);
  background-color: rgba(212, 175, 55, 0.1);
}

.modal-content {
  padding: 30px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure content doesn't overflow on smaller screens */
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
  }
  
  .modal-header {
    padding: 20px;
  }
}

/* Cart Modal */
.empty-cart, .empty-wishlist, .empty-orders {
  text-align: center;
  padding: 40px 20px;
}

.empty-cart i, .empty-wishlist i, .empty-orders i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 20px;
}

.empty-cart p, .empty-wishlist p, .empty-orders p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 25px;
}

.cart-items, .wishlist-items, .order-items {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

/* Old styles removed - replaced with modern grid layout above */

/* Old image styles removed - replaced with modern item-image styling above */

/* Old item-details styles removed - replaced with modern styling above */

/* Old item-price and item-date styles removed - replaced with modern styling above */

/* Old item-quantity styles removed - replaced with modern styling above */

/* Old item-total styles removed - replaced with modern styling above */

/* Old remove-item styles removed - replaced with modern styling above */

/* Old cart-summary styles removed - replaced with modern styling above */

/* Old cart-total styles removed - replaced with modern styling above */

/* Old cart-actions styles removed - replaced with modern styling above */

/* Order Item Styles */
/* Old order-header styles removed - replaced with modern styling above */

/* Old order-date styles removed - replaced with modern styling above */

/* Old order-status styles removed - replaced with modern styling above */

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-processing {
  background-color: #cce5ff;
  color: #004085;
}

.status-shipped {
  background-color: #d4edda;
  color: #155724;
}

.status-delivered {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Old order-total styles removed - replaced with modern styling above */

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-actions .btn {
  min-width: 140px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-stats {
    gap: 15px;
  }
  
  .stat-item {
    padding: 8px 16px;
    gap: 10px;
  }
  
  .stat-item i {
    font-size: 1rem;
  }
  
  .stat-text {
    font-size: 0.85rem;
  }
  

  
  .cart-item, .wishlist-item, .order-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .item-quantity {
    justify-content: center;
  }
  
  .cart-actions, .modal-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .modal {
    margin: 20px;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .profile-stats {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item {
    padding: 8px 16px;
    min-width: 200px;
    justify-content: center;
  }
  
  .user-menu {
    flex-direction: column;
    gap: 10px;
  }
  
  .user-actions {
    justify-content: center;
  }
}

/* Checkout Page Styles */
.checkout-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.checkout-content h1 {
  text-align: center;
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 40px;
  font-family: 'Cinzel', serif;
}

.order-summary {
  background: var(--light-color);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.order-summary h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.order-items {
  margin-bottom: 25px;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.order-item .item-details {
  min-width: 0;
}

.order-item .item-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 4px;
  line-height: 1.3;
}

.order-item .item-price {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
}

.order-item .item-quantity {
  color: #666;
  font-size: 0.85rem;
}

.order-item .item-total {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
  text-align: right;
}

.order-total {
  text-align: right;
  border-top: 2px solid #eee;
  padding-top: 20px;
}

.order-total h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.checkout-form {
  background: var(--light-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.checkout-form h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input[required] + label::after,
.form-group select[required] + label::after {
  content: ' *';
  color: #dc3545;
}

.form-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}

.form-actions .btn {
  min-width: 180px;
}

/* Responsive Checkout */
@media (max-width: 768px) {
  .checkout-content h1 {
    font-size: 2.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .order-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .order-item .item-total {
    text-align: center;
  }
}

/* Compact Button Styles */
.btn-compact {
  padding: 8px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-radius: 6px;
  min-width: auto;
}

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-icon:hover {
  transform: scale(1.05);
}

/* Duplicate modal styles removed - using the specific ones defined above */

/* Modern Item Layout */
.wishlist-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 12px auto;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 12px auto;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 12px auto;
}

.wishlist-item:hover,
.cart-item:hover,
.order-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

.item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 4px;
  line-height: 1.3;
  text-align: center;
}

.item-date,
.item-price {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

.item-details {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 200px;
}

/* Quantity Controls */
.item-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
  max-width: 120px;
}

.quantity-btn {
  background: var(--primary-color);
  color: var(--light-color);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.quantity-value {
  font-weight: 600;
  color: var(--secondary-color);
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.item-total {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
  width: 100%;
  max-width: 120px;
}

/* Remove Item Button */
.remove-item {
  background: #f8f9fa;
  color: #dc3545;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.remove-item:hover {
  background: #dc3545;
  color: var(--light-color);
  border-color: #dc3545;
}

/* Cart Summary */
.cart-summary {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-total {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

.cart-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.cart-actions .btn {
  min-width: 160px;
  max-width: 200px;
}

/* Order Items */
.order-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}

.order-title {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin: 0;
}

.order-date {
  color: #666;
  font-size: 0.85rem;
}

.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-total {
  text-align: right;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
}

/* Responsive Design for New Layout */
@media (max-width: 768px) {
  .wishlist-item {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .cart-item {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .order-item {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .item-image {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
  
  .item-actions {
    justify-content: center;
  }
  
  .item-quantity {
    justify-content: center;
  }
  
  .item-total {
    text-align: center;
  }
  
  .order-header {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  
  .cart-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-compact {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .wishlist-modal,
  .cart-modal,
  .orders-modal {
    margin: 10px;
    max-height: 95vh;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .modal-header {
    padding: 20px;
  }
}

/* Cart-specific grid positioning removed - letting grid work naturally */

/* Debug styles removed - centering fixed */