/* Color Variables */
:root {
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FA; /* Slightly different off-white */
    --color-light-gray: #E9ECEF; /* Lighter gray for backgrounds */
    --color-dark-gray: #212529;  /* Darker gray for text */
    --color-medium-gray: #495057; /* Medium gray for secondary text */
    --color-border-light: #DEE2E6; /* Light border color */
    --color-border-medium: #CED4DA; /* Medium border for inputs */

    --color-cyan-primary: #00BCD4; /* Main Cyan */
    --color-cyan-dark: #00ACC1;   /* Darker Cyan for hover */
    --color-cyan-light: #80DEEA;  /* Lighter Cyan for subtle backgrounds/accents */

    --color-pink-primary: #E91E63; /* Main Pink - slightly adjusted */
    --color-pink-dark: #C2185B;   /* Darker Pink for accents */
    --color-pink-light: #F8BBD0;  /* Lighter Pink */

    --color-success-green: #28a745;
    --color-warning-yellow: #ffc107;
    --color-error-red: #dc3545;

    --font-primary: 'Inter', sans-serif;
    --border-radius-small: 6px;
    --border-radius-medium: 10px;
    --border-radius-large: 16px;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Base styles - Mobile First */
body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-cyan-light) 70%, var(--color-light-gray) 100%);
    background-size: 250% 250%;
    animation: gradientShift 20s ease infinite alternate;
    color: var(--color-dark-gray);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex; /* For sticky footer */
    flex-direction: column; /* For sticky footer */
    min-height: 100vh; /* For sticky footer */
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

*, *::before, *::after {
    box-sizing: border-box;
}

header {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: 1rem 0 0.5rem; /* Adjusted padding */
    text-align: center;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is above other content */
}

h1 {
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0; /* Added bottom margin */
    padding: 0 15px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Main Navigation */
.main-nav {
    padding-bottom: 0.8rem;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.main-nav li a {
    color: var(--color-cyan-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav li a:hover,
.main-nav li a:focus {
    background-color: var(--color-cyan-primary);
    color: var(--color-white);
}


main {
    padding: 25px 15px; /* Adjusted padding */
    max-width: 100%;
    margin: 25px auto;
    background-color: var(--color-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    overflow-x: hidden;
    flex-grow: 1; /* For sticky footer */
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.8rem;
    color: var(--color-dark-gray);
    margin-bottom: 25px;
    padding-left: 12px;
    border-left: 6px solid var(--color-pink-primary);
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--color-off-white);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
}
.search-section h2 {
    border-left-color: var(--color-cyan-primary);
    margin-top: 0;
}

.search-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--border-radius-small);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    border-color: var(--color-cyan-primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.25);
    outline: none;
}


.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.category-button {
    background-color: var(--color-cyan-primary);
    color: var(--color-white);
    padding: 12px 24px; /* Adjusted padding */
    border: none;
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    font-size: 1.05rem; /* Slightly adjusted font size */
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    flex-grow: 1;
    max-width: 48%; /* For 2 buttons per row on small screens */
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
}
.category-button.active { /* Style for active category button */
    background-color: var(--color-cyan-dark);
    box-shadow: 0 2px 5px rgba(0, 188, 212, 0.15);
    transform: translateY(1px);
}


.category-button:hover {
    background-color: var(--color-cyan-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Larger minmax */
    gap: 25px; /* Increased gap */
    margin-top: 30px;
}

.product-card {
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-white);
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px); /* More lift */
    box-shadow: var(--shadow-heavy);
}

.product-card img {
    width: 100%;
    height: 200px; /* Taller images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--color-border-light);
}

.product-info {
    padding: 18px; /* Increased padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--color-dark-gray);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.product-info p {
    font-size: 0.98rem;
    color: var(--color-medium-gray);
    margin-bottom: 15px;
    flex-grow: 1;
}
.product-brand-card {
    font-size: 0.85rem !important; /* Smaller brand text on card */
    color: var(--color-medium-gray) !important;
    margin-bottom: 8px !important;
}


.product-info .price {
    font-weight: bold;
    color: var(--color-success-green);
    font-size: 1.2rem;
    text-align: right;
    margin-top: auto;
}
.no-products-message {
    grid-column: 1 / -1; /* Span all columns */
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-medium-gray);
    padding: 20px;
    background-color: var(--color-off-white);
    border-radius: var(--border-radius-medium);
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001; /* Ensure modal is above header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Darker overlay */
    justify-content: center;
    align-items: center; /* Center vertically */
    padding: 20px; /* Add padding for smaller screens */
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: var(--color-white);
    margin: auto; /* Auto margin for centering */
    padding: 30px; /* Increased padding */
    border-radius: var(--border-radius-large);
    width: 95%;
    max-width: 750px; /* Slightly wider modal */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    animation: fadeInModal 0.4s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


.close-button {
    color: var(--color-medium-gray);
    position: absolute;
    top: 18px; /* Adjusted position */
    right: 22px; /* Adjusted position */
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-pink-dark);
    transform: rotate(90deg);
}

