/* --- General & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #152A5D; /* Mint Green */
    --secondary-color: #ff7e67; /* Coral */
    --accent-color: #7aa5d2; /* Sky Blue */
    --light-color: #f9f9f9;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    min-height: calc(100vh - 400px);
}

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

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

h1, h2, h3, h4 {
    margin-top: 0;
    font-weight: 600;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 12px 20px;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 1em;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-left: 20px;
}

.btn-primary { background-color: var(--primary-color); }
.btn-secondary { background-color: var(--secondary-color); }
.btn-danger { background-color: #e74c3c; }

.btn-primary:hover, .btn-secondary:hover, .btn-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    color: var(--text-color);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: var(--box-shadow);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.header-left, .header-right {
    flex: 1;
}
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.logo-container {
    text-align: center;
}
.logo-image {
    height: 100px; /* Controls the logo size */
    width: auto;
}
.search-container {
    margin-right: 20px; /* Adds space between search and cart */
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
#searchInput {
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    background: #f4f4f4;
    color: var(--text-color);
    width: 250px;
    transition: all var(--transition-speed);
    flex: 1 1 250px;
    min-width: 0;
}
#searchButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
#searchButton:hover {
    background: var(--accent-color);
}
#searchButton:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 42, 93, 0.25);
}
#searchButton i {
    pointer-events: none;
}
#suggestionsBox {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 1003;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-color);
    cursor: pointer;
    text-decoration: none;
}
.suggestion-item:hover {
    background: #f7f7f7;
}
.suggestion-thumbnail {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}
.suggestion-thumbnail.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85em;
}
.suggestion-thumbnail.placeholder i {
    pointer-events: none;
}
.suggestion-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.suggestion-title {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggestion-meta {
    font-size: 0.8em;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#searchInput:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(72, 169, 166, 0.3);
}
.cart-icon-container {
    position: relative;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--text-color);
}
#cart-item-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 0.6em;
    font-weight: bold;
}
nav { background-color: #fff; }
nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
}
nav ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}
nav ul li a:hover::after {
    width: 100%;
}

/* --- News Carousel --- */
.news-carousel {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
    position: relative;
}
.carousel-slide img {
    width: 100%;
    display: block;
    height: 450px;
    object-fit: cover;
    border-radius: 0; /* Override general img radius */
}
.news-carousel .carousel-slide a.news-slide-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    padding: 40px 30px 30px;
}
.carousel-caption h3 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
}
.carousel-caption p {
    font-size: 1.1em;
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-speed);
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-control:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.carousel-control.prev { left: 15px; }
.carousel-control.next { right: 15px; }
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 6px;
    cursor: pointer;
    transition: all var(--transition-speed);
}
.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.sponsors-carousel {
    position: relative;
    max-width: 1200px;
    margin: 10px auto 40px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: #fff;
    border: 1px solid #eee;
}
.sponsors-carousel .carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.sponsors-carousel .carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
}
.sponsors-carousel .carousel-slide img {
    height: 140px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
}
.sponsors-carousel .carousel-control.prev { left: 10px; }
.sponsors-carousel .carousel-control.next { right: 10px; }


/* --- Product & Artist Grids --- */
.featured-products, .featured-artists { margin-top: 50px; }
.featured-products h2, .featured-artists h2 { text-align: center; margin-bottom: 40px; font-size: 2.2em; }
.product-grid, .artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.product-card, .artist-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: box-shadow 0.3s;
    overflow: hidden;
    position: relative;
}
@media (hover: hover) and (pointer: fine) {
    .product-card, .artist-card {
        transition: transform 0.3s, box-shadow 0.3s;
    }
    .product-card:hover, .artist-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
}
@media (hover: none), (pointer: coarse) {
    .product-card, .artist-card {
        transition: box-shadow 0.3s;
    }
    .product-card:hover, .artist-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
}
@media (max-width: 1024px) {
    .product-card:hover, .artist-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
}

