@import url('https://fonts.googleapis.com/css2?family=Tiro+Bangla&display=swap');

/* Global styles */
:root {
--primary-color: hotpink;
--secondary-color: lightpink;
--text-color: #333;
--bg-color: #f4f4f4;
--card-bg: #fff;
--border-radius: 8px;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
}

.tiro-bangla {
    font-family: 'Tiro Bangla', serif;
}

/* Header */
.main-header {
background-color: #C71585;
box-shadow: var(--shadow);
padding: 1rem 2rem;
position: sticky;
top: 0;
z-index: 1000;
}

.navbar {
max-width: 1400px;
margin: 0 auto;
position: relative;
}

.header-row-1, .header-row-2 {
padding-left: 280px; /* Space for the overlapping logo */
}

.header-row-1 {
display: flex;
justify-content: center;
align-items: center;
height: 50px;
}

.header-row-2 {
display: flex;
justify-content: space-between;
align-items: center;
}

.logo-container-overlapping {
position: absolute;
top: 50%;
left: 30px;
transform: translateY(-50%);
z-index: 1001;
}

.logo-img-overlapping {
height: 130px; /* Taller logo to span two rows */
border-radius: 30px;
}

.logo-text-container {
text-decoration: none;
}

.search-container {
width: 60%;
margin: 0 1rem;
}

.logo-img {
height: 80px;
margin-right: 10px;
}

.logo-text {
font-size: 1.5rem;
font-weight: bold;
color: #FFFFFF;
}

.logo-text-main {
font-size: 2.3rem;
}

.nav-links {
display: flex;
list-style: none;
align-items: center;
}

.nav-links li {
margin-left: 1.5rem;
}

.nav-links a {
text-decoration: none;
color: #FFFFFF;
font-weight: 500;
transition: color 0.3s ease;
}

.nav-links a:hover {
color: var(--secondary-color);
}

.user-menu {
    position: relative;
}

.user-menu a {
    text-decoration: none;
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 1001;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Main Content */
.content {
max-width: 1300px;
margin: 2rem auto;
}

/* Cards */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}

.product-card {
background-color: var(--card-bg);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
overflow: hidden;
transition: transform 0.3s ease;
}

.product-card:hover {
transform: translateY(-5px);
}

.product-card img {
width: 100%;
height: 250px;
object-fit: cover;
}

.product-info {
padding: 1rem;
}

.product-title {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}

.product-price {
font-size: 1.1rem;
color: var(--primary-color);
font-weight: bold;
}

.btn {
display: inline-block;
background-color: var(--primary-color);
color: #fff;
padding: 0.75rem 1.5rem;
border-radius: 50px;
text-decoration: none;
text-align: center;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 1rem;
}

.btn:hover {
background-color: var(--secondary-color);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Forms */
.form-container {
background-color: var(--card-bg);
padding: 2rem;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
max-width: 500px;
margin: 2rem auto;
}

.form-container h2 {
text-align: center;
margin-bottom: 1.5rem;
color: var(--primary-color);
}

.form-group {
margin-bottom: 1.5rem;
}

.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}

.form-group input {
width: 100%;
padding: 0.75rem;
border: 1px solid #ccc;
border-radius: var(--border-radius);
font-size: 1rem;
}

.form-group input:focus {
outline: none;
border-color: var(--primary-color);
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* Reduced gap */
}

.radio-group input[type="radio"] {
    margin: 0; /* Reset margin */
    width: auto; /* Override default width */
}

.card-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 1rem;
}

.card-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.card-type-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.card-type-option input[type="radio"] {
    display: none;
}

.card-type-option input[type="radio"]:checked + img + span {
    color: var(--primary-color);
    font-weight: bold;
}

.card-type-option input[type="radio"]:checked + img {
    border: 2px solid var(--primary-color);
}
   
.card-type-option img {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .card-type-options {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    }
}

/* Additional styles for sections */
.error-message {
color: #fff;
background-color: #e53935;
padding: 1rem;
border-radius: var(--border-radius);
margin-bottom: 1rem;
text-align: center;
}