.product-details {
    padding: 15px 0;
}

.product-details h3 {
    font-size: 2rem; /* Larger title */
    margin-top: 0;
    color: var(--color-pink-dark);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.product-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Smaller min for more images in a row */
    gap: 12px;
}

.image-gallery img {
    width: 100%;
    height: 100px; /* Adjusted height */
    object-fit: cover;
    border: 3px solid var(--color-border-light);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.image-gallery img:hover {
    transform: scale(1.1); /* More pronounced scale */
    border-color: var(--color-cyan-primary);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.product-video {
    width: 100%;
    max-height: 300px; /* Adjusted max height */
    border-radius: var(--border-radius-medium);
    background-color: var(--color-dark-gray);
    border: 2px solid var(--color-border-light);
}

.product-details p {
    font-size: 1.1rem; /* Slightly larger text */
    color: var(--color-medium-gray);
    margin-bottom: 18px; /* Adjusted margin */
}
.product-details p strong {
    color: var(--color-dark-gray);
}


.product-price {
    font-weight: bold;
    color: var(--color-success-green);
    font-size: 1.75rem; /* Larger price */
    text-align: center;
    margin-bottom: 30px;
}

.place-order-button, .confirm-order-button {
    color: var(--color-white);
    padding: 18px 35px; /* Larger padding */
    border: none;
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    font-size: 1.35rem; /* Larger font */
    font-weight: 600;
    margin-top: 20px; /* Adjusted margin */
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.place-order-button:disabled, .confirm-order-button:disabled {
    background-color: var(--color-medium-gray);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}


.place-order-button {
    background-color: var(--color-pink-primary);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.35);
}
.place-order-button:hover:not(:disabled) {
    background-color: var(--color-pink-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.45);
}

/* Payment Form (COD only) */
.payment-form {
    margin-top: 20px;
    padding: 30px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-medium);
    background-color: var(--color-off-white);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.06);
}

.payment-form h3, .payment-form h4 { /* Target both if h3 used for title */
    font-size: 1.5rem;
    color: var(--color-dark-gray);
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}
#order-modal h3 { /* Specifically for the Order Modal title */
    color: var(--color-cyan-dark);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}


.payment-form input,
.payment-form textarea {
    width: 100%;
    padding: 15px; /* Increased padding */
    margin-bottom: 20px; /* Increased margin */
    border: 1px solid var(--color-border-medium);
    border-radius: var(--border-radius-small);
    font-size: 1.1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--color-white); /* Ensure inputs have white background */
}

.payment-form input:focus,
.payment-form textarea:focus {
    border-color: var(--color-cyan-primary);
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.2);
    outline: none;
}

.confirm-order-button {
    background-color: var(--color-cyan-primary);
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.35);
}
.confirm-order-button:hover:not(:disabled) {
    background-color: var(--color-cyan-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.45);
}

/* Styles for History, About Us, Contact Us sections */
.info-section {
    background-color: var(--color-off-white);
    border-radius: var(--border-radius-medium);
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--shadow-medium);
    border-top: 5px solid transparent; /* For accent color */
}

