/* Enhanced Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}
html{
    border-radius: 0 12px 12px 0;
    scroll-behavior: smooth;
}
.checkout-container{
    padding: 25px 50px;
}
::-webkit-scrollbar {
  width: 10px;
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    flex: 1;
    padding-right: 50px; /* space for the icon */
}
.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}
.toggle-password:hover {
    color: #29166F;
}
.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.whatsapp-btn::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M17.5,14.4c-0.3,0.4-0.9,0.8-1.4,0.9c-0.4,0.1-0.9,0.2-2.8-0.6c-1.5-0.6-2.7-1.8-3.5-2.9c-0.9-1.1-1.5-2.3-1.7-3.5c-0.1-0.5,0-1,0.3-1.4c0.3-0.4,0.6-0.6,0.8-0.8c0.2-0.1,0.4-0.2,0.6-0.2c0.2,0,0.4,0,0.5,0c0.2,0,0.4,0,0.6,0.1c0.2,0.1,0.4,0.2,0.6,0.5c0.2,0.3,0.5,0.8,0.6,1c0.1,0.2,0.2,0.4,0.1,0.7c-0.1,0.3-0.1,0.5-0.3,0.8c-0.1,0.2-0.3,0.4-0.5,0.6c-0.1,0.1-0.2,0.3-0.1,0.5c0.1,0.2,0.5,1,1.1,1.6c0.8,0.7,1.5,1,1.8,1.1c0.2,0.1,0.4,0,0.5-0.1c0.2-0.1,0.4-0.3,0.6-0.5c0.2-0.2,0.5-0.4,0.7-0.5c0.3-0.2,0.6-0.2,0.9-0.1c0.3,0.1,1.8,0.8,2.1,1c0.3,0.2,0.5,0.3,0.6,0.5c0.1,0.2,0.1,1-0.2,1.8L17.5,14.4z M12,2.2C6.5,2.2,2,6.7,2,12.2c0,2.1,0.6,4.1,1.7,5.8L2,22.2l4.3-1.6c1.6,0.9,3.4,1.4,5.3,1.4c5.5,0,10-4.5,10-10c0-5.5-4.5-10-10-10V2.2z M12,20.4c-1.7,0-3.4-0.5-4.8-1.4l-0.3-0.2l-3.2,0.9l0.9-3l-0.2-0.4c-1-1.6-1.5-3.5-1.5-5.4c0-4.5,3.7-8.2,8.2-8.2c4.5,0,8.2,3.7,8.2,8.2C20.2,16.7,16.5,20.4,12,20.4z"/></svg>') no-repeat center;
}
.cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #29166F;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 12px 12px 0;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #29166F;
  border-radius: 0 12px 12px 0;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #0a0224;
}
.product-rating {
    margin: 20px 0;
    padding: 15px;
    border-top: 1px solid #eee;
}
.product-images {
    max-width: 580px;
    position: sticky;
    top: 200px;
    align-self: flex-start;
}
.product-images:hover{
    cursor: none;
}

.image-slider {
    position: relative;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    background-color: #29166f7a;
    user-select: none;
    text-decoration: none;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: #29166f;
    color: white;
}

.slider-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #29166f74;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #29166F;
}

/* Magnifier lens */
.magnifier {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: none;
}
.stars {
    font-size: 24px;
    color: #ffc107;
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    margin-right: 5px;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
/* Toggle button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #29166F;
    cursor: pointer;
}
input:checked + .slider {
  background-color: #29166F;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
.status-btn {
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.status-btn.active {
    background-color: #4CAF50;
    color: white;
}

.status-btn.inactive {
    background-color: #f44336;
    color: white;
}
.edit-btn,.delete-btn {
    text-decoration: none;
    text-align: center;
    margin: auto;
    width: fit-content;
}
body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.full-catalog-preview{
    text-align: center;
    padding: 5%;
}





/* Updated catalog styles */
.catalog-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.catalog-header h1 {
    font-size: 2.8rem;
    color: #29166F;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.catalog-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #29166F, #4d36c9);
    border-radius: 2px;
}

.catalog-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Updated category navigation */
.category-nav {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    overflow-x: hidden;
    overflow-y: scroll;
    position: sticky;
    top: 200px;
    height: 67vh;
    align-self: flex-start;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid #f1f1f1;
}

.category-item:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.category-header:hover {
    background: #f9f9ff;
}

.category-header.active {
    background: #f0f4ff;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: #f0f4ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #29166F;
    font-size: 18px;
}

.category-name {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.category-arrow {
    font-size: 14px;
    color: #888;
    transition: transform 0.3s;
}

.category-header.active .category-arrow {
    transform: rotate(180deg);
    color: #29166F;
}

.type-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9f9ff;
    display: none;
    padding: 15px 25px 15px 80px;
    border-top: 1px solid #eee;
}

.category-header.active + .type-list {
    display: block;
    animation: fadeIn 0.4s ease;
}

.type-item {
    padding: 10px 0;
}

.type-link {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.type-link:hover, 
.type-link.active {
    color: #29166F;
    background: #eef1ff;
}

.type-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 4px;
    background: #29166F;
    border-radius: 0 2px 2px 0;
}

.type-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.product-card.show {
    opacity: 1;
    transform: translateY(0);
}
.product-card a{
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #29166F, #4d36c9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-info-panel {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* Approx two lines of text */
    line-height: 1.4;
}

.product-price {
    font-weight: bold;
    color: #e44d26;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.product-meta {
    display: grid;
    align-items: start;
    justify-content: left;
    row-gap: 15px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
}

.product-category, 
.product-type,
.product-stock,
.product-ratingg {
    display: flex;
    align-items: center;
}

.product-category i, 
.product-type i,
.product-stock i,
.product-ratingg i {
    margin-right: 5px;
    font-size: 0.9rem;
}

.product-stock.in-stock {
    color: #28a745;
}

.product-stock.out-of-stock {
    color: #dc3545;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

.add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #29166F;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.add-to-cart-btn:hover {
    background: #3a27a0;
}

/* Search results */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #f0f4ff;
    padding: 15px 25px;
    border-radius: 10px;
}

