/* ===== CSS MARQUEE ===== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
    padding: 5px 0;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    padding-right: 50px; /* Creates spacing for seamless loop */
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
} 
/* ===== PAYMENT PAGE STYLING ===== */
.delivery-details {
    background-color: #F8F5ED;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(42, 12, 22, 0.1);
}

.delivery-details h3 {
    color: #2A0C16;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #AB4F28;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-info {
    margin-top: 15px;
}

.info-row {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 12, 22, 0.05);
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-row strong {
    color: #2A0C16;
    min-width: 120px;
    display: inline-block;
}

.order-summary {
    background-color: #F8F5ED;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(42, 12, 22, 0.1);
}

.order-summary h3 {
    color: #2A0C16;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #AB4F28;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-options {
    background-color: #F8F5ED;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(42, 12, 22, 0.1);
}

.payment-options h3 {
    color: #2A0C16;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #AB4F28;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.payment-method {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(171, 79, 40, 0.2);
    transition: all 0.3s ease;
}

.payment-method:hover {
    box-shadow: 0 4px 12px rgba(171, 79, 40, 0.1);
    transform: translateY(-2px);
}

.payment-method h4 {
    color: #2A0C16;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.payment-method p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.login-required {
    background-color: #F8F5ED;
    border-radius: 10px;
    border: 1px solid rgba(42, 12, 22, 0.1);
}


/* ===== CART STYLING ===== */
.cart-container {
  background-color: #F8F5ED;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(42, 12, 22, 0.1);
  margin-bottom: 20px;
}

.cart-container h3 {
  color: #2A0C16;
  margin-top: 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #AB4F28;
  text-align: center;
}

.cart-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}

.cart-list::-webkit-scrollbar {
  width: 6px;
}

.cart-list::-webkit-scrollbar-track {
  background: rgba(217, 208, 169, 0.2);
  border-radius: 3px;
}

.cart-list::-webkit-scrollbar-thumb {
  background: #AB4F28;
  border-radius: 3px;
}

.cart-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(171, 79, 40, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(171, 79, 40, 0.1);
  transform: translateY(-2px);
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.cart-item-name {
  font-weight: 600;
  color: #2A0C16;
  font-size: 16px;
  flex: 1;
}

.remove-item {
  color: #e74c3c;
  text-decoration: none;
  font-size: 18px;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.remove-item:hover {
  color: #c0392b;
}

.cart-item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.quantity-badge {
  background-color: #AB4F28;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.price-badge {
  background-color: #2A0C16;
  color: #D9D0A9;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.cart-total {
  background-color: #2A0C16;
  color: #D9D0A9;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
}

.cart-total strong {
  font-size: 18px;
  color: #fff;
}

.cart-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #D9D0A9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.cart-button:hover {
  background-color: #8a3e20;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(171, 79, 40, 0.25);
  color: #fff;
}

.cart-button.secondary {
  background-color: #2A0C16;
  color: #D9D0A9;
}

.cart-button.secondary:hover {
  background-color: #1a070f;
}

.cart-button i {
  font-size: 14px;
}

/* ===== PAGINATION STYLING ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination-label {
  color: #2A0C16;
  font-weight: 600;
  margin-right: 10px;
}

.pagination a,
.pagination strong a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a {
  background-color: #F8F5ED;
  color: #2A0C16;
  border: 2px solid rgba(171, 79, 40, 0.3);
}

.pagination a:hover {
  background-color: #AB4F28;
  color: #fff;
  border-color: #AB4F28;
  transform: translateY(-2px);
}

.pagination strong a {
  background-color: #AB4F28;
  color: #fff;
  border: 2px solid #AB4F28;
}

.pagination-ellipsis {
  color: #2A0C16;
  padding: 0 5px;
}

/* ===== PRODUCT GRID STYLING ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

 

.product-content {
  padding: 20px;
}

.product-content b {
  color: #2A0C16;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.product-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  min-height: 60px;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-qty-input {
  width: 60px;
  padding: 8px;
  border: 2px solid #AB4F28;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
}

.product-qty-input:focus {
  outline: none;
  border-color: #2A0C16;
}

.product-price {
  color: #AB4F28;
  font-weight: 600;
  font-size: 16px;
}



/* Custom form styling for Pico.css compatibility */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  background-color: #fff;
  border: 1px solid #AB4F28;
  border-radius: 4px;
  padding: 10px 12px;
  color: #2A0C16;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #2A0C16;
  box-shadow: 0 0 0 3px rgba(171, 79, 40, 0.2);
}

/* Style for form tables */
table {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  border-collapse: collapse;
}

table tr {
  border-bottom: 1px solid rgba(42, 12, 22, 0.1);
}

table td {
  padding: 12px 8px;
  vertical-align: middle;
}

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