/* Footer */
.main-footer {
display: flex;
justify-content: space-between;
align-items: center; /* Vertically align items */
padding: 1.5rem;
background-color: var(--card-bg);
box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
margin-top: 2rem;
flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.footer-links a {
color: var(--text-color);
text-decoration: none;
margin: 0 0.5rem;
}

.footer-copyright {
    text-align: center;
    flex-grow: 1; /* Allows it to take available space and push others */
}

/* Search and Filter */
.search-container {
    position: relative;
    width: 100%;
    margin: 0 auto 1rem;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 5.5rem 0.75rem 1.5rem; /* Adjust padding on the right for the button */
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 1rem;
}

.search-btn-inside {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    height: auto;
    padding: 0 1.5rem;
    border-radius: 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 0;
}

.filter-form select {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Dropdown Button */
.dropbtn {
  background-color: transparent;
  color: #FFFFFF;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  right: 0;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: var(--primary-color);
  color: white;
}

.arrow-down {
  font-size: 0.8em;
  margin-left: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .content {
        margin-top: 0px;    
        padding: 1rem 1rem;
    }

    .main-header {
        height: 120px;
        padding: 0rem;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
    
    
    .logo-container-overlapping {
        /* Positioning */
        position: absolute; /* Keeps it overlapping/floating */
        top: 10px;          /* Places it 10px down from the very top edge */
        left: 10px;         /* Places it 10px in from the very left edge */
        right: auto;        /* Ensures the 'right' property is ignored */
        
        /* Removal of vertical centering */
        transform: none;    /* Removes the translateY(-50%) that was centering it */
        
        /* Layering */
        z-index: 1001;
    }

    .logo-img-overlapping {
        /* Keep your existing image styles */
        height: 60px;
        border-radius: 10px;
    }
    
    .logo-text-container {
        /* Positioning */
        position: absolute; /* Take it out of flow for precise positioning */
        top: 75px;          /* 10px (logo top) + 60px (logo height) + 5px (margin) = 75px */
        left: 10px;         /* Align it with the logo image on the left */
        
        /* Your original style to remove underline */
        text-decoration: none; 
        
        /* Optional: Add z-index to ensure it appears over content */
        z-index: 1000;
    }
    .logo-text {
    font-size: 0.8rem;
    font-weight: bold;
    color: #FFFFFF;
    }
    
    .logo-text-main {
    font-size: 1rem;
    }
    .header-row-1, .header-row-2 {
    padding-left: 110px; /* Space for the overlapping logo */
    padding-top : 2px;
    }
    
    .search-container {
    width: 100%;
    margin: 0 0;
    
    }
    .user-menu {
    position: relative;
    /* Add space above the element */
    margin-top: 2px; /* Adjust this value (e.g., 10px, 1.5rem) as needed */
    }

    .user-menu a {
    text-decoration: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 70%; /* Adjust as needed */
        max-width: 300px; /* Max width for larger mobile devices */
        height: 100vh;
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 2rem 1rem;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        display: flex; /* Always flex, control visibility with 'right' property */
        align-items: flex-start; /* Align items to the start */
        justify-content: flex-start; /* Start content from the top */
        overflow-y: auto; /* Enable scrolling for long menus */
    }

    .nav-links.nav-active {
        right: 0; /* Slide in */
    }

    .nav-links.nav-active .close-menu-item {
        display: block; /* Show when menu is active */
    }

    .nav-links li {
        margin: 0.75rem 0; /* Adjust spacing */
        width: 100%; /* Full width for menu items */
    }

    .nav-links a {
        padding: 0.5rem 0;
        display: block;
        width: 100%;
        color: var(--text-color);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--primary-color);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        cursor: pointer;
        width: 40px;
        height: 30px;
        position: static;
        top: auto;
        right: auto;
        padding: 0;
    }

    
    .mobile-controls {
        display: flex;
        flex-direction: column;
        
        /* Add a margin to push it down from the top/element above it */
        margin-top: 5px; 
        
        align-items: flex-end;
        margin-left: auto;
        gap: 0.5rem;
    }

    .hero-section h1 {
    font-size: 1.5rem !important; /* Even smaller font size for welcome text */
}

.hero-content p {
    font-size: 1rem !important; /* Smaller font size for description text */
    margin-bottom: 1.5rem; /* Adjust margin */
}

.hero-section .search-container {
    width: 100% !important; /* Make search container full width */
    margin: 0 auto;
}

.hero-content {
    padding: 1.5rem; /* Adjust padding for smaller screens */
}
    


    .product-list {
        padding-top : 20px;
    }
    .product-details {
        flex-direction: column; /* Stack image and info vertically */
        padding: 1rem !important; /* Add some padding */
        gap: 1rem; /* Reduce gap */
    }

    .product-details .image-container,
    .product-details .product-info {
        max-width: 100%; /* Ensure they take full width */
        width: 100%; /* Explicitly set width to 100% */
    }

    .product-info h1 {
        font-size: 1.8rem !important; /* Reduced font size for product name */
    }
    .description {
        text-align: justify;
    }

    .reviews-section {
        padding: 0 0.2rem; /* Adjust padding for reviews section */
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .cart-table {
        border: none; /* Remove table borders on mobile */
        box-shadow: none;
        background-color: transparent;
    }

    .cart-table thead {
        display: none; /* Hide table headers on mobile */
    }

    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block; /* Make table elements behave like block-level elements */
        width: 100%;
    }

    .cart-table tr {
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: var(--border-radius);
        background-color: var(--card-bg);
        box-shadow: var(--shadow);
        padding: 1rem;
    }

    .cart-table td {
        display: flex; /* Make td a flex container */
        align-items: center; /* Vertically align content */
        justify-content: flex-end; /* Align content to the right */
        padding-left: 140px; /* Space for the label */
        position: relative;
        border: none; /* Remove cell borders */
    }

    .cart-table td::before {
        content: attr(data-label); /* Use data-label for mobile labels */
        position: absolute;
        left: 15px;
        width: 120px; /* Fixed width for the label */
        padding-right: 10px;
        white-space: normal; /* Allow label to wrap if too long */
        text-align: left;
        font-weight: bold;
        top: 50%; /* Vertically center the label */
        transform: translateY(-50%); /* Adjust for vertical centering */
    }

    

    .cart-product {
        justify-content: flex-start; /* Align product info to the left within its own flex container */
        flex-wrap: wrap; /* Allow content to wrap */
        flex-grow: 1; /* Allow product content to take available space */
    }

    .cart-product span {
        text-align: left; /* Align text to the left */
        flex-grow: 1;
    }

    .cart-product img {
        margin-right: 15px; /* Restore original margin */
        margin-left: 0; /* Remove left margin */
    }

    .cart-summary {
        text-align: center; /* Center summary on mobile */
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        cursor: pointer;
        width: 30px; /* Smaller icon */
        height: 25px; /* Smaller icon */
        position: relative; /* For animating bars */
        z-index: 1001; /* Above nav-links */
        padding: 0;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }

    /* Animation for close icon */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* Ensure checkout table remains a table on mobile */
    .checkout-table-container .cart-table {
        display: table;
        width: 100%;
        border: initial; /* Reset border */
        box-shadow: initial; /* Reset box-shadow */
        background-color: initial; /* Reset background-color */
    }
    .checkout-table-container .cart-table thead {
        display: table-header-group;
    }
    .checkout-table-container .cart-table tbody {
        display: table-row-group;
    }
    .checkout-table-container .cart-table tr {
        display: table-row;
        margin-bottom: 0; /* Reset margin */
        border: initial; /* Reset border */
        box-shadow: initial; /* Reset box-shadow */
        background-color: initial; /* Reset background-color */
        padding: initial; /* Reset padding */
    }
    .checkout-table-container .cart-table th,
    .checkout-table-container .cart-table td {
        display: table-cell;
        padding: 15px; /* Restore original padding */
        border-bottom: 1px solid #eee; /* Restore original border */
        text-align: left;
    }
    .checkout-table-container .cart-table td::before {
        content: none; /* Remove data-label on checkout table */
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }
}

.floating-cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
}

.cart-quantity-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

@media (min-width: 769px) {
    .floating-cart-icon {
        display: none !important;
    }
}


.hero-section {
    margin-top: 50px;
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--card-bg);
    margin-bottom: 2rem;
    border-radius: 8px;
    
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
}