.history-section { border-top-color: var(--color-pink-primary); }
.about-us-section { border-top-color: var(--color-success-green); }
.contact-us-section { border-top-color: var(--color-warning-yellow); }


.info-section h2 {
    border-left: none; /* Remove side border if top border is used */
    padding-left: 0;
    margin-bottom: 20px;
    color: var(--color-dark-gray);
}
.history-section h2 { color: var(--color-pink-dark); }
.about-us-section h2 { color: var(--color-success-green); }
.contact-us-section h2 { color: var(--color-warning-yellow); }


.info-section p {
    font-size: 1.1rem;
    color: var(--color-medium-gray);
    margin-bottom: 12px;
    line-height: 1.8;
}

.info-section p strong {
    color: var(--color-dark-gray);
    font-weight: 600;
}

.contact-us-section p a {
    color: var(--color-cyan-primary);
    text-decoration: none;
    font-weight: 500;
}
.contact-us-section p a:hover {
    text-decoration: underline;
    color: var(--color-cyan-dark);
}


/* Media queries for larger screens */
@media (min-width: 600px) {
    h1 {
        font-size: 2.8rem;
    }
    .main-nav ul {
        gap: 25px;
    }
    .main-nav li a {
        font-size: 1.1rem;
        padding: 10px 18px;
    }

    main {
        padding: 40px 30px;
        max-width: 960px;
        margin: 35px auto;
    }
    .search-section {
        padding: 25px;
    }
    .search-input {
        padding: 16px 20px;
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    .category-list {
        flex-wrap: nowrap; /* Prevent wrapping on larger screens */
        justify-content: space-around; /* Distribute space */
    }

    .category-button {
        flex-grow: 0; /* Don't grow to fill space */
        max-width: none;
        min-width: 150px;
        font-size: 1.1rem;
        padding: 14px 28px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjust minmax */
        gap: 30px;
    }

    .product-card img {
        height: 240px;
    }

    .product-info h3 {
        font-size: 1.45rem;
    }

    .product-info p {
        font-size: 1.05rem;
    }

    .product-info .price {
        font-size: 1.3rem;
    }

    .modal-content {
        padding: 40px;
    }

    .close-button {
        font-size: 44px;
    }

    .product-details h3 {
        font-size: 2.4rem;
    }

    .product-media {
        flex-direction: row;
        align-items: flex-start;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        flex-basis: 40%; /* Adjust basis */
        max-width: 40%;
    }

    .image-gallery img {
        height: 110px;
    }

    .product-video {
        max-height: 480px;
        flex-basis: 58%; /* Adjust basis */
        max-width: 58%;
    }
    .info-section {
        padding: 35px;
    }
}

@media (min-width: 1024px) {
    main {
        max-width: 1200px;
        padding: 50px 40px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Further adjust for large screens */
    }
     .modal-content {
        max-width: 850px; /* Wider modal for very large screens */
    }
    .info-section {
        padding: 40px;
    }
}

/* Footer Styles */
.app-footer {
    text-align: center;
    padding: 25px 15px;
    background-color: var(--color-dark-gray); /* Match header */
    color: var(--color-light-gray); /* Use a light color from your palette */
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: auto; /* Pushes footer to bottom when main content is short */
    border-top: 3px solid var(--color-cyan-primary); /* Accent top border */
    width: 100%; /* Ensure footer spans width */
}

.app-footer p {
    margin: 6px 0;
}
/* General styling for content views */
.content-view {
    width: 100%;
    /* Add any other common styles for content views */
}
/* Styles for the new Support Iframe Section */
.support-iframe-section {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9; /* Consistent with other info sections */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center; /* Center the title and paragraph */
}

.support-iframe-section h2 {
    color: #333;
    margin-bottom: 15px;
}

.support-iframe-section p {
    color: #555;
    margin-bottom: 20px;
}

.support-app-iframe-embed {
    width: 100%; /* Make iframe fill the width of its container */
    height: 400px; /* Set a fixed height, adjust as needed */
    border: 1px solid #ccc; /* Add a slight border */
    border-radius: 8px;
    overflow: hidden; /* Hide potential scrollbars if content is smaller */
}

/* For very small mobile screens, you might want to adjust iframe height */
@media (max-width: 600px) {
    .support-app-iframe-embed {
        height: 300px; /* Shorter height on smaller screens */
    }
}

/* Custom Alert/Confirm Modal */
.custom-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Higher than other modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.custom-modal-content {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: fadeInModal 0.3s ease-out;
}

.custom-modal-content h4 {
    font-size: 1.5rem;
    color: var(--color-dark-gray);
    margin-top: 0;
    margin-bottom: 20px;
}

.custom-modal-content p {
    font-size: 1.1rem;
    color: var(--color-medium-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.custom-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.custom-modal-button {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.custom-modal-button.primary {
    background-color: var(--color-cyan-primary);
    color: var(--color-white);
}

.custom-modal-button.primary:hover {
    background-color: var(--color-cyan-dark);
    transform: translateY(-1px);
}

.custom-modal-button.secondary {
    background-color: var(--color-light-gray);
    color: var(--color-dark-gray);
    border: 1px solid var(--color-border-medium);
}

.custom-modal-button.secondary:hover {
    background-color: var(--color-border-medium);
    transform: translateY(-1px);
}

.custom-modal-button.danger {
    background-color: var(--color-error-red);
    color: var(--color-white);
}

.custom-modal-button.danger:hover {
    background-color: var(--color-error-dark);
    transform: translateY(-1px);
}

/* Rating Modal Specific Styles */
.rating-modal-content {
    text-align: center;
}

.rating-stars {
    display: inline-block;
    margin-bottom: 25px;
}

.rating-stars .fa-star {
    font-size: 2.5rem;
    color: var(--color-medium-gray); /* Default star color */
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    margin: 0 3px;
}

.rating-stars .fa-star.selected,
.rating-stars .fa-star:hover,
.rating-stars .fa-star:hover ~ .fa-star { /* Hover effect for previous stars */
    color: var(--color-warning-yellow); /* Filled star color */
}

/* Admin Analytics Tab Styles */
.analytics-section {
    padding: 20px;
    background-color: var(--color-off-white);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
}

.analytics-section h3 {
    border-left-color: var(--color-pink-primary);
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 10px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    margin-bottom: 30px;
    background-color: var(--color-white);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-soft);
    padding: 15px;
}

.analytics-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.analytics-controls label {
    font-weight: 600;
    color: var(--color-dark-gray);
}

.analytics-controls select,
.analytics-controls input[type="date"] {
    padding: 8px 12px;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--border-radius-small);
    font-size: 0.95rem;
    background-color: var(--color-input-bg);
}

.winner-of-week {
    background-color: var(--color-cyan-light);
    color: var(--color-dark-gray);
    padding: 20px;
    border-radius: var(--border-radius-medium);
    text-align: center;
    margin-top: 30px;
    box-shadow: var(--shadow-medium);
}

.winner-of-week h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-dark-gray);
}

