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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Button Styles */
.btn {
    background: #000000;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s;
    border: 2px solid #ffffff;
    cursor: pointer;
    position: absolute;
    bottom: 70px;
    left: 45%;
    /* transform: translateX(-50%); */
}

.btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.btn-primary {
    background: #7BC142;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    /* transition: background 0.2s; */
    width: 100%;
}

.btn-primary:hover {
    background: #6BA438;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.btn-primary-yes {
    background: #7BC142;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    left: 40%;
    font-weight: bold;
    cursor: pointer;
    /* transition: background 0.2s; */
    width: 100%;
}
.btn-primary-no {
    background: #7BC142;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    left: 50%;
    font-weight: bold;
    cursor: pointer;
    /* transition: background 0.2s; */
    width: 100%;
}
.btn-primary-close {
    background: #7BC142;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    left: 40%;
    bottom: 43%;
    font-weight: bold;
    cursor: pointer;
    /* transition: background 0.2s; */
    width: 20%;
}
.btn-primary-log {
    background: #7BC142;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    left: 42%;
    bottom: -80%;
    font-weight: bold;
    cursor: pointer;
    /* transition: background 0.2s; */
    width: 20%;
}

.btn-primary-log2 {
    background: #7BC142;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    left: 45%;
    bottom: -53%;
    font-weight: bold;
    cursor: pointer;
    /* transition: background 0.2s; */
    width: 20%;
}

.btn-primary-sign {
    background: #7BC142;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    left: 40%;
    bottom: 0%;
    font-weight: bold;
    cursor: pointer;
    /* transition: background 0.2s; */
    width: 20%;
}

.btn-primary-login {
    background: #7BC142;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    left: 40%;
    bottom: 14%;
    font-weight: bold;
    cursor: pointer;
    /* transition: background 0.2s; */
    width: 20%;
}

.btn-secondary {
    background: #f39c12;
    color: white;
}

.btn-secondary:hover {
    background: #e67e22;
    color: white;
}

.btn-edit {
    background: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

.btn-delete:hover {
    background: #c0392b;
}

.btn-fulfillment {
    background: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    margin-top: 10px;
}

.btn-fulfillment:hover {
    background: #2980b9;
}

.btn-fulfillment.fulfilled {
    background: #2ecc71;
    cursor: not-allowed;
}

/* Floating Appointment Button */
.floating-appointment-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #7BC142;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(123, 193, 66, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-appointment-btn:hover {
    background: #6BA438;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 193, 66, 0.6);
}

.floating-appointment-btn:active {
    transform: translateY(-1px);
}

/* Appointment Tooltip */
.appointment-tooltip {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    z-index: 1001;
    transform: scale(0) translateX(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid #7BC142;
}

.appointment-tooltip.show {
    transform: scale(1) translateX(0);
}

.appointment-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.appointment-tooltip h4 {
    color: #7BC142;
    margin-bottom: 5px;
    font-size: 16px;
}

.appointment-tooltip p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.4;
}

.tooltip-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip-close:hover {
    color: #666;
}

/* Header & Navigation */
.august-14-banner {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.august-14-banner-image {
    width: 100%;
    height: 50px;
    display: block;
}

.marquee-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.marquee-text {
    font-size: 2.5vw;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    display: inline-block;
    padding-left: 100%;
}

.marquee-text span {
    padding: 0 2em;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.top-banner {
    background: #d4cdcd;
    color: rgb(19, 0, 0);
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: bold;
}

.header {
    background: #ffffff;
    color: rgb(250, 250, 250);
    padding: 0px 0;
    position: sticky;
    top: 0;
    z-index: 1500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.header.hidden-mobile {
    transform: translateY(-100%);
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
}

.logo img {
    height: 80px;
}

.search-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.search-input {
    padding: 15px 20px;
    font-size: 14px;
    border-radius: 25px;
    border: 1px solid #ccc;
    outline: none;
    width: 500px;
}

/* Mobile Search */
.mobile-search-btn {
    display: none;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.mobile-search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.mobile-search-close {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
}

.mobile-search-results {
    max-height: 60vh;
    overflow-y: auto;
}

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-controls a {
    color: green;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.cart-total-display {
    font-weight: bold;
    color: #000000;
}

.cart-button {
    font-size: 20px;
    color: #000;
    background: #fff;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.cart-button:hover {
    background: #f0f0f0;
}

.cart-item-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f39c12;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.nav-container {
    max-width: 1500px;
    margin: 0px auto;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    text-align: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: center;
    flex: 1;
    flex-wrap: wrap;
}

.nav-link {
    color: rgb(255, 253, 253);
    text-decoration: none;
    padding: 10px 0;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #f39c12;
}

/* Appointment Nav Link Styles */
.appointment-nav-link {
    background: #7BC142 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    border: 2px solid #7BC142 !important;
}

.appointment-nav-link:hover {
    background: #6BA438 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(123, 193, 66, 0.3) !important;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    color: #333;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-sidebar.open {
    transform: translateX(0);
}

.mobile-menu-header {
    background: #000;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-content {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-items {
    padding: 10px 0;
    flex-grow: 1;
}

.mobile-menu-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    font-weight: bold;
}

.mobile-menu-item:hover {
    background: #f0f0f0;
    color: #f39c12;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.mobile-menu-auth a {
    color: green;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 5px 0;
}

/* Mobile Appointment Nav Item */
.appointment-nav-item {
    background: #7BC142 !important;
    color: white !important;
    margin: 10px 20px !important;
    border-radius: 25px !important;
    text-align: center !important;
    border-bottom: none !important;
    font-weight: bold !important;
    padding: 15px 20px !important;
}

.appointment-nav-item:hover {
    background: #6BA438 !important;
    color: white !important;
}

/* Image Slider Styles */
.slider-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 500px;
    position: relative;
    background-position: center;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); */
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 20px;
    /* text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); */
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 3;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot,
.dot:hover {
    background-color: #717171;
}

/* Hide mobile banner on desktop */
.mobile-banner {
    display: none;
}

/* Collections Section */
.collections-section {
    padding: 60px 0;
    text-align: center;
}

.collection-title {
    font-size: 28px;
    margin-bottom: 40px;
    color: #000000;
    position: relative;
    display: inline-block;
}

.collection-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #7BC142;
    margin: 8px auto 0;
}

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

.collection-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.collection-item:hover {
    transform: translateY(-5px);
}

.collection-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #f0f0f0;
}

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

.collection-item h4 {
    font-size: 16px;
    color: #333;
}

/* Page & Section Styles */
.page-header {
    background: #000000;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
}

.page-content {
    padding: 60px 0;
    min-height: 60vh;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #000000;
}

/* Appointment Booking Styles */
.appointment-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: 70vh;
}