@media (max-width: 992px) {
    .products-page-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .filters-sidebar {
        width: 100%;
        padding: 0;
        background: transparent;
        box-shadow: none;
        position: relative;
        inset: auto;
    }
    .filters-sidebar__body {
        width: 100%;
        max-width: none;
        background: #fff;
        border-radius: var(--border-radius);
        padding: 18px 16px;
        box-shadow: var(--box-shadow);
        max-height: none;
        overflow: visible;
    }
    .filters-close {
        display: none;
    }
    .products-list-section {
        width: 100%;
    }
    .products-list-section h2 {
        font-size: 1.9em;
    }
    .product-grid, .artist-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 0;
    }
    .product-card {
        text-align: left;
    }
    .product-card a {
        padding: 16px 16px 20px;
    }
    .product-card img {
        height: 200px;
        border-radius: 12px;
        margin-bottom: 14px;
    }
    .product-card h3 {
        font-size: 1.15em;
        text-align: left;
    }
    .product-card .price {
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .filters-sidebar__body {
        padding: 16px 14px;
    }
}
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .product-grid .product-card a {
        padding: 14px 14px 18px;
    }
    .product-grid .product-card img {
        height: 170px;
    }
}
.product-card .product-image-container {
    position: relative;
}


.product-card a, .artist-card a { color: var(--text-color); display: block; padding: 20px; }
.product-card a:hover, .artist-card a:hover { text-decoration: none; }
.product-card img { height: 220px; width: 100%; object-fit: cover; margin-bottom: 15px; }
.artist-card img { border-radius: 50%; height: 180px; width: 180px; object-fit: cover; border: 3px solid var(--accent-color); }
.product-card h3, .artist-card h3 { font-size: 1.2em; margin: 10px 0; }
.product-card .artist { font-size: 0.9em; color: #777; margin-bottom: 10px; }
.product-card .price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2em;
}
.product-card .price-old {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 0.85em;
    color: #777;
    font-weight: 400;
}
.product-card .price-current {
    font-weight: 700;
    color: var(--primary-color);
}
.product-card .shipping-tag {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}
.product-grid.scroll-animate-ready .product-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: var(--card-delay, 0ms);
    will-change: opacity, transform;
}
.product-grid.scroll-animate-ready .product-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.product-grid.scroll-animate-ready .product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0) 80%);
    transform: translateX(-100%);
    animation: product-card-shimmer 1.3s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}
.product-grid.scroll-animate-ready .product-card:not(.is-visible)::after {
    opacity: 0.6;
}
.product-grid.scroll-animate-ready .product-card.is-visible::after {
    opacity: 0;
    animation: none;
}
@keyframes product-card-shimmer {
    100% {
        transform: translateX(100%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .product-grid.scroll-animate-ready .product-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }
    .product-grid.scroll-animate-ready .product-card::after {
        display: none;
    }
}

.filters-sidebar__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}
.filters-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.filters-close {
    display: none;
    background: transparent;
    border: none;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.filters-sidebar form {
    flex: 1;
    overflow: visible;
}

/* --- Footer --- */
footer {
    background: #fff;
    color: var(--text-color);
    padding: 50px 20px;
    margin-top: 50px;
    border-top: 1px solid #eee;
}
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-section { flex: 1; min-width: 250px; }
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    position: relative;
    padding-bottom: 10px;
}
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}
.social-icons a {
    color: var(--text-color);
    margin-right: 15px;
    font-size: 1.5em;
    transition: color 0.3s;
}
.social-icons a:hover { color: var(--primary-color); }

/* --- Cart Modal --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background overlay */
    transition: opacity var(--transition-speed) ease-in-out;
}

.modal-content {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 400px; /* Or your preferred width */
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
}

/* Animation for the modal sliding in */
.modal.is-open .modal-content {
    transform: translateX(0);
}

.modal-content h2 {
    padding: 20px 25px;
    margin: 0;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-button:hover,
.close-button:focus {
    color: var(--text-color);
}

#cartItemsContainer {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info p {
    margin: 0 0 5px;
}
.cart-item-info p:first-child {
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.cart-item-quantity button {
    background: #f4f4f4;
    border: 1px solid #ddd;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1em;
    line-height: 1;
    transition: background-color var(--transition-speed);
}
.cart-item-quantity button:hover {
    background-color: #e9e9e9;
}

.cart-item-quantity span {
    padding: 0 12px;
    font-weight: 600;
}

.cart-item-remove {
    color: #ccc;
    cursor: pointer;
    font-size: 1.2em;
    transition: color var(--transition-speed);
}
.cart-item-remove:hover {
    color: var(--secondary-color);
}

.cart-summary-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1em;
    font-weight: 500;
    margin: 0 0 20px 0;
}
.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(21,42,93,0.25);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2400;
}
.scroll-top-btn i {
    font-size: 1.25rem;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top-btn:not(.visible) {
    transform: translateY(10px);
}
.scroll-top-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        box-shadow: 0 8px 18px rgba(21,42,93,0.28);
    }
    .scroll-top-btn i {
        font-size: 1.1rem;
    }
}
.cart-summary-line.total {
    font-weight: 700;
    font-size: 1.1em;
}