.winner-of-week p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.winner-of-week .product-name {
    font-weight: bold;
    color: var(--color-pink-primary);
    font-size: 1.2rem;
}

.winner-of-week .rating-info {
    font-style: italic;
    color: var(--color-medium-gray);
}

.product-comparison-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--color-off-white);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
}

.product-comparison-section h3 {
    border-left-color: var(--color-success-green);
}

.product-select-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.product-select-container select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    background-color: var(--color-input-bg);
}

.compare-button {
    background-color: var(--color-info-blue);
    color: var(--color-white);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.compare-button:hover {
    background-color: #0056b3;
}

.comparison-chart-container {
    position: relative;
    width: 100%;
    height: 350px;
    background-color: var(--color-white);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-soft);
    padding: 15px;
    margin-top: 20px;
}
/* In style.css */

/* Reusing existing custom-modal-overlay for the background */
/* For the modal content itself (vertical rectangle) */
.image-preview-content {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-strong); /* Using a stronger shadow for modals */
    position: relative;
    width: 90%; /* Responsive width */
    max-width: 500px; /* Max width for vertical rectangle */
    height: auto; /* Height adapts to content */
    max-height: 90vh; /* Max height for larger screens */
    overflow-y: auto; /* Enable scrolling if content is too tall */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-preview-content img {
    max-width: 100%; /* Ensure image fits within its container */
    height: auto;    /* Maintain aspect ratio */
    display: block;  /* Remove extra space below image */
    border-radius: var(--border-radius-small); /* Slightly rounded corners for the image itself */
}