.appointment-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(38, 113, 3, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.appointment-container h2 {
    margin-bottom: 30px;
    color: #7BC142;
    font-size: 28px;
}

.appointment-container .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.appointment-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.appointment-container input,
.appointment-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.appointment-container input:focus,
.appointment-container textarea:focus {
    outline: none;
    border-color: #7BC142;
    box-shadow: 0 0 0 2px rgba(123, 193, 66, 0.2);
}

.appointment-container .btn-primary {
    margin-top: 20px;
    padding: 15px;
    font-size: 18px;
}

.appointment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.appointment-info h4 {
    color: #7BC142;
    margin-bottom: 10px;
}

.appointment-info p {
    margin-bottom: 8px;
    color: #666;
}

/* Admin Appointments */
.appointment-record {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.appointment-record h4 {
    margin-bottom: 10px;
    color: #333;
}

.appointment-record p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.appointment-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

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

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

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

/* Login/Auth Page */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.auth-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(38, 113, 3, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 20px;
}

.auth-container .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.auth-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.auth-container .btn-primary {
    margin-top: 10px;
}

.auth-container .toggle-auth {
    margin-top: 20px;
    font-size: 14px;
}

.auth-container .toggle-auth a {
    color: #7BC142;
    cursor: pointer;
    text-decoration: underline;
}

/* Admin Panel */
.admin-panel {
    padding: 40px 0;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.admin-tab {
    padding: 10px 20px;
    cursor: pointer;
    background: #f1f1f1;
}

.admin-tab.active {
    background: #fff;
    border: 1px solid #ccc;
    border-bottom: none;
    font-weight: bold;
}

.admin-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
}

.admin-section {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.order-record,
.admin-product-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-record h4 {
    margin-bottom: 10px;
}

.order-record p {
    margin: 5px 0;
    font-size: 14px;
}

.order-details {
    white-space: pre-wrap;
    font-family: monospace;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

.admin-product-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-product-form .form-group {
    margin-bottom: 0;
}

/* Product Management in Admin */
.admin-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f9f9f9;
    position: relative; /* Add relative positioning */
}

.admin-product-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-product-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.admin-product-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.admin-product-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

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

/* Custom Modals (Alert, Confirm, Edit) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 500px;
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

.modal-close-btn {
    background: #7BC142;
    color: white;
    padding: 10px 25px;
}

.confirm-buttons, .form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.confirm-buttons .btn, .form-buttons .btn {
    width: auto;
    min-width: 100px;
}

#edit-product-form {
    text-align: left;
}

#edit-product-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #02720c;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 1;
    cursor: pointer;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-sale {
    color: #f39c12;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
    outline: none;
    -moz-appearance: textfield;
}

.add-to-cart-btn {
    margin-top: auto;
}

/* Product Detail Page */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.product-detail-image {
    text-align: center;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 40px;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-detail-info .product-price {
    font-size: 24px;
}

.product-detail-info p {
    margin-bottom: 20px;
    color: #666;
}

.product-detail-info .quantity-controls {
    justify-content: flex-start;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #7BC142;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* Cart Page */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.cart-items {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info h4 {
    margin-bottom: 5px;
}

.cart-item-price {
    color: #888;
}

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

.remove-from-cart-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-summary {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 150px;
}

.cart-summary h3 {
    margin-bottom: 20px;
}

.cart-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-summary .total {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 15px;
}

.cart-empty-message {
    text-align: center;
    font-size: 18px;
    color: #888;
    padding: 40px 0;
}

/* Checkout Page */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

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

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.order-summary {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.order-summary h3 {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
}

.payment-methods {
    margin-top: 30px;
}

.payment-method-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.payment-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f1f1f1;
    color: #666;
    border-radius: 5px 5px 0 0;
}

.payment-tab.active {
    background: #fff;
    border-color: #ccc;
    border-bottom-color: #fff;
    position: relative;
    top: 1px;
    color: #000;
    font-weight: bold;
}

.payment-content {
    padding: 15px;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.payment-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
}

/* Custom Formula Page */
.formula-builder-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

.formula-form, .formula-summary {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.formula-form h3, .formula-summary h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.autocomplete-container {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    max-height: 150px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

#formula-items-list .formula-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

#formula-items-list .formula-item:last-child {
    border-bottom: none;
}

.remove-herb-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
}

#formula-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 40px 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #7BC142;
    box-shadow: 0 0 0 2px rgba(123, 193, 66, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    /* Mobile Header */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .header-tools {
        padding: 5px 15px;
        flex-wrap: nowrap;
        align-items: center;
        height: 70px; /* Set a fixed height */
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 60px;
    }

    .search-wrapper {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .mobile-search-btn {
        display: flex;
    }
    
    .header-right-controls {
        gap: 10px;
    }

    #auth-controls-desktop, .cart-total-display {
        display: none;
    }

    .cart-button {
        width: 40px;
        height: 40px;
    }

    /* Mobile Navigation */
    .nav-container {
        display: none;
    }

    .top-banner {
        margin-top: 0;
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Mobile Content */
    body {
        padding-top: 115px; /* Adjust based on header + top banner height */
    }

    .page-content {
        padding: 30px 0;
    }

    .collections-section {
        padding: 30px 0;
    }

    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 15px;
    }

    .collection-image {
        width: 110px;
        height: 110px;
    }

    /* Mobile Product Grid - 2 products per row */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        font-size: 14px;
    }

    .product-image {
        height: 120px;
    }

    .product-info {
        padding: 10px;
    }

    .product-info h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .product-price {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .quantity-controls {
        margin-bottom: 8px;
    }

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .quantity-input {
        width: 40px;
        height: 28px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 8px;
        font-size: 14px;
    }

    /* Mobile Slider */
    .desktop-banner {
        display: none;
    }

    .mobile-banner {
        display: block;
    }
    
    .slide {
        height: 250px;
    }

    .slide-content h1 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Mobile Product Detail */
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-image {
        padding: 20px;
    }

    .product-detail-info h1 {
        font-size: 24px;
    }

    .product-detail-info .product-price {
        font-size: 20px;
    }

    /* Mobile Cart */
    .cart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-item-details {
        width: 100%;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cart-summary {
        position: static;
    }

    /* Mobile Checkout */
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-method-tabs {
        flex-wrap: wrap;
    }

    .payment-tab {
        flex: 1;
        min-width: 100px;
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Mobile Admin */
    .admin-product-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tab {
        flex: 1;
        font-size: 14px;
        padding: 8px 15px;
    }

    .admin-product-item {
        align-items: flex-start;
        padding-bottom: 20px; /* Add padding to avoid overlap */
    }
    
    .admin-product-info {
        padding-right: 90px; /* Make space for the absolute buttons */
    }

    .admin-product-actions {
        position: absolute;
        top: 15px;
        right: 15px;
        flex-direction: column;
        gap: 8px;
        width: 75px;
    }

    /* Mobile Auth */
    .auth-container {
        margin: 10px;
        padding: 20px;
    }

    /* Mobile Appointment */
    .appointment-container {
        margin: 10px;
        padding: 20px;
    }

    .appointment-container h2 {
        font-size: 24px;
    }

    .floating-appointment-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    /* Mobile Appointment Tooltip */
    .appointment-tooltip {
        bottom: 90px;
        right: 20px;
        max-width: 250px;
        padding: 12px 15px;
    }

    .appointment-tooltip h4 {
        font-size: 14px;
    }

    .appointment-tooltip p {
        font-size: 12px;
    }

    .appointment-tooltip::after {
        right: 30px;
    }

    /* Mobile Modal */
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .formula-builder-container {
        grid-template-columns: 1fr;
    }
    
    .marquee-text {
        font-size: 4vw;
        animation-duration: 15s;
    }

    .section-title {
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .product-info h3 {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }

    .slide-content h1 {
        font-size: 20px;
    }

    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }

    .collection-image {
        width: 100px;
        height: 100px;
    }

    .collection-item h4 {
        font-size: 14px;
    }

    .appointment-tooltip {
        max-width: 220px;
        padding: 10px 12px;
    }
}