/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 2000;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px #25d36655;
    font-size: 2.6rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.whatsapp-float:hover {
    box-shadow: 0 8px 32px #25d36699;
    transform: scale(1.08);
    color: #fff;
}
/* Logo text estilo manuscrita */
.lindeza-logo-text {
    font-family: 'Pacifico', cursive;
    font-size: 2.8rem;
    color: #fff;
    text-shadow: 2px 2px 8px #d96690, 0 1px 0 #f2c4ce;
    font-weight: normal;
    letter-spacing: 2px;
    margin-left: 8px;
}

/* Tarjetas de productos bonitas y responsivas */
.product-gallery-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 2rem 0 1rem 0;
    justify-items: center;
    align-items: stretch;
}
@media (max-width: 992px) {
    .product-gallery-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .product-gallery-horizontal {
        grid-template-columns: 1fr;
    }
}
.product-gallery-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 12px 48px rgba(217,102,144,0.18);
    border: 2px solid #f2c4ce;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    max-width: 380px;
    width: 100%;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
    justify-content: flex-start;
}
.product-gallery-card:hover {
    box-shadow: 0 24px 64px rgba(217,102,144,0.22);
    transform: translateY(-10px) scale(1.06);
    border-color: var(--primary-color);
}
.product-gallery-img {
    height: 260px;
    width: 100%;
    max-width: 320px;
    border-radius: 24px;
    box-shadow: 0 4px 18px rgba(217,102,144,0.10);
    object-fit: contain;
    background: #fff;
    margin-bottom: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-gallery-img:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 32px rgba(217,102,144,0.18);
}
.product-gallery-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
.product-gallery-desc {
    font-size: 1rem;
    color: #555;
    text-align: center;
    margin-bottom: 0.6rem;
    min-height: 38px;
    font-weight: 400;
}
.product-gallery-price {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
}
.product-gallery-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
:root {
    --primary-color: #D96690;
    --secondary-color: #F2C4CE;
    --text-color: #333;
    --background-color: #FFF8F6;
    --white-color: #FFFFFF;
    --footer-bg: #F9EBEF;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 2rem;}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* Header */
.main-header {
    background: linear-gradient(90deg, #fff8f6 0%, #f9ebef 60%, #f2c4ce 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 110px;
    max-width: 350px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-form {
    transition: all 0.3s ease;
}
#search-input {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    width: 200px;
    transition: width 0.3s ease-in-out;
}
#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 250px;
}

.header-icons a {
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
#user-info span {
    font-size: 0.9rem;
    font-weight: 600;
}
#user-info a {
    font-size: 0.9rem;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

#admin-link {
    color: var(--primary-color);
    font-weight: 700;
}

.hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(217,102,144,0.12);
    border: 1.5px solid #f2c4ce;
    padding: 1.5rem 1rem 1rem 1rem;
    min-width: 260px;
    max-width: 300px;
    margin-bottom: 1.2rem;
    transition: box-shadow 0.3s, transform 0.3s;
    justify-content: flex-start;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white-color);
    text-align: left;


/* Hero Section Side Image */
.hero-img-btn {
    background: linear-gradient(90deg, #d96690 80%, #f2c4ce 100%);
    color: #fff;
    border: none;
    border-radius: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(217,102,144,0.18);
    transition: background 0.3s, transform 0.3s;
    z-index: 2;
    text-shadow: 0 2px 8px #d9669022;
}
.hero-img-btn:hover {
    background: linear-gradient(90deg, #c45a80 80%, #d96690 100%);
    transform: scale(1.07);
}
@media (max-width: 768px) {
    .hero-img-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }
}
.hero-side-image {
    display: flex;
    align-items: stretch;
    min-height: 70vh;
    background: none;
    margin-bottom: 2rem;
}
.hero-img-container {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f9ebef 60%, #fff 100%);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 12px 48px rgba(217,102,144,0.18);
    margin: 0 auto;
    display: block;
}
.hero-img-large {
    max-width: 1100px;
    width: 100%;
    border-radius: 40px;
}
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff8f6;
    padding: 3rem 2rem;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 8px 32px rgba(217,102,144,0.10);
    color: var(--primary-color);
    min-width: 320px;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}