.cart-actions {
    display: grid;
    gap: 10px;
}
.cart-actions .btn-primary, .cart-actions .btn-secondary {
    width: 90%;
    text-align: center;
}

/* --- Checkout Dialogs --- */
.dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.dialog-overlay.is-open {
    display: flex;
    opacity: 1;
}

.dialog-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    max-width: 520px;
    max-height: min(640px, 90vh);
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(15px);
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    opacity: 0;
}

.dialog-overlay.is-open .dialog-content {
    transform: translateY(0);
    opacity: 1;
}

.dialog-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #666;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.dialog-close:hover,
.dialog-close:focus {
    color: var(--primary-color);
}

.payment-dialog {
    text-align: center;
}

.payment-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.payment-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 26px 18px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.payment-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.payment-card:hover,
.payment-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
}

.form-dialog {
    max-width: 560px;
}

.cod-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-weight: 600;
}

.form-row input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 42, 93, 0.15);
    outline: none;
}

.form-row.split {
    flex-direction: row;
    gap: 16px;
}

.form-row.split > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-error-message {
    color: #c0392b;
    font-size: 0.9rem;
    min-height: 18px;
}

.confirm-order-btn {
    align-self: flex-end;
}

.order-confirmation {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1003;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.order-confirmation.is-visible {
    display: flex;
    opacity: 1;
}

.order-confirmation-content {
    background: #fff;
    border-radius: 18px;
    padding: 30px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
    animation: confirmation-pop 0.4s ease forwards;
}

.order-confirmation-content i {
    font-size: 2.6rem;
    color: var(--primary-color);
}

.order-confirmation-content p {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

@keyframes confirmation-pop {
    0% {
        transform: scale(0.75);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .dialog-content {
        padding: 24px 20px;
    }
    .payment-card-grid {
        grid-template-columns: 1fr;
    }
    .form-row.split {
        flex-direction: column;
    }
    .confirm-order-btn {
        width: 100%;
    }
    .dialog-content h2 {
        font-size: 1.25rem;
    }
    .cod-form {
        gap: 14px;
    }
    .form-row input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    .dialog-content {
        padding: 20px 16px;
        max-width: 360px;
    }
    .dialog-content h2 {
        font-size: 1.15rem;
    }
    .form-row input {
        padding: 9px 11px;
        font-size: 0.9rem;
    }
    .confirm-order-btn {
        font-size: 0.95rem;
        padding: 11px;
    }
}

body.has-open-dialog {
    overflow: hidden;
}

/* --- Catalog & Artists --- */
.catalog-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: var(--text-color);
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: #fff;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.alphabet-nav a, .alphabet-nav span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-weight: 600;
    border-radius: 50%;
    transition: all var(--transition-speed);
}

/* Style for the clickable letters */
.alphabet-nav a {
    background-color: var(--primary-color);
    color: #fff;
}

.alphabet-nav a:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    color: #fff; /* Ensure text color remains white on hover */
}

/* Style for the non-clickable (disabled) letters */
.alphabet-nav span {
    background-color: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
}

.artist-group {
    margin-bottom: 30px;
}

.artist-group .letter-heading {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-size: 1.8em;
}

.artist-list ul {
    list-style: none;
    padding: 0;
    column-count: 4; /* Adjust number of columns as needed */
    column-gap: 30px;
}

.artist-list li {
    margin-bottom: 10px;
}

.artist-list li a {
    display: block;
    padding: 8px;
    border-radius: 5px;
    transition: background-color var(--transition-speed);
}

.artist-list li a:hover {
    background-color: #e9f7f7; /* A light mint color */
}

/* Responsive adjustments for the columns */
@media (max-width: 992px) {
    .artist-list ul {
        column-count: 3;
    }
}
@media (max-width: 768px) {
    .artist-list ul {
        column-count: 2;
    }
}
@media (max-width: 576px) {
    .artist-list ul {
        column-count: 1;
    }
}

/* --- Products Page (products.php) --- */
.products-page-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.filters-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
}

