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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
    color: #fff;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 20px rgba(219, 39, 119, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-action-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    flex-shrink: 0;
}

nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #fff;
    color: #db2777;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Dropdown Menu Styles */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 1000;
    margin-top: 0.5rem;
    overflow: hidden;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    color: #db2777;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #fce7f3;
    padding-left: 1.5rem;
}

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

main {
    padding: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 6rem;
}

main h2 {
    font-size: 1.5rem;
    color: #be185d;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

main h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #f472b6);
    border-radius: 2px;
}

#supply-list,
#home-supply-list,
#shop-supply-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.supply-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid rgba(236, 72, 153, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 0;
}

.supply-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(219, 39, 119, 0.15);
}

.supply-item h2, .supply-item h3 {
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
    line-height: 1.3;
    padding: 0 1rem;
}

.supply-item > h2:first-of-type,
.supply-item > h3:first-of-type {
    padding-top: 1rem;
}

.supply-item p {
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
    padding: 0 1rem;
}

.supply-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.supply-item:hover .supply-img {
    transform: scale(1.05);
}

.supply-item .new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 2;
}

.supply-item .sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 2;
}

.price {
    font-weight: 700;
    font-size: 1rem;
    color: #059669;
    margin: 0.5rem 0;
    padding: 0 1rem;
}

.buy-btn {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.3);
    margin-top: auto;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.4);
}

.buy-btn:active {
    transform: translateY(0);
}

/* Product Detail Modal */
.product-detail-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.product-detail-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.product-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.product-detail-close:hover {
    color: #1f2937;
}

.product-detail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.product-detail-title {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-detail-description {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-detail-price {
    font-size: 1.5rem;
    color: #059669;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-detail-stock {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.product-detail-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail-quantity label {
    font-weight: 600;
    color: #1f2937;
}

.quantity-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.product-detail-button {
    width: 100%;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-detail-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

footer {
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #9ca3af;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 0.9rem;
}

/* Account Section */
#account-section {
    display: flex;
    justify-content: center;
    padding: 2rem 0 4rem;
}

.account-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.account-box h2 {
    color: #be185d;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.account-box h2::after {
    display: none;
}

.account-box form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-box input {
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.account-box input:focus {
    outline: none;
    border-color: #ec4899;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.account-box input::placeholder {
    color: #9ca3af;
}

.account-box .buy-btn {
    margin-top: 0.5rem;
    padding: 1rem 2rem;
}

.account-box p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.account-box .welcome-email {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.account-box .switch-text {
    color: #6b7280;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.account-box .switch-text a {
    color: #db2777;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.account-box .switch-text a:hover {
    color: #be185d;
    text-decoration: underline;
}

/* Account Tabs */
.account-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.account-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.account-tab-btn:hover {
    color: #1f2937;
}

.account-tab-btn.active {
    color: #ec4899;
    border-bottom-color: #ec4899;
}

/* Sales section styling */
#sales-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Featured products grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(219, 39, 119, 0.15);
}

.featured-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

.featured-product-card .sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 2;
}

.featured-product-card .new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 2;
}

.featured-product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-product-info h3 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
}

.featured-product-desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.featured-product-supplier {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.featured-product-price {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #059669;
    font-size: 1.1rem;
}

.featured-product-price .sale-price {
    color: #ef4444;
    margin-right: 0.5rem;
}

.featured-product-price .original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 400;
}

