* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden; 
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }
ul { padding-left: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.login-prompt p {
    padding-bottom: 20px;
}


.product-stock { margin: 10px 0; font-weight: bold; }
.in-stock { color: #28a745; }
.low-stock { color: #ffc107; }
.out-of-stock { color: #dc3545; }


header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}



.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}



.user-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);

    color: #ffffff;
    font-size: 16px;
    cursor: pointer;

    transition: 
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.user-icon:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.user-icon:active {
    transform: translateY(0);
}





.user-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;

    min-width: 220px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);

    padding: 8px 0;
    z-index: 999;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: 
        opacity 0.2s ease,
        transform 0.2s ease;
}

.user-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}



.user-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 18px;

    width: 16px;
    height: 16px;

    background: white;
    transform: rotate(45deg);

    box-shadow: -2px -2px 6px rgba(0,0,0,0.05);
}



.dropdown-item {
    display: block;
    padding: 12px 18px;

    font-size: 14px;
    color: #333;
    text-decoration: none;

    transition: background 0.2s ease, padding-left 0.15s ease;
}

.dropdown-item:hover {
    background: #f6f6f6;
    padding-left: 22px;
}

.dropdown-item:first-child {
    font-weight: 600;
    color: #111;
}



@media (max-width: 600px) {

    .header-main {
        flex-direction: column;
        align-items: center;
    }

    .header-main nav {
        width: 100%;
        display: flex;
        justify-content: center;   
        align-items: center;       
        margin-top: 10px;          
    }

    .header-main nav ul {
        display: flex;
        flex-direction: row;    
        justify-content: center;
        align-items: center;
        padding-bottom: 10px;
        margin: 0;
        gap: 8px;                 
    }

    .header-main nav li {
        list-style: none;
    }

    .header-main nav a {
        font-size: 25px;           
    }
    
    .search-cart {
        padding-bottom: 10px;
    }

}

@media (max-width: 900px) {
    .search-cart {
        padding-bottom: 10px;
    }

}