.search-results-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #29166F;
}

.clear-search {
    background: #29166F;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.clear-search:hover {
    background: #3a27a0;
    transform: translateY(-2px);
}
.variations-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.variation-group {
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.add-variation-form, .add-option-form {
    margin-top: 10px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row input {
    flex: 1;
    padding: 8px;
}

header {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.search-bar {
    display: flex;
    flex: 1;
    min-width: 250px;
    max-width: 500px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.search-bar input:focus {
    outline: none;
    border-color: #29166F;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.search-bar button {
    padding: 12px 20px;
    background: linear-gradient(to right, #29166F, #0062cc);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-bar button:hover {
    background: linear-gradient(to right, #0069d9, #005cbf);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.user-actions a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 8px 5px;
    transition: color 0.3s;
}
.catalog-flex{
    display: flex;
    align-items: start;
    justify-content: stretch;
}
.user-actions a:hover {
    color: #29166F;
}

.user-actions a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #29166F;
    transition: width 0.3s;
}

.user-actions a:hover::after {
    width: 100%;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background: linear-gradient(to right, #f1f1f1, #f8f9fa);
    padding: 12px 5%;
    gap: 5px;
}
/* .main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
} */

.main-nav li a {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    display: block;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 500;
}
.full-catalog-preview p{
    background-color: #29166F;
    padding: 1% 5%;
    border-radius: 25px;
    width: fit-content;
    margin: auto;
}
.full-catalog-preview p a{
    text-decoration: none;
    color: white;
}
.main-nav li a:hover {
    background: #29166F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Account Styles */
.account-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.account-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #29166F, #29166f);
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}
.table-search input[type="text"]{
    width: 100%;
    padding: 10px;
    border: 2px solid #29166F;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}
.tab {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    position: relative;
    transition: all 0.3s;
    text-align: center;
}
.tab:hover {
    color: #29166F;
}

.tab.active {
    color: #29166F;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #29166F;
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #29166F;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    background: white;
}
.form-group select option:hover{
    background: #f1f1f1;
}

button[type="submit"] {
    background: linear-gradient(to right, #29166F, #29166f);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,123,255,0.4);
}

.error,.error-message {
    background: #fff0f0;
    color: #d32f2f;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
}

.success,.success-message {
    background: #f0fff4;
    color: #2e7d32;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-left: 4px solid #2e7d32;
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.admin-container h1{
    color: #29166F;
    font-weight: 700;
}

.users-table,.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.users-table th, .admin-table th,
.users-table td, .admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.users-table th, .admin-table th {
    background: linear-gradient(to right, #29166F, #29166f);
    color: white;
    font-weight: 600;
}

.users-table tr:nth-child(even), .admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.users-table tr:hover, .admin-table tr:hover {
    background-color: #f1f7ff;
}

.actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-btn {
    background: linear-gradient(to right, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 5px rgba(40,167,69,0.3);
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40,167,69,0.4);
}

.delete-btn {
    background: linear-gradient(to right, #dc3545, #ff6b6b);
    color: white;
    box-shadow: 0 2px 5px rgba(220,53,69,0.3);
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220,53,69,0.4);
}
.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.stat-box h3 {
    margin-top: 0;
    color: #555;
    font-size: 18px;
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    margin: 15px 0;
    color: #2c3e50;
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #3498db;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
    overflow-y: scroll;
}

.modal-content {
    background-color: white;
    margin: 10vh auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #777;
    transition: color 0.3s;
}

.close:hover {
    color: #dc3545;
}
.contact-content,.about-content{
    padding: 5%;
}
/* Footer Styles */
footer {
    background: linear-gradient(to right, #29166F, #2c3e50);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    mix-blend-mode: color-burn;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #29166F;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #4dabf7;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 14px;
}

.banner img{
    width: 100%;
    border-radius: 0 0 50px 50px;
}
.drag-handle {
    cursor: move;
    width: 30px;
    text-align: center;
    font-size: 1.2em;
}

.sortable-table tr {
    transition: background-color 0.3s;
}

.sortable-table .sortable-chosen {
    background-color: #f0f9ff;
}
.featured-products{
    padding: 0px 50px;
    background-color: rgba(0, 0, 0, 0.01);
}
.featured-products h2{
    text-align: center;
    color: #29166F;
    font-size: 36px;
}
.slide-text{
    text-align: center;
    color: #29166F;
    font-size: 24px;
    font-weight: bold;
    padding: 5%;
}
.full-catalog-preview h2 {
    text-align: center;
    color: #29166F;
    font-size: 36px;
    font-weight: bold;
}
.about-content p{
    color: #29166F;
    text-align: justify;
    font-size: 18px;
}

.product-detail {
    display: flex;
    gap: 50px;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 30px;
    position: relative;
}

.product-images {
    flex: 0 0 55%;
}

.product-images .main-image {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
    padding: 10px;
}

.product-info {
    flex: 1;
    padding: 20px 0;
}

.product-info h1 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-info .price,.final-price {
    font-size: 32px;
    color: #e44d26;
    font-weight: bold;
    margin-bottom: 25px;
}

.product-info .category,
.product-info .type,
.product-info .stock {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-description {
    margin: 40px 0;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 17px;
    line-height: 1.8;
}

.product-description h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #2c3e50;
}

.product-actions {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.add-to-cart-form {
    display: grid;
    align-items: center;
    gap: 20px;
}

.add-to-cart-form input[type="number"] {
    width: 100px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.add-to-cart {
    background: linear-gradient(to right, #28a745, #20c997);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40,167,69,0.4);
}

.out-of-stock {
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
    padding: 15px 0;
}

/* Admin Products Styles */
.add-product-form,.add-category-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.admin-table img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Cart Page Styles */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cart-table th, .cart-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: #f5f5f5;
}

.cart-table img {
    vertical-align: middle;
    margin-right: 10px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.update-btn, .checkout-btn, .remove-btn,.back-btn,.shop-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.update-btn {
    background-color: #4CAF50;
    color: white;
}

.checkout-btn,.back-btn,.shop-btn {
    background-color: #29166F;
    color: white;
    text-decoration: none;  
}

.remove-btn {
    color: #f44336;
    text-decoration: none;
}

/* Order Management */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.admin-table th {
    background-color: #f5f5f5;
}

.view-btn {
    background-color: #29166f;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}
.tablinks.active{
    background-color: #29166F;
    color: white;
}
.tablinks {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: #f1f1f1;
    color: #333;
    font-weight: 600;
    font-size: 25px;
    transition: background-color 0.3s, color 0.3s;
}
.tabcontent.active{
    display: block;
}
.tabcontent {
    display: none;
}
.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.variation-option-btn {
    border: 2px solid #ddd;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.variation-option-btn:hover {
    border-color: #29166F;
    background: #f0f4ff;
}

.variation-option-btn.active {
    border-color: #29166F;
    background: #29166F;
    color: white;
}
.user-menu {
  display: none;
  align-items: center;
  justify-content: center;
  row-gap: 10px;
  position: absolute;
  right: 10px;
  top: 60px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  z-index: 999;
}
.user-menu a{
    margin-left: unset;
}
.user-menu.active {
  display: grid;
}

.user-toggle {
  background: none;
  border: none;
  color: #333;
    font-weight: 500;
    padding: 8px 5px;
  margin-left: 20px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .catalog-container {
        gap: 20px;
    }
    
    .category-filter,.type-filter {
        flex: 0 0 240px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .product-detail {
        flex-direction: column;
    }
    
    .product-images {
        position: static;
    }
    
    .catalog-container {
        flex-direction: column;
    }
    
    .category-filter,.type-filter {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar{
        margin: auto;
        
    }
    /* .user-toggle { display: none; } Hide toggle on desktop */
    /* .user-menu { display: flex !important; position: static; border: none; background: none; padding: 0; } */
    
    /* .main-nav ul {
        flex-wrap: wrap;
    } */
    .nav-toggle{
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 999;
    }
    .user-actions {        
        
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        border-top: 1px solid #ddd;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    } 
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .auth-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .add-to-cart-form {
        flex-direction: column;
        align-items: flex-start;
    }
}