.filters-sidebar h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group ul li a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-speed);
    position: relative;
    left: 0;
}

.filter-group ul li a:hover {
    background-color: #e9f7f7; /* Light mint color */
    color: var(--primary-color);
    left: 5px; /* Adds a nice subtle movement on hover */
}

/* Enhanced filter UI: category accordion + checkbox lists */
.category-list { display: flex; flex-direction: column; gap: 10px; }
.category-item { border: 1px solid #eee; border-radius: var(--border-radius); background: #fff; overflow: hidden; box-shadow: var(--box-shadow); }
.category-item.active { border-color: var(--primary-color); }
.category-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: transparent; border: none; cursor: pointer; font-weight: 600; color: var(--text-color); }
.category-toggle:hover { background: #f7f7f7; }
.category-toggle .chevron { transition: transform 0.2s ease; color: #888; }
.category-panel { display: none; padding: 12px 14px 14px; border-top: 1px solid #eee; background: #fafafa; }
.category-panel.open { display: block; }
.category-item.active .category-toggle .chevron { transform: rotate(180deg); }

.filter-subgroup { margin-top: 10px; }
.filter-subgroup:first-child { margin-top: 0; }
.subgroup-title { font-size: 0.95em; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; }
.checkbox-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.checkbox-list.inline { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.checkbox-item label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 8px; border-radius: 6px; transition: background-color 0.2s ease; }
.checkbox-item label:hover { background: #f4f9ff; }
.checkbox-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-color); }
.filter-actions { margin-top: 12px; display: flex; gap: 8px; }
.filter-actions .btn-secondary { padding: 8px 12px; font-size: 0.95em; margin-left: 0; }

.products-list-section {
    flex-grow: 1;
}

.products-list-section h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Artist header on individual artist page */
.artist-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.artist-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: var(--box-shadow);
}
/* When multiple artists are selected, show smaller images inline */
.artist-header.multi { gap: 12px; flex-wrap: wrap; }
.artist-header.multi .artist-photo { width: 120px; height: 120px; }

/* --- Responsive for Products Page --- */
@media (max-width: 992px) {
    .products-page-container { flex-direction: column; }
    .filters-sidebar {
        width: 100%;
        position: relative;
        top: auto;
        margin-bottom: 30px;
        box-sizing: border-box;
        height: auto;
        overflow: visible;
    }
}

/* --- Products Page (products.php) --- */
.products-page-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.filters-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
}

.filters-sidebar h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group ul li a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-speed);
    position: relative;
    left: 0;
}

.filter-group ul li a:hover {
    background-color: #e9f7f7; /* Light mint color */
    color: var(--primary-color);
    left: 5px; /* Adds a nice subtle movement on hover */
}

.products-list-section {
    flex-grow: 1;
}

.products-list-section h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* --- Responsive for Products Page --- */
@media (max-width: 992px) {
    .products-page-container { flex-direction: column; }
    .filters-sidebar {
        width: 100%;
        position: relative;
        top: auto;
        margin-bottom: 30px;
        box-sizing: border-box;
        height: auto;
        overflow: visible;
    }
}

/* --- Product Detail Pages (LP & CD) --- */

/* General container for both LP and CD pages */
.product-page-container {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: grid;
    gap: 40px;
}

/* --- CD Product Page (product_cd.php) Specifics --- */
.product-page-container.product-cd {
    grid-template-columns: 1fr; /* Single column layout for the CD page structure */
}

.cd-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    perspective: 1000px; /* For 3D effects on hover */
}

.cd-image-left, .cd-image-right {
    flex: 0 0 40%;
    max-width: 350px;
    transition: transform var(--transition-speed);
}
.cd-image-left:hover {
    transform: rotateY(-10deg);
}
.cd-image-right:hover {
    transform: rotateY(10deg);
}

.cd-image-left img, .cd-image-right img {
    box-shadow: var(--box-shadow);
}

/* Make CD/LP images clearly interactive */
.cd-image-left img, .cd-image-right img {
    cursor: pointer;
}