/* Style for the close button within this specific modal */
.image-preview-content .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--color-dark-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10; /* Ensure it's above the image */
}

.image-preview-content .close-button:hover {
    color: var(--color-error-red);
}

/* Style for the border on the clicked product image thumbnail */
.product-images .product-image.selected-image {
    border: 3px solid var(--color-cyan-primary); /* Use your primary color for the border */
    box-shadow: 0 0 8px rgba(var(--color-cyan-primary-rgb), 0.5); /* Subtle glow */
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* If you have a specific container for your smaller product images/thumbnails */
.product-images {
    display: flex; /* Or grid, whatever you use for your thumbnails */
    flex-wrap: wrap; /* Allow images to wrap */
    gap: 10px; /* Space between images */
    margin-bottom: 20px;
    justify-content: center; /* Center the images if they don't fill the row */
}

.product-images .product-image {
    width: 80px; /* Adjust thumbnail size as needed */
    height: 80px;
    object-fit: cover; /* Ensures images fill the space without distortion */
    cursor: pointer;
    border: 1px solid var(--color-border-medium); /* Default border */
    border-radius: var(--border-radius-small);
    transition: border 0.2s ease;
}

.product-images .product-image:hover {
    border-color: var(--color-cyan-dark); /* Highlight on hover */
}

/* Add any necessary variables if they are missing from your style.css */
/* Example: */
/*
:root {
    --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.2);
    --color-cyan-primary-rgb: 23, 162, 184; // Add RGB for your primary color if not already defined for rgba
}
*/
/* In style.css - Additions and Adjustments */

/* Styles for the new Product Image Gallery */
.product-image-gallery {
    position: relative; /* For absolute positioning of buttons */
    width: 100%;
    max-width: 400px; /* Adjust max width of the gallery as needed */
    margin: 20px auto; /* Center the gallery */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-medium); /* Optional: add a border to the gallery */
    border-radius: var(--border-radius-medium);
    overflow: hidden; /* Ensures image stays within bounds if it goes outside */
    background-color: var(--color-light-gray); /* Background when image is loading or not present */
    min-height: 250px; /* Minimum height for the gallery */
}

.product-image-gallery #main-product-image {
    max-width: 100%;
    max-height: 350px; /* Max height for the main image within the gallery */
    height: auto;
    display: block;
    cursor: pointer; /* Indicates it's clickable to enlarge */
    transition: transform 0.2s ease; /* Smooth hover effect */
}

.product-image-gallery #main-product-image:hover {
    transform: scale(1.02); /* Slightly zoom on hover */
}

.gallery-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(var(--color-dark-gray-rgb), 0.7); /* Semi-transparent dark background */
    color: var(--color-white);
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--border-radius-small);
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 5; /* Ensure buttons are above the image */
    user-select: none; /* Prevent text selection */
}

.gallery-nav-button:hover {
    background-color: rgba(var(--color-cyan-primary-rgb), 0.9); /* Highlight on hover */
    color: var(--color-white);
}

.gallery-nav-button.prev-button {
    left: 10px;
}

.gallery-nav-button.next-button {
    right: 10px;
}

/* Adjustments for variables if needed: */
/*
:root {
    --color-dark-gray-rgb: 33, 37, 41; // Example for #212529 if not already defined for rgba
    --color-cyan-primary-rgb: 0, 188, 212; // Example for #00BCD4 if not already defined for rgba
}
*/

/* You can remove or adjust the following if no longer used for thumbnails in product modal */
/*
.product-images {
    display: none; // Or remove this section entirely if thumbnails are gone
}
.product-images .product-image.selected-image {
    // This class is no longer needed for thumbnails in the product modal
}
*/