.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}
.hero-content .btn {
    font-size: 1.1rem;
    padding: 14px 36px;
    box-shadow: 0 2px 8px rgba(217,102,144,0.10);
}

@media (max-width: 992px) {
    .hero-side-image {
        flex-direction: column;
        min-height: 50vh;
    }
    .hero-img-container, .hero-content {
        border-radius: 24px;
        min-width: unset;
        max-width: 100%;
    }
    .hero-img {
        border-radius: 24px;
        max-width: 100%;
        height: 220px;
    }
    .hero-content {
        padding: 2rem 1rem;
    }
}
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.product-card p {
    color: #777;
    margin-bottom: 0.5rem;
}

.product-card .price {
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-card .edit-btn {
    display: none; /* Hidden by default */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 180px;
    width: 100%;
    max-width: 220px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(217,102,144,0.08);
    object-fit: contain;
    background: #fff;
    margin-bottom: 1.2rem;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Show edit buttons when admin is logged in */
.admin-view .product-card .edit-btn {
    display: block;
}

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

.modal-content {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

#login-form, #register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-form input, #register-form input {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: var(--font-family);
    font-size: 1rem;
}

.switch-form-link {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: background-color 0.3s ease;
}

.cart-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

#cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}
.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 5px;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}
.cart-item-info p {
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.quantity-controls button {
    background: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}
.remove-item {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
}
.empty-cart-msg {
    text-align: center;
    margin-top: 3rem;
    color: #777;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.btn-checkout {
    width: 100%;
    padding: 15px;
}

/* Skincare Section */
.skincare-section {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--white-color);
}
.skincare-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    color: #666;
}

/* Shop by Category */
.shop-by-category {
    padding: 0 0 4rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 350px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white-color);
    background-color: rgba(217, 102, 144, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Promo Banner */
.promo-banner {
    background-color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.subscribe-form input {
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    min-width: 300px;
    font-family: var(--font-family);
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    padding: 4rem 0 2rem;
    color: #555;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-column p {
    margin-bottom: 1rem;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #555;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: #555;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-card {
        height: 250px;
    }
}


@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-list.active {
        display: flex;
    }
    .nav-list li {
        text-align: center;
        padding: 1rem 0;
    }

    .hamburger {
        display: block;
    }


    
    .hero {
        height: 60vh;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    .footer-column {
        margin-bottom: 1rem;
    }
    .social-icons {
        justify-content: center;
    }
    
    .subscribe-form {
        flex-direction: column;
        align-items: center;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .subscribe-form input {
        min-width: initial;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* General Styles */
:root {
    --primary-color: #d13a7a;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --background-color: #fff;
    --border-color: #ddd;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

header {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: var(--shadow);
}

header h1 {
    color: white;
    margin: 0;
}

main {
    padding: 2rem 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: #777;
    margin-top: 2rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
}

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

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #b9336a;
}

.btn i {
    margin-right: 8px;
}

.btn-icon {
    padding: 8px 12px;
}

.btn-icon i {
    margin-right: 0;
}

.btn-secondary {
    background: #777;
}
.btn-secondary:hover {
    background: #555;
}

.btn-danger {
    background: #e74c3c;
}
.btn-danger:hover {
    background: #c0392b;
}

.description-cell {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}


/* Product Grid (User Page) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer to stick to bottom */
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 1.2rem;
}

.product-info .description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes price/button down */
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Pushes to the bottom */
}

.product-info .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}


/* Login Page */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--secondary-color);
}

.login-container {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box; /* Important for width */
    font-family: var(--font-body); /* Inherit font */
}

.form-group input:invalid {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    min-height: 1.2em;
}

.hint {
    font-size: 0.9em;
    color: #777;
    margin-top: 1rem;
}


/* Admin Panel */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.admin-header h1 i {
    margin-right: 10px;
}

.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feedback-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
}

.feedback-message.success {
    background-color: #2ecc71;
}

.feedback-message.error {
    background-color: #e74c3c;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    background: white;
}

th, td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

thead {
    background-color: var(--primary-color);
    color: white;
}

tbody tr:nth-of-type(even) {
    background-color: var(--secondary-color);
}

tbody tr:hover {
    background-color: #e9e9e9;
}

.product-table-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons button {
    margin-right: 5px;
    padding: 5px 10px;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}