.product-section {
    margin-bottom: 2rem;
}

.product-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.stock-high {
    color: #4CAF50; /* Green */
}

.stock-low {
    color: #FF9800; /* Orange */
}

.stock-out {
    color: #F44336; /* Red */
}

.product-stock {
    font-weight: bold;
    margin-bottom: 1rem;
}

.admin-link {
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

.admin-link:hover {
    background-color: #d32f2f;
}
.mobile-controls {
    margin-left: auto;
}
/* Cart Page Styles */
.cart-product img {
    width: 100px; /* Set a standard size for the image */
    height: 100px;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 8px;
    margin-right: 15px;
}
.cart-table th, .cart-table td {
    padding: 10px;
    text-align: left;
}

/* New Cart Page Styles */
.shopping-cart {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.shopping-cart h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures rounded corners apply to children */
}

.cart-table th, .cart-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.cart-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product img {
    width: 80px; /* Adjusted size */
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
}

.cart-summary {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: right;
}

.cart-summary h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cart-summary .btn {
    margin-top: 0; /* Override default btn margin-top */
}

.checkout-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.order-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Order Success Page Styles */
.order-success {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.order-success h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.order-success p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.profile-section {
    max-width: 1300px; /* Increased width */
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

.profile-details,
.order-history {
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
}

.profile-details h3,
.order-history h3 {
    color: #555;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.profile-details p strong {
    display: inline-block;
    width: 120px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.order-table th,
.order-table td {
    padding: 0.75rem;
    text-align: center !important;
    border-bottom: 1px solid #ddd;
}

.order-table th {
    background-color: #f8f8f8;
}

.order-table tbody tr:hover {
    background-color: #f5f5f5;
}

.order-items-detail {
    background-color: #f9f9f9;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 5px;
    border: 1px solid #eee;
}

.order-items-detail h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #333;
}

.order-items-detail ul {
    list-style: none;
    padding: 0;
}

.order-items-detail ul li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-section {
        padding: 1rem;
        margin: 1rem auto;
    }

    .order-history {
        padding-left: 0;
        padding-right: 0;
    }

    .order-table th,
    .order-table td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .profile-details p strong {
        width: 90px;
    }
}

/* Price Filter Dropdown Styles */
.filters-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.filters-wrapper label {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color);
    white-space: nowrap; /* Prevent "Filter:" label from wrapping */
}

.dropdown-filter {
    position: relative;
    display: inline-block;
}

.dropbtn-filter {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn-filter:hover, .dropbtn-filter:focus {
    background-color: var(--secondary-color);
}

.dropdown-filter-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 220px; /* Slightly wider for better input display */
    box-shadow: var(--shadow);
    z-index: 1;
    padding: 15px;
    border-radius: var(--border-radius);
    top: 100%; /* Position below the button */
    left: 0;
    /* Added for better floating appearance */
    border: 1px solid var(--border-color);
}

.dropdown-filter-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    font-size: 0.95rem;
}