@media (max-width: 600px) {

    .user-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .user-dropdown {
        min-width: 180px;
        right: -10px;
    }
}
@media (max-width: 600px) {

  .separator {
    display: none !important;
  }

  .top-bar {
    padding-top: 1px !important;
    
  }

  .top-bar-container {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  .top-bar-content {
    justify-content: center !important;
    text-align: center !important;
  }

  .contact-info {
    display: none !important;
  }

  .contact-info-item {
    width: 100% !important;
    justify-content: center !important;
    font-size: 13px !important;
  }
    
  .user-menu {
      padding-top: 5px;
  }    
    
  .top-bar .auth-links {
    justify-content: center !important;
    border-left: none !important;
    width: 100% !important;
    padding: 0 10px !important;
  }

  .top-bar .auth-links > * {
    margin-left: 0 !important;
    margin: 6px 6px 0 0 !important; 
  }

  .top-bar .auth-links a,
  .top-bar .auth-links span {
    display: inline-block !important;
    background: rgba(255,255,255,0.12) !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
  
  .top-bar .separator {
    display: none !important;
  }

  .top-bar .auth-links .separator {
    display: none !important;
  }
}


.top-bar {
  background: linear-gradient(135deg, #8B7355 0%, #a58c6c 100%);
  color: white;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 10px rgba(139,115,85,0.2);
  width: 100%;
}

.top-bar:hover {
  background: linear-gradient(135deg, #8B7355 0%, #b89a75 100%);
}

.top-bar-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: auto;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;    
}

.top-bar-content > * {
  margin: 3px 0;       
}

.contact-info {
  display: flex;
  align-items: center;
  white-space: normal; 
  padding: 0 10px;
  min-width: 0;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-right: 14px;  
  margin-bottom: 2px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.contact-info-item:hover { transform: translateY(-1px); }

.contact-info i {
  color: #ffd700;
  font-size: 12px;
  width: 14px;
  text-align: center;
  margin-right: 6px;
}

.contact-info span {
  font-weight: 500;
  letter-spacing: 0.3px;
}

.top-bar .auth-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  white-space: normal;  
  padding: 0 10px;
  min-width: 0;
  border-left: 1px solid rgba(255,255,255,0.1);
  margin: 0;
  position: static;     
}

.top-bar .auth-links > * {
  margin-left: 10px;    
  margin-bottom: 2px;
}

.top-bar .auth-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.top-bar .auth-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.top-bar .auth-links a:hover::before { left: 100%; }

.top-bar .auth-links a:hover {
  color: #ffd700;
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.top-bar .auth-links span {
  color: #ffd700;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  border: 1px solid rgba(255,215,0,0.3);
}

.separator { color: rgba(255,255,255,0.5); margin: 0 2px; }
.separator { display: none; }

.fas.fa-phone { font-size: 12px; }


.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 7px;

  flex-wrap: wrap; 
}

.header-main > * { margin-bottom: 8px; } 

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li { margin-left: 20px; }
nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover,
nav ul li a.active { color: #8B7355; }

.search-cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  margin-right: 12px;
}

.search-box input {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  width: min(200px, 55vw); 
}

.search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8B7355;
  cursor: pointer;
}

.cart-icon {
  position: relative;
  font-size: 20px;
  color: #333;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #8B7355;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero, .page-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  margin-bottom: 40px;
}

.hero { padding: 100px 20px; }
.page-hero { padding: 80px 20px; }

.hero h1, .page-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p, .page-hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: #8B7355;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}
.btn:hover { background-color: #6d5c46; }

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: #333;
}


.categories { padding: 40px 0; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.category-card:hover { transform: translateY(-5px); }

.category-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.category-content { padding: 20px; text-align: center; }
.category-content h3 { margin-bottom: 10px; color: #8B7355; }


.popular-products {
  padding: 40px 0;
  background-color: #f5f5f5;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;

  display: flex;
  flex-direction: column; 
  height: 100%;
}

.product-card:hover { transform: translateY(-5px); }

.product-img {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-content { padding: 20px; display:flex; flex-direction:column; flex: 1; }

.product-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.product-price {
    font-family: var(--lp-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--lp-dark);
    letter-spacing: .04em;
}

.product-price-card {
  font-size: 20px;
  font-weight: bold;
  color: #8B7355;
  margin-bottom: 15px;
}

.product-rating { color: #ffc107; margin-bottom: 15px; }

.add-to-cart {
  margin-top: auto;
  background-color: #8B7355;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: background-color 0.3s;
}
.add-to-cart:hover { background-color: #6d5c46; }

.product-link { text-decoration: none; color: inherit; display: block; }


.about, .about-section {
  padding: 60px 0;
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.about-content > * { margin: 10px 0; }

.about-text { flex: 1; min-width: 280px; }
.about-text p { margin-bottom: 20px; font-size: 16px; }

.about-image {
  flex: 1;
  min-width: 280px;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-right: 30px;
}

.newsletter {
  background-color: #8B7355;
  color: white;
  padding: 60px 0;
  text-align: center;
}

.newsletter h2 { margin-bottom: 20px; }
.newsletter p { max-width: 600px; margin: 0 auto 30px; }

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 15px;
  border: none;
  border-radius: 30px 0 0 30px;
}

.newsletter-form button {
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-weight: bold;
}


.filters {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  margin-top: 10px;
}

.filter-group { margin-bottom: 15px; }
.filter-group h3 { margin-bottom: 10px; color: #8B7355; }

.filter-options {
  display: flex;
  flex-wrap: wrap;
}

.filter-options > * { margin: 5px 8px 0 0; } 

.filter-btn {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: #333;
}
.filter-btn.active {
  background-color: #8B7355;
  color: white;
  border-color: #8B7355;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.products-header > * { margin: 6px 0; }

.sort-options select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}


.product-gallery {
  position: relative;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-gallery:hover .gallery-nav { opacity: 1; }

.gallery-nav button {
  background: rgba(255,255,255,0.8);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.gallery-dots > * { margin: 0 3px; } 

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.gallery-dot.active { background: white; }


.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 50px 0;
}

.product-gallery-large { position: relative; }

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

.thumbnail-images {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
}

.thumbnail-images > * { margin: 5px 10px 0 0; } 

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
  opacity: 1;
  border: 2px solid #8B7355;
}

.product-info h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #333;
}

.product-description {
  margin: 20px 0;
  line-height: 1.6;
  color: #666;
}

.quantity-selector {
  margin: 20px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.quantity-selector > * { margin: 6px 10px 0 0; } 

.quantity-selector label { font-weight: 500; }

.quantity-selector input {
  width: 80px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}

.add-to-cart-large {
  background-color: #8B7355;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: 10px;
}
.add-to-cart-large:hover { background-color: #6d5c46; }

.similar-products {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.similar-products h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.pagination a {
  color: #333;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  margin: 4px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.pagination a.active {
  background-color: #8B7355;
  color: white;
  border-color: #8B7355;
}
.pagination a:hover:not(.active) { background-color: #ddd; }


.auth-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.auth-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
}


.content-section {
  background: white;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.info-section { margin-bottom: 40px; }

.info-section h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 24px;
  border-bottom: 2px solid #8B7355;
  padding-bottom: 10px;
}

.info-section p { margin-bottom: 15px; text-align: justify; }
.info-section ul { margin-left: 30px; margin-bottom: 20px; }
.info-section li { margin-bottom: 10px; }

.highlight {
  background: #f9f7f4;
  padding: 20px;
  border-left: 4px solid #8B7355;
  margin: 20px 0;
}

.timeline {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  position: relative;
  flex-wrap: wrap;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #8B7355;
  z-index: 1;
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 180px;
  margin: 10px 0;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #8B7355;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: bold;
}

.step-text { font-size: 14px; color: #666; }

.values {
  background-color: white;
  padding: 60px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.value-card:hover { transform: translateY(-5px); }

.value-icon {
  font-size: 40px;
  color: #8B7355;
  margin-bottom: 20px;
}

.value-card h3 { margin-bottom: 15px; color: #333; }


footer {
  background-color: #333;
  color: white;
  padding: 60px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 { margin-bottom: 20px; font-size: 18px; }

.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-column ul li a:hover { color: #8B7355; }

.social-icons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}
.social-icons a {
  color: white;
  font-size: 20px;
  transition: color 0.3s;
  margin-right: 15px; 
  margin-bottom: 6px;
}
.social-icons a:hover { color: #8B7355; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.footer-bottom > * { margin: 10px 0; }

.footer-bottom .copyright { max-width: 70%; }

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
}

.copyright-desc { font-size: 11px; }

.footer-bottom .anpc-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap; 
  max-width: 100%;
}

.footer-bottom .anpc-links a {
  display: block;
  margin: 5px;              
  flex: 1 1 160px;
  max-width: 200px;
}

.footer-bottom .anpc-links img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

@media (max-width: 600px) {
  .footer-contact { display: none !important; }
}


.contact-section { padding: 60px 0; }

.contact-content {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.contact-content > * { margin: 10px 0; }

.contact-details,
.message-form {
  flex: 1;
  min-width: 280px;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.contact-icon {
  font-size: 24px;
  color: #8B7355;
  margin-right: 15px;
  width: 30px;
  flex-shrink: 0;
}

.contact-text h3 {
  margin-bottom: 5px;
  color: #333;
  font-size: 18px;
}

.contact-text p { color: #666; line-height: 1.5; }

.message-field { margin-bottom: 20px; }

.message-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.message-field input,
.message-field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.message-field input:focus,
.message-field textarea:focus {
  outline: none;
  border-color: #8B7355;
}

.message-field textarea {
  height: 150px;
  resize: vertical;
}

.faq-section {
  padding: 60px 0;
  background-color: white;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer { padding: 20px; max-height: 500px; }

.faq-question i { transition: transform 0.3s; }
.faq-item.active .faq-question i { transform: rotate(180deg); }


.cos-container { margin: 40px auto; padding: 20px; }
.cos-title { text-align: center; margin-bottom: 30px; color: #333; }

.cos-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.cos-item > * { margin: 6px 0; }

.cos-item-img {
  width: 100px;
  height: 100px;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  margin-right: 20px;
}

.cos-item-details { flex: 1; min-width: 220px; }

.cos-item-cantitate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-right: 20px;
}
.cos-item-cantitate > * { margin-right: 10px; margin-top: 6px; }

.cos-item-cantitate input {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.cos-total {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: right;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
}

.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }

.empty-cart {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 10px;
}

.login-prompt {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 10px;
  margin: 20px 0;
}

.cos-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 15px;
}
.cos-actions > * { margin: 6px 0 0 10px; }
.cos-actions .btn { margin-left: 0; }

.btn-success { background-color: #28a745; }
.btn-success:hover { background-color: #218838; }

.quantity-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.quantity-controls > * { margin-right: 5px; margin-top: 6px; }

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s;
}
.quantity-btn:hover {
  background: #8B7355;
  color: white;
  border-color: #8B7355;
}

.quantity-input {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity-input[type=number] { -moz-appearance: textfield; }

.checkout-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 20px;
  display: none;
}
.checkout-form.active { display: block; }

.checkout-section { margin-bottom: 30px; }

.checkout-section h3 {
  color: #8B7355;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.checkout-group { margin-bottom: 15px; }
.checkout-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.checkout-group input,
.checkout-group select,
.checkout-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.checkout-group textarea {
  height: 80px;
  resize: vertical;
}

.checkout-row {
  display: flex;
  flex-wrap: wrap;
}
.checkout-row > * { margin: 10px 0; }
.checkout-row .checkout-group { flex: 1; min-width: 220px; }

.payment-options,
.shipping-options { display: flex; flex-direction: column; }
.payment-options > *,
.shipping-options > * { margin-top: 10px; }

.payment-option,
.shipping-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.3s;
  flex-wrap: wrap;
}

.payment-option:hover,
.shipping-option:hover { border-color: #8B7355; }

.payment-option input,
.shipping-option input { margin-right: 10px; }

.payment-option.active,
.shipping-option.active {
  border-color: #8B7355;
  background-color: #f9f7f4;
}

.option-info { flex: 1; min-width: 200px; }

.option-title { font-weight: bold; margin-bottom: 5px; }
.option-description { color: #666; font-size: 14px; }

.checkout-summary {
  background: #f9f7f4;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-total {
  font-weight: bold;
  font-size: 1.2em;
  border-top: 2px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
}

.toggle-checkout {
  background: #8B7355;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}
.toggle-checkout:hover { background: #6d5c46; }

.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: white;
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
}

.cookies-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookies-content > * { margin: 8px 0; }

.cookies-text { flex: 1; min-width: 240px; }
.cookies-text p {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.5;
}

.cookies-text a {
  color: #8B7355;
  text-decoration: underline;
  font-weight: 500;
}

.cookies-buttons {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
}

.cookies-buttons > * { margin-left: 10px; margin-top: 8px; }

.cookies-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookies-btn.accept { background: #8B7355; color: white; }
.cookies-btn.accept:hover { background: #6d5c46; transform: translateY(-2px); }

.cookies-btn.reject {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.cookies-btn.reject:hover { background: rgba(255,255,255,0.1); }



@media (max-width: 1024px) {
  .container { padding: 0 14px; }
  nav ul li { margin-left: 14px; }
  .products-grid { gap: 22px; }
}

@media (max-width: 900px) {
  .top-bar { font-size: 12px; }
  .contact-info-item { font-size: 12px; }
  .top-bar .auth-links a { padding: 4px 7px; }

  .header-main { justify-content: center; }
  .search-cart { justify-content: center; width: 100%; }
}

@media (max-width: 768px) {
  .hero { padding: 70px 16px; }
  .page-hero { padding: 60px 16px; }

  .hero h1, .page-hero h1 { font-size: 36px; }
  .hero p, .page-hero p { font-size: 18px; }

  nav ul { margin-top: 10px; }
  .search-box input { width: min(220px, 75vw); }

  .products-header { flex-direction: column; align-items: flex-start; }

  .product-detail { grid-template-columns: 1fr; gap: 25px; margin: 35px 0; }
  .main-image { height: 380px; }
  .product-info h1 { font-size: 28px; }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-bottom .copyright { max-width: 100%; }
  .footer-bottom .anpc-links { justify-content: center; }
}


.empty-cart p {
    padding-bottom: 15px;    
}

@media (max-width: 600px) {
  .container { padding: 0 12px; }

  .top-bar-content { justify-content: center; text-align: center; }
  .contact-info { justify-content: center; border-right: none; }
  .top-bar .auth-links { justify-content: center; border-left: none; }

  .products-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

  .content-section { padding: 25px; }
}

@media (max-width: 480px) {
  .hero h1, .page-hero h1 { font-size: 30px; }
  .hero p, .page-hero p { font-size: 16px; }

  nav ul li { margin-left: 10px; }

  .products-grid { grid-template-columns: 1fr; }
  .product-img { height: 230px; }

  .main-image { height: 300px; }
  .thumbnail { width: 60px; height: 60px; }

  .add-to-cart-large { width: 100%; padding: 12px 25px; font-size: 14px; }

  .contact-details, .message-form { padding: 20px 15px; }

  .cos-container { padding: 10px; }
  .cos-item { padding: 15px; }
  .cos-actions { flex-direction: column; align-items: stretch; }
  .cos-actions > * { margin-left: 0; }

  .cookies-text p { font-size: 14px; }
  .cookies-btn { width: 100%; }
  .cookies-buttons { justify-content: center; }
  .cookies-buttons > * { margin-left: 0; }
}

@media (max-width: 360px) {
  .search-box input { width: 85vw; }
  .top-bar .auth-links a { font-size: 12px; }
}

.contact-details h3, p {
    padding-bottom: 20px;
}
