/* ============================================
   COUCHES RECORDS - SHOP PAGE STYLES
   ============================================ */

/* Page Header */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-header .highlight {
    color: var(--yellow);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Products Section */
.products-section {
    padding: 2rem 5% 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Shop Filters */
.shop-filters {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.shop-filter-btn {
    padding: 0.6rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.shop-filter-btn:hover {
    border-color: var(--yellow);
}

.shop-filter-btn.active {
    border-color: var(--yellow);
    color: var(--yellow);
}

@media (max-width: 600px) {
    .shop-filters {
        gap: 0.35rem;
    }
    .shop-filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(var(--shop-cols, 4), 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.product-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
}

/* Product Ribbon — diagonal corner banner */
.product-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.product-ribbon span {
    position: absolute;
    display: block;
    width: 170px;
    padding: 6px 0;
    background: var(--crimson);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    transform: rotate(45deg);
    top: 26px;
    right: -40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Ribbon in product modal */
.product-ribbon.modal-ribbon {
    width: 140px;
    height: 140px;
}

.product-ribbon.modal-ribbon span {
    width: 200px;
    padding: 8px 0;
    font-size: 0.7rem;
    top: 32px;
    right: -48px;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-tertiary);
}

.product-image .placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--crimson);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-badge.coming-soon {
    background: var(--text-secondary);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.product-price .original {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Shopify Buy Button Container */
.buy-button-container {
    min-height: 50px;
}

.shopify-buy-container {
    min-height: 50px;
    margin: 1rem auto 1.5rem auto;
    text-align: center;
    max-width: 400px;
}

.shopify-buy-container iframe {
    margin: 0 auto !important;
    display: block !important;
}

.shopify-buy-container [data-shopify-buy-ui] {
    display: flex !important;
    justify-content: center !important;
}

.shopify-buy-container .loading-spinner {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--yellow);
    color: #0A0A0A;
    border: none;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.buy-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

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

.buy-btn.secondary:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.buy-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.product-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--crimson);
    border-color: var(--crimson);
}

.modal-flyer { width: 100%; aspect-ratio: 1; background: var(--bg-tertiary); overflow: hidden; }
.modal-flyer img { width: 100%; height: 100%; object-fit: cover; }
.modal-flyer .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; opacity: 0.3; }
.modal-body { padding: 1.5rem 2rem 2rem; text-align: center; }
.modal-label { font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.5rem; }
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.modal-details { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.modal-detail { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }

.product-modal-body {
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.modal-product-image {
    width: 100%;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.modal-product-image > img {
    width: 100%;
    display: block;
}

.modal-product-image .flyer-carousel {
    width: 100%;
}

.modal-product-image .flyer-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-product-image .placeholder {
    font-size: 4rem;
    opacity: 0.3;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.modal-product-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.modal-product-description {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.85rem;
}

.modal-product-description-header {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    text-align: center;
    margin-bottom: 0.75rem;
}

.modal-product-description p {
    margin-bottom: 0.75rem;
}

.modal-product-description p:last-child {
    margin-bottom: 0;
}

.modal-product-perks {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-product-perks h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--accent);
}

.modal-product-perks ul {
    list-style: none;
}

.modal-product-perks li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.modal-product-perks li:last-child {
    border-bottom: none;
}

.modal-product-perks li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.75rem;
}

.modal-product-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.modal-buy-container {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Ticket Section in Modal */
.modal-ticket-section { margin-bottom: 1rem; }
.ticket-price { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.75rem; }
.ticket-variant-select { width: 100%; padding: 0.875rem 1rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-primary); font-family: 'Outfit', sans-serif; font-size: 0.95rem; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.ticket-variant-select:focus { outline: none; border-color: var(--yellow); }
.ticket-variant-select option { background: var(--bg-secondary); color: var(--text-primary); }

/* Buy Button */
.modal-buy-btn-custom { display: block; width: 100%; padding: 14px 24px; background: var(--crimson); color: white; font-family: 'Outfit', sans-serif; font-weight: bold; font-size: 14px; text-align: center; border: none; border-radius: 40px; cursor: pointer; transition: all 0.3s; }
.modal-buy-btn-custom:hover { background: var(--crimson-dark); transform: translateY(-2px); }
.modal-buy-btn-custom.yellow { background: var(--yellow); color: #0A0A0A; }
.modal-buy-btn-custom.yellow:hover { background: #e6c200; }

/* First Time Expandable */
.first-time-section { margin-top: 1.25rem; }
.first-time-toggle { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; background: transparent; border: 1px dashed var(--border-color); border-radius: 12px; color: var(--text-secondary); font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.first-time-toggle:hover { border-color: var(--yellow); color: var(--yellow); }
.first-time-text { font-size: 0.75rem; letter-spacing: 0.05em; }
.first-time-toggle:hover .first-time-icon { transform: scale(1.1); }
.first-time-icon { font-size: 1rem; transition: transform 0.3s; }
.first-time-arrow { font-size: 1.1rem; font-weight: 300; transition: transform 0.3s; }
.first-time-section.expanded .first-time-arrow { transform: rotate(90deg); }
.first-time-section.expanded .first-time-toggle { border-style: solid; border-color: var(--border-color); border-bottom: none; border-radius: 12px 12px 0 0; background: var(--bg-tertiary); color: var(--yellow); }
.first-time-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.first-time-section.expanded .first-time-content { max-height: 300px; }
.first-time-tips { padding: 1rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-top: none; border-radius: 0 0 12px 12px; display: flex; flex-direction: column; gap: 0.75rem; }
.first-time-tip { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }
.tip-icon { font-size: 0.9rem; flex-shrink: 0; }

/* Upcoming Shows Highlight */
.modal-upcoming-shows { background: var(--bg-tertiary); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; text-align: left; }
.modal-upcoming-shows h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; color: var(--accent); text-align: center; }
.upcoming-show-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; display: flex; justify-content: space-between; }
.upcoming-show-item:last-child { border-bottom: none; }
.upcoming-show-title { color: var(--text-primary); flex-shrink: 0; }
.upcoming-show-date { color: var(--text-secondary); text-align: right; padding-left: 1.5rem; }
/* Flowing text block (What to Expect) */
.event-info-text { font-size: 0.85rem; color: var(--text-primary); line-height: 1.6; }
/* Event note styling */
.modal-upcoming-shows.event-note { padding: 1.5rem; }
.modal-upcoming-shows.event-note .upcoming-show-item { justify-content: center; padding: 0; }
.modal-upcoming-shows.event-note .upcoming-show-title { color: var(--text-secondary); font-style: italic; line-height: 1.5; flex-shrink: 1; white-space: normal; text-align: center; }

/* Price on cards */
.product-price-dynamic { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 0.75rem; }

.product-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.5rem;
}

.modal-product-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Shopify Cart Checkout Note */
.shopify-buy__cart-bottom::after {
    content: "🔒 Powered by Shopify. Close tab to return.";
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    font-family: 'Outfit', sans-serif;
}