.featured-product-card .buy-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* Supplier Request Styles */
.role-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.role-badge.supplier {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.role-badge.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.role-badge.admin {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
}

.info-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.supplier-cta {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.supplier-cta h3 {
    color: #be185d;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.supplier-cta p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.buy-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid #db2777;
    box-shadow: none;
}

.buy-btn.secondary:hover {
    background: #fdf2f8;
}

.buy-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.buy-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.buy-btn.danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.account-box.wide {
    max-width: 500px;
}

.form-intro {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.account-box textarea {
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.account-box textarea:focus {
    outline: none;
    border-color: #ec4899;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

/* Password field with show/hide toggle */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-wrapper input {
    flex: 1;
    padding-right: 4.5rem !important;
}

.toggle-password-btn {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #db2777;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
}

.toggle-password-btn:hover {
    color: #be185d;
}

/* Password strength meter */
.password-strength-meter {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: -0.5rem;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-bar.weak { background: #ef4444; }
.password-strength-bar.medium { background: #f59e0b; }
.password-strength-bar.strong { background: #10b981; }

.password-strength-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: -0.75rem;
    margin-bottom: 0.25rem;
    text-align: left;
}

.password-strength-label.weak { color: #ef4444; }
.password-strength-label.medium { color: #f59e0b; }
.password-strength-label.strong { color: #10b981; }

.password-requirements {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: left;
    margin-top: -0.5rem;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.password-match-message {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    margin-top: -0.75rem;
}

.password-match-message.match { color: #10b981; }
.password-match-message.no-match { color: #ef4444; }

/* Inventory Section */
#inventory-section {
    padding-bottom: 4rem;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.inventory-header h2 {
    margin-bottom: 0;
}

.inventory-header h2::after {
    display: none;
}

/* Supplier Section Tabs */
.supplier-section-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.supplier-section-tabs .tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.supplier-section-tabs .tab-btn:hover {
    color: #1f2937;
}

.supplier-section-tabs .tab-btn.active {
    color: #ec4899;
    border-bottom-color: #ec4899;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.inventory-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(219, 39, 119, 0.12);
}

.inventory-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #e5e7eb;
}

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

.inventory-image-container .sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.inventory-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.inventory-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.inventory-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.inventory-price {
    font-weight: 700;
    color: #059669;
    font-size: 1.1rem;
}

.inventory-qty {
    color: #6b7280;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.edit-btn {
    flex: 1;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.3);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.4);
}

.edit-btn:active {
    transform: translateY(0);
}

.delete-btn {
    flex: 1;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.delete-btn:active {
    transform: translateY(0);
}

.empty-state, .loading-state {
    text-align: center;
    color: #fff;
    padding: 3rem;
    background: transparent;
    border-radius: 16px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading-state {
    border-style: solid;
    border-color: #e5e7eb;
}

.form-buttons {
    display: flex;
    gap: 1rem;
}

.form-buttons .buy-btn {
    flex: 1;
}

/* ==========================================
   Admin Panel Styles
   ========================================== */
.admin-header {
    margin-bottom: 2rem;
}

.admin-header h2 {
    margin-bottom: 1rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: rgba(255,255,255,0.3);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #374151;
}

.admin-tab-btn:hover {
    background: rgba(255,255,255,0.6);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.admin-filter-section {
    margin-bottom: 1.5rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-controls input,
.filter-controls select {
    padding: 0.6rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.filter-controls input:focus,
.filter-controls select:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.admin-card.pending {
    border-left: 4px solid #f59e0b;
}

.admin-card.approved {
    border-left: 4px solid #10b981;
}

.admin-card.rejected {
    border-left: 4px solid #ef4444;
}

.admin-card h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.2rem;
}

.card-header {
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.card-email, .card-phone, .card-date, .card-supplier {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.card-desc {
    color: #4b5563;
    margin: 0.75rem 0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: nowrap;
    align-items: center;
}

.card-actions .buy-btn {
    flex: 1;
    margin-top: 0;
    text-align: center;
}

.error-state {
    text-align: center;
    color: #ef4444;
    padding: 2rem;
    background: #fee2e2;
    border-radius: 12px;
}

.info-text {
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Admin Table */
.admin-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    font-weight: 600;
    color: #1f2937;
}

.admin-table tr:hover {
    background: #fdf2f8;
}

.admin-table select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.admin-table select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Role badges in table */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-badge.customer {
    background: #e0e7ff;
    color: #3730a3;
}

.role-badge.supplier {
    background: #d1fae5;
    color: #065f46;
}

.role-badge.admin {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
}

/* Sale Badge and Styles */
.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-sale 2s infinite;
}

@keyframes pulse-sale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.inventory-card.on-sale,
.admin-card.on-sale {
    position: relative;
    border: 2px solid #ef4444;
}

.sale-price {
    color: #ef4444 !important;
    font-weight: 700;
}

.original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.inventory-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

/* Edit Form Styles */
#modal-form-container .sale-checkbox-group label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0;
}

#modal-form-container .sale-checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #db2777;
    flex-shrink: 0;
    margin: 0;
}

#modal-form-container .sale-checkbox-group span {
    display: inline;
    margin: 0;
}

.sale-price-group {
    background: #fef2f2;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #fecaca;
    margin-bottom: 1rem;
}

.discount-preview {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.buy-btn.secondary {
    background: #6b7280;
}

.buy-btn.secondary:hover {
    background: #4b5563;
}

/* Global Search Bar in Header */
.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
}

.header-search input {
    width: 100%;
    max-width: 350px;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-search input:focus {
    box-shadow: 0 2px 15px rgba(255, 255, 255, 0.3);
}

.header-search .search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.header-search .search-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

/* Inventory Search and Filters */
.inventory-filters {
    background: white;
    padding: 1.25rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-row .search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-row .search-input:focus {
    border-color: #ec4899;
}

.filter-row select {
    padding: 0.6rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    background: white;
    cursor: pointer;
    min-width: 140px;
}

.filter-row select:focus {
    border-color: #ec4899;
}

.filter-row .clear-filters-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.filter-row .clear-filters-btn:hover {
    background: #4b5563;
}

/* Search Results Highlight */
.search-highlight {
    background: #fef3c7;
    padding: 0 2px;
    border-radius: 2px;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-results h3 {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* Shop Product Styles */
.supply-item.on-sale {
    border: 2px solid #ef4444;
    position: relative;
}

.supplier-tag {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
    margin: 0.25rem 0;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.stock-info {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 500;
    margin: 0.5rem 0;
    padding: 0 1rem;
}

.info-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.loading-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Product Images */
.supply-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.inventory-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.no-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Image Upload */
.image-upload-group {
    margin: 1rem 0;
}

.image-upload-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.image-upload-group input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
}

.image-upload-group input[type="file"]:hover {
    border-color: #ec4899;
    background: #fdf2f8;
}

.image-preview {
    margin-top: 0.75rem;
    text-align: center;
}

.image-preview img {
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview p {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.current-image {
    margin-bottom: 0.75rem;
    text-align: center;
}

.current-image img {
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.current-image p {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
/* Cart Styles */
#cart-section {
    display: none;
}

#cart-section.active {
    display: block !important;
}

.cart-container {
    max-width: 900px;
    margin: 0 auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-header h2 {
    margin-bottom: 0;
}

.cart-close-btn {
    background: transparent;
    color: #6b7280;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-close-btn:hover {
    color: #1f2937;
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    color: #6b7280;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    align-items: flex-start;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.cart-item-supplier {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cart-item-quantity input {
    width: 50px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    gap: 0.5rem;
}

.cart-remove-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.cart-remove-btn:hover {
    background: #fecaca;
}

.cart-summary {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #4b5563;
}

.cart-summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #be185d;
    border-top: 2px solid rgba(236, 72, 153, 0.3);
    padding-top: 1rem;
    margin-top: 1rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cart-checkout-btn {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cart-checkout-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.cart-continue-btn {
    background: transparent;
    color: #db2777;
    border: 2px solid #db2777;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-continue-btn:hover {
    background: #fdf2f8;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================
   Collections Section
   ========================================== */
.collections-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.collection-card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.collection-hero-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e5e7eb;
}

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

.collection-card > h3,
.collection-card > p {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.collection-card > h3 {
    padding-top: 1.5rem;
}

.collection-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.collection-card h3 {
    color: #1f2937;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.collection-description {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.collection-meta {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.collection-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.collection-product-item {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.collection-product-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.collection-product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #e5e7eb;
}

.collection-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-product-item:hover .collection-product-image {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.collection-product-item h4 {
    padding: 0.75rem 0.75rem 0.25rem;
    font-size: 0.95rem;
    color: #1f2937;
    min-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.collection-product-item .product-description {
    padding: 0 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    min-height: 1.2em;
}

.collection-product-item .product-price {
    padding: 0.5rem 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-grow: 1;
    align-self: flex-start;
}

.original-price {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.collection-product-item .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ec4899;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.75rem;
    border-radius: 6px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Collection checkbox styling */
.collection-checkbox-group {
    margin: 0.5rem 0;
}

.collection-checkbox-group label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.collection-checkbox-group input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
}

.collection-checkbox-group span {
    display: inline;
    white-space: nowrap;
}

.collection-name-group {
    margin: 1rem 0;
}

.collection-name-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

/* ==========================================
   Collection Management Grid
   ========================================== */
.collections-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.collection-management-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.collection-management-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.collection-mgmt-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.collection-mgmt-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.collection-mgmt-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-mgmt-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-product-count {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: auto;
}

.collection-mgmt-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #f3f4f6;
}

.collection-mgmt-actions button {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.collection-mgmt-actions button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.collection-mgmt-actions button.delete {
    color: #ef4444;
    border-color: #fecaca;
}

.collection-mgmt-actions button.delete:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

/* Collection Products List */
.collection-products-list {
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.collection-products-list h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
}

.products-in-collection {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.products-in-collection li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.product-item-name {
    flex: 1;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-from-collection-btn {
    padding: 0.4rem 0.8rem;
    margin-left: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.remove-from-collection-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.no-products-in-collection {
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* Collection Edit Form Styles */
.collection-edit-products {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.collection-edit-products h4 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 600;
}

.edit-products-list {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-products-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.edit-products-list span {
    flex: 1;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edit-products-list .remove-btn {
    padding: 0.3rem 0.6rem;
    margin-left: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 1;
}

.edit-products-list .remove-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.no-products-msg {
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    text-align: center;
}

.add-product-to-collection-btn {
    width: 100%;
    padding: 0.75rem;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-product-to-collection-btn:hover {
    background: #059669;
}

/* Add Product to Collection Form */
#add-to-collection-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#add-to-collection-form label {
    font-weight: 600;
    color: #374151;
}

#add-to-collection-form select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

#add-to-collection-form select:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* ==========================================
   Modal Dialog for Add Product Form
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    sticky: top 0;
    background: #fff;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

#modal-form-container {
    padding: 2rem;
}

.modal-body {
    padding: 2rem;
}

/* Modal form styling */
#modal-form-container input,
#modal-form-container textarea,
#modal-form-container select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

#modal-form-container input:focus,
#modal-form-container textarea:focus,
#modal-form-container select:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

#modal-form-container textarea {
    resize: vertical;
}

#modal-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

#modal-form-container .form-group {
    margin-bottom: 1rem;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem;
    }

    #modal-form-container {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* ==========================================
   Carousel/Slider Styling
   ========================================== */
.carousel-container {
    width: 100%;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
}

.carousel-slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.carousel-slide-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-slide-content {
    flex: 1;
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.carousel-slide-category {
    display: inline-block;
    background: rgba(236, 72, 153, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    margin-bottom: 0;
}

.carousel-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.carousel-slide-description {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.carousel-slide-price {
    font-size: 1.5rem;
    color: #ec4899;
    font-weight: 700;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.carousel-slide-original-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.carousel-slide-discount {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 1rem;
}

.carousel-slide-button {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.carousel-slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #fbbf24;
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column;
        padding: 1.5rem;
    }

    .carousel-slide-title {
        font-size: 1.8rem;
    }

    .carousel-slide-description {
        font-size: 0.95rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }
}
.checkout-form-container h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.checkout-cart-summary {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid #ec4899;
    font-size: 1.1rem;
}

.shipping-info {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.shipping-info label {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
    display: block;
}

.warehouse-address {
    color: #78350f;
    font-size: 1.05rem;
    margin: 0.5rem 0 0 0;
}

/* ==========================================
   My Orders Styling
   ========================================== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.order-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.order-header strong {
    font-size: 1.1rem;
    color: #1f2937;
}

.order-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.order-status-badge {
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-details {
    margin-bottom: 1rem;
}

.order-details p {
    margin: 0.5rem 0;
    color: #374151;
}

.order-items {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.order-total {
    text-align: right;
    font-size: 1.15rem;
    color: #ec4899;
    padding-top: 0.75rem;
    border-top: 2px solid #e5e7eb;
}