/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --amazon-orange: #FF9900;
    --amazon-dark-orange: #F08804;
    --amazon-blue: #232F3E;
    --amazon-dark-blue: #131921;
    --amazon-light-blue: #37475A;
    --bg-white: #FFFFFF;
    --bg-light: #EAEDED;
    --text-dark: #0F1111;
    --text-light: #565959;
    --text-link: #007185;
    --border-color: #DDD;
    --rating-color: #FFA41C;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: 14px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--amazon-dark-blue);
    color: white;
}

.header-top {
    background-color: var(--amazon-dark-blue);
    padding: 10px 0;
}

.header-top-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 2px;
}

.logo a:hover {
    border-color: white;
}

.search-bar {
    flex: 1;
    display: flex;
    max-width: 800px;
    height: 40px;
}

.search-category {
    background-color: #F3F3F3;
    border: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding: 0 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    border-right: 1px solid #DDD;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-size: 15px;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background-color: var(--amazon-orange);
    border: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    width: 45px;
    cursor: pointer;
    color: var(--amazon-dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: var(--amazon-dark-orange);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-menu,
.returns-orders {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
}

.account-menu:hover,
.returns-orders:hover {
    border-color: white;
}

.account-label,
.returns-label {
    font-size: 12px;
    color: #CCC;
}

.account-text,
.returns-text {
    font-size: 14px;
    font-weight: 600;
}

.cart {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    position: relative;
}

.cart:hover {
    border-color: white;
}

.cart-icon {
    font-size: 24px;
}

.cart-text {
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.cart-count {
    position: absolute;
    top: 0;
    left: 20px;
    background-color: var(--amazon-orange);
    color: var(--amazon-dark-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background-color: var(--amazon-blue);
    padding: 8px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 2px;
}

.nav-menu a:hover {
    border-color: white;
}

.prime-link {
    color: var(--amazon-orange) !important;
    font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--bg-light);
    padding: 10px 0;
    font-size: 12px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-link);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 5px;
}

/* Sections */
.section {
    padding: 20px 0;
    background-color: var(--bg-white);
}

.section-alt {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-panel {
    background-color: var(--bg-white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-panel:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--bg-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-placeholder {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

.prime-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--amazon-orange);
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 2px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
}

.product-name:hover {
    color: var(--amazon-orange);
    cursor: pointer;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: var(--rating-color);
    font-size: 14px;
}

.rating-count {
    color: var(--text-link);
    font-size: 12px;
    cursor: pointer;
}

.rating-count:hover {
    text-decoration: underline;
}

.product-price-section {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

.product-price-old {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.streaming-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.stream-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
}

.stream-link:hover {
    transform: scale(1.1);
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spotify-link:hover {
    background-color: #1DB954;
    color: white;
    border-color: #1DB954;
}

.soundcloud-link:hover {
    background-color: #FF5500;
    color: white;
    border-color: #FF5500;
}

.tiktok-link:hover {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

.stream-link svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.product-shipping {
    font-size: 12px;
    color: var(--text-light);
}

.prime-delivery {
    font-size: 12px;
    color: var(--text-dark);
    margin: 5px 0;
}

.modal-streaming-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.modal-streaming-links .stream-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    width: auto;
    height: auto;
}

.modal-streaming-links .stream-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-streaming-links .spotify-link:hover {
    background-color: #1DB954;
    color: white;
    border-color: #1DB954;
}

.modal-streaming-links .soundcloud-link:hover {
    background-color: #FF5500;
    color: white;
    border-color: #FF5500;
}

.modal-streaming-links .instagram-link:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #bc1888;
}

.modal-streaming-links .tiktok-link:hover {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

.modal-streaming-links .stream-link svg {
    width: 20px;
    height: 20px;
}

.add-to-cart,
.buy-now {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.2s;
}

.add-to-cart {
    background-color: #FFD814;
    color: var(--text-dark);
}

.add-to-cart:hover {
    background-color: #F7CA00;
}

.buy-now {
    background-color: #FFA500;
    color: var(--text-dark);
}

.buy-now:hover {
    background-color: var(--amazon-dark-orange);
}

/* Footer */
footer {
    background-color: var(--amazon-dark-blue);
    color: white;
    margin-top: 50px;
}

.footer-top {
    padding: 40px 0;
    border-bottom: 1px solid var(--amazon-light-blue);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #DDD;
    text-decoration: none;
    font-size: 14px;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #DDD;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #DDD;
    font-size: 12px;
    margin-top: 10px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background-color: var(--bg-white);
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 10001;
}

.modal-close:hover {
    background-color: var(--bg-light);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.modal-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-price-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.modal-price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.modal-price-old {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: line-through;
}

.modal-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-description {
    margin-top: 20px;
}

.modal-description h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.modal-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.modal-description ul {
    list-style: none;
    padding: 0;
}

.modal-description ul li {
    font-size: 14px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-dark);
}

.modal-description ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--amazon-orange);
    font-weight: bold;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .add-to-cart,
.modal-actions .buy-now {
    width: 100%;
}

/* Blur effect for body when modal is open */
body.modal-open {
    overflow: hidden;
}

body.modal-open main,
body.modal-open header,
body.modal-open footer {
    filter: blur(5px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

body.modal-open .modal-overlay {
    pointer-events: auto;
}

body.modal-open .modal-box {
    filter: none;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-top-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 10px;
    }

    .account-menu,
    .returns-orders {
        display: none;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .footer-columns {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 22px;
    }
}