.dropdown-filter-content input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.95rem; /* Consistent font size */
}

.dropdown-filter-content .apply-filter-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 0.95rem;
    border-radius: 4px;
    /* Ensure button styling is consistent */
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-filter-content .apply-filter-btn:hover {
    background-color: var(--secondary-color);
}

.dropdown-filter-content.show {
    display: block;
}

.clear-filter-btn {
    background-color: #f44336; /* Red color for clear button */
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.clear-filter-btn:hover {
    background-color: #da190b;
}

/* Adjustments for existing btn class to not interfere */
.btn.apply-filter-btn, .btn.clear-filter-btn {
    margin-top: 0; /* Override default .btn margin-top */
}

/* Responsive adjustments for filters-wrapper */
@media (max-width: 600px) {
    .filters-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .dropdown-filter-content {
        width: calc(100% - 30px); /* Take full width of parent minus padding */
        margin: 0 15px; /* Center with margins */
        position: absolute; /* Keep absolute positioning */
        left: 0; /* Reset left */
        transform: none; /* Reset transform */
        box-sizing: border-box; /* Include padding in width calculation */
    }
}

/* Quantity Control Styles - Enhanced */
.quantity-control {
    display: flex;
    align-items: center;
    /* Use theme colors for a more integrated look */
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius); /* Use global border-radius */
    overflow: hidden;
    width: fit-content;
    box-shadow: var(--shadow); /* Add a subtle shadow */
}