/* Submit button styling */
input[type="submit"],
button[type="submit"],
.tm_but,
.cta {
  background-color: #AB4F28;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  margin: 10px 5px;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.tm_but:hover,
.cta:hover {
  background-color: #8a3e20;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(171, 79, 40, 0.3);
}

/* Specific button styles */
.tm_but {
  background-color: #2A0C16;
  color: #D9D0A9;
}

.tm_but:hover {
  background-color: #1a070f;
}

.cta {
  background-color: #AB4F28;
  color: #fff;
}

/* Form container styling */
form {
  margin: 30px 0;
  padding: 20px;
  background-color: #F8F5ED;
  border-radius: 10px;
  border: 1px solid rgba(42, 12, 22, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Captcha styling */
#captcha {
  border: 1px solid #AB4F28;
  border-radius: 4px;
  padding: 5px;
  background-color: #fff;
}

/* Label styling */
form td:first-child {
  font-weight: 600;
  color: #2A0C16;
  text-align: right;
  padding-right: 15px;
  width: 40%;
}

/* Search form styling */
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #AB4F28;
  border-radius: 6px;
  font-size: 16px;
  color: #2A0C16;
  background-color: #fff;
  min-width: 250px;
}

.search-form input[type="submit"] {
  padding: 12px 24px;
  background-color: #AB4F28;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-form input[type="submit"]:hover {
  background-color: #8a3e20;
  transform: translateY(-2px);
}

/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #D9D0A9; /* Light beige background */
  color: #2A0C16; /* Dark burgundy text */
  margin: 0;
  padding: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #2A0C16; /* Main burgundy color */
  color: #D9D0A9; /* Light text */
  box-shadow: 0 2px 10px rgba(42, 12, 22, 0.3);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #D9D0A9;
  order: 2; /* Move logo to right */
}

nav {
  display: flex;
  align-items: center;
  order: 1; /* Move menu to left */
}

.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #D9D0A9;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links li a {
  color: #D9D0A9;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: block;
}

.nav-links li a:hover {
  background-color: #AB4F28; /* Orange accent on hover */
  color: #2A0C16;
}

/* Submenu Styles */
.submenu {
  list-style-type: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2A0C16;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1001;
  border-radius: 4px;
  padding: 5px 0;
}

.submenu li {
  width: 100%;
}

.submenu li a {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(217, 208, 169, 0.1);
  color: #D9D0A9;
}

.submenu li:last-child a {
  border-bottom: none;
}

.submenu li a:hover {
  background-color: #AB4F28;
  color: #2A0C16;
}

.menu-with-submenu:hover .submenu {
  display: block;
}

/* Logo and Text Section */
.logo-text-section {
  text-align: right; /* Align to right */
  padding: 30px 20px;
  background: linear-gradient(135deg, #2A0C16 0%, #AB4F28 50%, #D9D0A9 100%);
}

.logo-image {
  width: 150px;
  height: 150px;
  float: right;
  margin-left: 20px;
}

.logo-text {
  font-size: 18px;
  margin-top: 10px;
  color: #D9D0A9;
  text-align: right;
  clear: both;
  padding-top: 10px;
}

/* Auth Buttons Container */
.auth-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background-color: #2A0C16;
}

.auth-buttons-container a {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.auth-buttons-container a.login {
  background-color: #AB4F28;
  color: #D9D0A9;
}

.auth-buttons-container a.register {
  background-color: #D9D0A9;
  color: #2A0C16;
}

.auth-buttons-container a.login:hover {
  background-color: #8a3e20;
}

.auth-buttons-container a.register:hover {
  background-color: #c4b897;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  font-size: 200%;
  color: #AB4F28;
  text-decoration: none;
}

.social-sharing a {
  font-size: 200%;
  text-decoration: none;
  color: #AB4F28;
}

.social-sharing a:hover {
  color: #D9D0A9;
}

/* Sections */
section {
  padding: 40px 20px;
  margin: 20px 0;
}

.welcome, .features, .faq, .special-offer {
  background-color: #FFFFFF;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 4px 15px rgba(42, 12, 22, 0.1);
  border: 1px solid rgba(42, 12, 22, 0.1);
}

h1, h2, h3 {
  color: #2A0C16;
}

h1 {
  border-bottom: 2px solid #AB4F28;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Features Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
}

.content {
  padding: 15px;
  display: none;
  background-color: #F8F5ED;
  border-radius: 0 0 5px 5px;
  margin-bottom: 10px;
  border: 1px solid rgba(42, 12, 22, 0.1);
}


.cta {
  padding: 15px 30px;
  background-color: #AB4F28;
  color: #D9D0A9;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: #8a3e20;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #2A0C16;
  color: #D9D0A9;
  margin-top: 40px;
}

.footer-banner {
  margin-bottom: 20px;
  padding: 20px;
  background-color: rgba(217, 208, 169, 0.1);
  border-radius: 8px;
}

/* Scroll to Top Button */
#scroll-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 15px;
  background-color: #AB4F28;
  color: #D9D0A9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

#scroll-to-top:hover {
  background-color: #8a3e20;
}