.cd-status {
    border: 3px dashed var(--secondary-color);
    padding: 10px 20px;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
    transform: rotate(-8deg);
    text-align: center;
}

.cd-status span { text-transform: uppercase; display: inline-block; }

.cd-status.novo {
    border-color: #2ecc71;
    color: #2ecc71;
}

.cd-status.polovno {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.cd-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.cd-purchase-info h1 {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 5px;
}

.cd-purchase-info h2 {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 20px;
    font-weight: 400;
}

.cd-purchase-info .price {
    font-size: 2.2em;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.quantity-selector label {
    margin-right: 15px;
    font-weight: 600;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #f4f4f4;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 50%;
    line-height: 1;
    transition: all var(--transition-speed);
}
.quantity-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}


#quantity {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.2em;
    font-weight: 600;
    background: transparent;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.cd-description h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.cd-description p {
    line-height: 1.8;
}

.product-rating {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.product-rating h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.rating-item > span:first-child {
    font-weight: 600;
    width: 120px;
}

.rating-circles-container {
    display: flex;
    gap: 5px;
}

.rating-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: 2px solid #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.rating-circle.filled.red { background-color: #e74c3c; }
.rating-circle.filled.orange { background-color: #f39c12; }
.rating-circle.filled.green { background-color: #2ecc71; }

.rating-value {
    font-weight: 700;
    font-size: 1.1em;
}

/* --- Responsive for CD Page --- */
@media (max-width: 992px) {
    .cd-details-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .cd-layout {
        flex-direction: column;
    }
    .cd-image-left, .cd-image-right {
        flex: 1 1 auto;
        width: 80%;
    }
    .cd-status {
        margin: 20px 0;
    }
}

/* --- LP Product Page (product_lp.php) Specifics --- */
.product-page-container.product-lp {
    /* Mirror CD layout: single-column wrapper, inner sections handle layout */
    grid-template-columns: 1fr;
}

/* --- HI/FI Product Page (product_hifi.php) --- */
.product-page-container.product-hifi {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
}
.product-page-container.product-hifi .product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product-page-container.product-hifi .product-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.product-page-container.product-hifi .product-gallery .main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.product-page-container.product-hifi .thumbnail-images {
    flex-wrap: wrap;
}
.product-page-container.product-hifi .quantity-selector {
    align-self: flex-start;
}

.product-gallery .main-image {
    margin-bottom: 15px;
    cursor: pointer;
    overflow: hidden; /* Ensures the zoom effect is contained */
    border-radius: var(--border-radius);
}

.product-gallery .main-image img {
    transition: transform 0.4s ease;
}

.product-gallery .main-image:hover img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 90px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 5px;
    transition: all var(--transition-speed);
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(72, 169, 166, 0.3);
}

.product-details h1 {
    font-size: 2.8em;
    line-height: 1.2;
    margin-bottom: 5px;
}

.product-details h2 {
    font-size: 1.6em;
    color: #666;
    margin-bottom: 25px;
    font-weight: 400;
}

.product-details .price {
    font-size: 2.5em;
    color: var(--primary-color);
    font-weight: 700;
}

/* Price + stock badge row */
.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stock-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}
.stock-badge.novo { background: #eaf8f0; color: #2ecc71; border-color: #bdebd0; }
.stock-badge.polovno { background: #fff1ee; color: var(--secondary-color); border-color: #ffd2c9; }
.oos-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    pointer-events: none;
    z-index: 2;
}
.oos-badge.inline {
    position: static;
    display: inline-block;
    margin-top: 10px;
}

.shipping-info {
    font-size: 1em;
    color: #555;
    margin: 12px 0 20px;
    font-weight: 500;
}

.product-description {
    margin-top: 30px;
}
.product-description h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.product-description p {
    line-height: 1.8;
}
.product-genres {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.product-genres-label {
    font-weight: 700;
    color: var(--primary-color);
}
.product-genres-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.genre-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1f3f85;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

/* Clothing (Majice/Dukserice/Kape) details */
.size-section, .color-section { margin: 12px 0 6px; }
.size-title, .color-title { font-weight: 700; color: var(--primary-color); margin-bottom: 6px; }
.size-chips, .color-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip {
    background: #f4f7ff;
    border: 1px solid #dfe8ff;
    color: #294a8f;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: background var(--transition-speed), color var(--transition-speed), border var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    font-family: inherit;
}
.option-chip:hover { background: #e6efff; }
.option-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.option-chip:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}
.color-chip {
    background: #fafafa;
    border: 1px solid #eee;
    color: #333;
}
.option-helper {
    margin-top: 6px;
    font-size: 0.9em;
    color: #c0392b;
}
.option-helper.hidden { display: none; }
.selection-summary {
    display: none;
    margin: 10px 0 6px;
    font-weight: 600;
    color: var(--primary-color);
}
.cart-item-variants {
    font-size: 0.9em;
    color: #555;
    margin: 4px 0 6px;
}

/* HI/FI specs table */
.product-specs { margin-top: 20px; }
.product-specs h3 { font-size: 1.3em; margin-bottom: 12px; border-bottom: 2px solid var(--primary-color); padding-bottom: 8px; }
.specs-table { display: grid; grid-template-columns: 1fr; gap: 8px; }
.spec-row { display: grid; grid-template-columns: 160px 1fr; gap: 10px; align-items: center; background: #fcfcfc; padding: 8px 10px; border: 1px solid #eee; border-radius: 6px; }
.spec-key { font-weight: 700; color: var(--primary-color); }
.spec-val { color: var(--text-color); }

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1002;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

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

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover {
    color: var(--secondary-color);
}

/* Responsive for LP Page */
@media (max-width: 992px) {
    .product-page-container.product-lp {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .product-page-container.product-hifi {
        grid-template-columns: 1fr;
    }
}

/* --- Aksesoari Page Adjustments --- */
.product-page-container.product-aksesoari .product-gallery .main-image img {
    width: 50%;
    display: block;
    margin: 0 auto;
}

/* --- Login & Admin --- */
.login-page, .admin-page {
    background-color: var(--light-color);
    font-family: 'Poppins', sans-serif;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 2em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all var(--transition-speed);
}
.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(72, 169, 166, 0.3);
}

.login-form button {
    width: 100%;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

/* Admin Page Styles */
.admin-header {
    background: #fff;
    color: var(--text-color);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow);
}
.admin-header h1 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin: 0;
}

.admin-header nav a {
    color: var(--text-color);
    margin-left: 25px;
    font-weight: 600;
    transition: color var(--transition-speed);
}
.admin-header nav a:hover {
    color: var(--primary-color);
}

.admin-main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.admin-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.admin-section h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.admin-form input, .admin-form select, .admin-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    transition: all var(--transition-speed);
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(72, 169, 166, 0.3);
}

.admin-form textarea {
    grid-column: 1 / -1;
    min-height: 100px;
    resize: vertical;
}
.admin-form label {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.admin-table thead {
    background-color: var(--light-color);
}
.admin-table th {
    font-weight: 700;
    color: var(--primary-color);
}

.admin-table tbody tr:hover {
    background-color: #f9f9f9;
}
/* Disabled buttons */
.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.orders-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .orders-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    }
}

.order-card {
    position: relative;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.order-id {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.order-date {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: #777;
}

.order-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.4rem;
    transition: background var(--transition-speed), transform var(--transition-speed);
    text-decoration: none;
}

.order-delete-btn:hover {
    background: #e74c3c;
    transform: scale(1.05);
}

.order-card-body {
    display: grid;
    gap: 18px;
}

@media (min-width: 900px) {
    .order-card-body {
        grid-template-columns: minmax(210px, 240px) 1fr;
    }
    .order-totals {
        align-self: end;
    }
}

.order-customer h4,
.order-items h4 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.order-customer p,
.order-items p {
    margin: 4px 0;
}

.order-items ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-items li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f7fb;
}

.order-items a {
    font-weight: 600;
    color: var(--text-color);
}

.order-items a:hover {
    color: var(--primary-color);
}

.order-item-qty {
    font-weight: 600;
    color: var(--primary-color);
}

.order-item-meta {
    font-size: 0.9rem;
    color: #666;
}

.order-item-total {
    margin-left: auto;
    font-weight: 700;
}

.order-totals {
    background: #f5f7fb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-totals p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.order-totals .order-total {
    font-size: 1.1rem;
    color: var(--primary-color);
}