.quantity-control .quantity-btn {
    background-color: var(--primary-color); /* Use primary color for buttons */
    color: white; /* White text for contrast */
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem; /* Slightly larger font for buttons */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.quantity-control .quantity-btn:hover {
    background-color: var(--secondary-color); /* Secondary color on hover */
    transform: scale(1.05); /* Slight scale effect on hover */
}

.quantity-control .quantity-input {
    width: 50px; /* Slightly wider input */
    text-align: center;
    border: none;
    /* Use theme colors for borders between input and buttons */
    border-left: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
    font-size: 1.1rem; /* Match button font size */
    color: var(--text-color);
    background-color: var(--card-bg); /* Use card background for input */
    -moz-appearance: textfield; /* Hide arrows in Firefox */
}

/* Hide arrows in Chrome, Safari, Edge */
.quantity-control .quantity-input::-webkit-outer-spin-button,
.quantity-control .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bilingual-container {
    display: flex;
    gap: 2rem;
    padding: 1rem;
}

.bilingual-column {
    flex: 1;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: justify;
}

.bilingual-column h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.bilingual-column h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.bilingual-column ul {
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .bilingual-container {
        flex-direction: column;
        padding: 0px;
    }

    .bilingual-column {
        width: 100%;
        padding: 2rem 0.5rem;
        text-align: justify;
    }

    .profile-section .order-table .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .checkout-section .form-group {
        display: flex;
        flex-direction: column;
    }

    .checkout-section .radio-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .manage-orders-page .order-table-container table,
    .manage-orders-page .order-table-container thead,
    .manage-orders-page .order-table-container tbody,
    .manage-orders-page .order-table-container th,
    .manage-orders-page .order-table-container td,
    .manage-orders-page .order-table-container tr {
        display: block;
    }

    .manage-orders-page .order-table-container thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .manage-orders-page .order-table-container tr {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }

    .manage-orders-page .order-table-container td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .manage-orders-page .order-table-container td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
    }

    .form-container {
        width: 90%;
        margin: 2rem auto;
    }

    .card-type-options {
        grid-template-columns: repeat(2, 1fr); /* Two items per row on mobile */
    }
}

.hero-section {
    position: relative;
    height: 60vh;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: gold;
}

.hero-section .search-container {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cart-summary {
        padding-left: 0;
        padding-right: 0;
    }

    .cart-summary .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Checkout Page Styles */
.checkout-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.checkout-summary {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.checkout-summary h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.total-summary {
    text-align: right;
    margin-top: 1.5rem;
}

.total-summary p {
    margin-bottom: 0.5rem;
}

.total-summary h3 {
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

#checkout-form {
    margin-top: 2rem;
}

#checkout-form h3 {
    margin-top: 1.5rem;
}

.payment-info {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    border: 1px solid #eee;
}

.payment-info ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

.terms-agreement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-direction: row !important;
}

.terms-agreement input[type="checkbox"] {
    width: auto;
    margin: 0;
}

@media (max-width: 768px) {
    .nav-links .dropdown-content {
        display: none;
        width: 100%;
        background-color: #e0e0e0;
    }

    .nav-links .dropdown-content.show-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .product-card .product-title {
    font-size: 1rem;
  }

  .product-card .product-price {
    font-size: 0.9rem;
  }

  .product-card .product-stock {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .product-card .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
  }

  .product-card img {
    height: 200px;
  }
}
.construction-banner {
    background-color: #ffc107;
    color: #333;
    padding: 5px;
    text-align: center;
    font-weight: bold;
}