/* Responsive Styles */
@media (max-width: 768px) {
   .marquee-content {
        animation-duration: 25s; /* Slower on mobile for readability */
    }
    
    .marquee-container .logo-text {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .marquee-container::before,
    .marquee-container::after {
        width: 30px;
    }
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-method {
        padding: 15px;
    }
    
    .delivery-details,
    .order-summary,
    .payment-options {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .info-row {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .info-row strong {
        min-width: auto;
    }
	
  .search-form {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  .search-form input[type="text"] {
    width: 90%;
    min-width: auto;
  }
  
  .search-form input[type="submit"] {
    width: 100%;
  }
	
  table {
    display: block;
  }
  
  table tr {
    display: block;
    margin-bottom: 15px;
  }
  
  table td {
    display: block;
    width: 100% !important;
    text-align: left !important;
    padding: 5px 0;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="email"],
  textarea {
    max-width: 100%;
    width: 100%;
  }
  
  form {
    padding: 15px;
    margin: 20px 10px;
  }
	
  .menu-icon {
    display: block;
    order: 1;
  }
  
  .logo {
    order: 2;
    font-size: 20px;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background-color: #2A0C16;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    /* Add scrollbar styles */
    max-height: 70vh; /* Limit height to 70% of viewport */
    overflow-y: auto; /* Enable vertical scrolling */
  }

  /* Custom scrollbar styling */
  .nav-links::-webkit-scrollbar {
    width: 8px;
  }
  
  .nav-links::-webkit-scrollbar-track {
    background: rgba(217, 208, 169, 0.1);
    border-radius: 4px;
  }
  
  .nav-links::-webkit-scrollbar-thumb {
    background: #AB4F28;
    border-radius: 4px;
  }
  
  .nav-links::-webkit-scrollbar-thumb:hover {
    background: #8a3e20;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links > li {
    width: 100%;
  }
  
  .nav-links li a {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(217, 208, 169, 0.1);
  }
  
  .nav-links li:last-child a {
    border-bottom: none;
  }
  
  /* Make Меню item non-hoverable in mobile */
  .nav-links.mobile-active .menu-with-submenu > a {
    pointer-events: none;
    cursor: default;
    opacity: 0.8;
    background-color: transparent !important;
    color: #D9D0A9 !important;
  }
  
  .nav-links.mobile-active .menu-with-submenu > a:hover {
    background-color: transparent !important;
    color: #D9D0A9 !important;
  }
  
  .submenu {
    list-style-type: none;
    position: static;
    box-shadow: none;
    display: none;
    padding-left: 20px;
    margin-top: 0;
    background-color: rgba(0,0,0,0.2);
  }
  
  /* Always show submenu when in mobile mode */
  .nav-links.mobile-active .submenu {
    display: block !important;
    max-height: none !important;
  }
  
  .menu-with-submenu:hover .submenu {
    display: none;
  }
  
  .submenu.active {
    display: block;
  }
  
  .submenu li a {
	list-style-type: none;
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats {
    flex-direction: column;
    gap: 25px;
    padding: 30px 20px;
  }
  
  .logo-image {
    float: none;
    margin: 0 auto;
    display: block;
  }
  
  .logo-text {
    text-align: center;
  }
  
  .logo-text-section {
    text-align: center;
  }

 .products-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-actions {
    flex-direction: column;
  }
  
  .cart-button {
    width: 80%;
    justify-content: center;
  }
  
  .cart-item-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .pagination a,
  .pagination strong a {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }  
  
}

@media (max-width: 480px) {
   .marquee-content {
        animation-duration: 30s;
        white-space: normal; /* Allow text to wrap on very small screens */
        animation: none; /* Disable animation on very small screens */
        text-align: center;
        padding-right: 0;
    }
    
    .marquee-container {
        padding: 8px 0;
    }
    
    .marquee-container .logo-text {
        white-space: normal;
        line-height: 1.4;
    }
    
    /* Hide gradient fade on mobile when not animating */
    .marquee-container::before,
    .marquee-container::after {
        display: none;
    }
    .payment-method h4 {
        font-size: 16px;
    }
    
    .payment-method p {
        font-size: 13px;
    }
	
  header {
    padding: 10px 15px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  section {
    padding: 25px 15px;
  }
  
  .feature {
    padding: 20px;
  }
  .cart-button {
    width: 80%;
    justify-content: center;
  }
}