:root {
    --site-bg: #f7f7f5;
    --section-bg: #ffffff;
    --soft-bg: #f2f2f0;
    --border-color: #dededb;

    --text-main: #181818;
    --text-muted: #696969;

    --accent: #b21f2d;
    --accent-dark: #781923;

    --progress: #2f8f5b;
}


html {
    scroll-behavior: smooth;
}

/* Base */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background: var(--site-bg);
}

a {
    color: var(--text-main);
}

main {
    padding: 0px;
}

.muted {
    color: var(--text-muted);
}

button[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Top Bar */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 24px;
    background-color: var(--text-main);
    font-size: 14px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar a,
.top-bar span,
.top-bar .logout-button {
    color: white;
    text-decoration: none;
}

.top-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
}

.logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.logout-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}


/* Main Navigation */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--section-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo a {
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
}


/* Dropdown */

.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 160px;
    background-color: var(--section-bg);
    border: 1px solid var(--border-color);
    padding-top: 10px;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);

    transition:
        opacity 0.15s ease, 
        transform 0.15s ease, 
        visibility 0.15s ease;
    
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Search */

.nav-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-search input,
.search-input,
.search-panel input,
.search-panel select,
.sidebar-card select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.nav-search button,
.search-panel button {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: var(--text-main);
    color: white;
    cursor: pointer;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}


/* Page Layout */

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page-header {
    margin-bottom: 32px;
}


/* Cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.card h3 {
    margin-top: 0;
}


/* Buttons */

.button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--text-main);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

a.button-secondary {
    background: var(--accent);
    color: white;
    
    font-size: 14px;
    font-family: inherit;
    line-height: 1.2;

    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-secondary:hover {
    background: var(--accent-dark);
}


/* Progress */
.progress-container {
    width: 100%;
    background-color: #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    height: 20px;
}

.progress-bar {
    background-color: var(--progress);
    height: 100%;
    text-align: center;
    color: white;
    font-size: 12px;
    line-height: 20px;
}


/* Generic List Layout */
.list-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.search-panel {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.search-panel form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* Tabs Shop Layout */

.shop-layout {
    margin: 20px 0;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar,
.shop-results {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-results {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.sidebar-card {
    background: var(--soft-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
}

.sidebar-card h3 {
    margin-top: 0;
}

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

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

.filter-list a {
    text-decoration: none;
    color: var(--text-main);
}


/* Promo Rotator */

.promo-rotator {
    position: relative;
    min-height: 220px;
}

.promo-slide {
    display: none;
}

.promo-slide.active {
    display: block;
}

.promo-slide h3 {
    color: var(--text-main);
}

.promo-slide p {
    color: var(--text-muted);
    line-height: 1.5;
}

.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
}

.promo-arrow.left {
    left: -10px;
}

.promo-arrow.right {
    right: -10px;
}

.promo-arrow:hover {
    background: var(--soft-bg);
}


/* Pagination */

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.pagination a {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.pagination-current {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
}


/* Footer */

.site-footer {
    background: var(--text-main);
    color: white;
    margin-top: 0px;
    padding: 48px 24px 24px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-column h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.footer-column p {
    color: #e8e0d8;
    line-height: 1.6;
}

.footer-column a {
    display: block;
    color: #e8e0d8;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom h2 {
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-bottom p {
    color: #e8e0d8;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact-item i {
    color: white;
    font-size: 14px;
}

.footer-contact-item a {
    margin-bottom: 0;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-socials a {
    color: white;
    font-size: 16px;
}


/* Social Icons */

.social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icons a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

.social-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-circle:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.social-circle.facebook {
    background: #1877f2;
}

.social-circle.youtube {
    background: #ff0000;
}

.social-circle.instagram {
    background: radial-gradient(circle at 30% 30%, #fdf497, #fd5949, #d6249f, #285aeb);
}

.footer-socials a.social-circle {
    display: inline-flex;
}

.shop-banner {
    position: relative;

    background-size: cover;
    background-position: center;

    min-height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);
}

.shop-banner-content {
    position: relative;
    z-index: 2;

    color: white;
}

.shop-banner h1 {
    margin: 0 0 14px;

    font-size: 52px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;

    font-size: 15px;
}

.breadcrumb,
.breadcrumb a {
    color: white;
    text-decoration: none;
}


/* Tabs Home Page */

.tabs-hero {
    min-height: 620px;
    background: var(--site-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.tabs-hero-content {
    max-width: 900px;
}

.tabs-hero h1 {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 24px;
}

.tabs-hero p {
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    line-height: 1.7;
}

.tabs-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.tabs-feature-card {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
}

.tabs-feature-card i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--accent);
}

.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.section-image {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.newsletter-section {
    background: var(--soft-bg);
    padding: 64px 0;
    text-align: center;
}

.newsletter-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Tabs Shop Page */

.tabs-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 18px;
}

.tab-product-card {
    display: block;
    text-decoration: none !important;
    color: var(--text-main);
    text-align: center;
}

.tab-product-card:hover {
    text-decoration: none !important;
}

.tab-product-info {
    margin-top: 10px;
}

.tab-thumbnail {
    width: 100%;
    aspect-ratio: 3.5 / 4;
    background: var(--soft-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 12px;
}

.tab-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tab-thumbnail-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

.tab-product-card h3 {
    font-size: 15px;
    line-height: 1.3;
    margin: 4px 0 8px;
    font-weight: 500;
}

.tab-product-card p {
    margin: 3px 0;
    line-height: 1.3;
}

.tab-price {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.75;
}

.currency-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.75;
    margin-right: 4px;
    vertical-align: middle;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
}

.contact-layout {
    align-items: stretch;
}

.contact-form-card,
.contact-side {
    height: 100%;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-side .card {
    flex: 1;
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -14px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.floating-cart {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    background: var(--accent);
    color: white;
    padding: 14px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tab-card-actions {
    margin-top: 8px;
}

.tab-card-info {
    min-height: 76px;
}

.tab-card-actions form {
    margin: 0;
}

.tab-card-actions .button,
.tab-card-actions form .button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;

    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.tab-title-line {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.tab-title-line a {
    color: var(--text-main);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-separator {
    margin: 0 1px;
    opacity: 0.7;
    font-weight: 500;
}




.course-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
}

.course-hero h1 {
    margin: 8px 0 12px;
}

.course-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.course-meta span {
    background: var(--soft-bg);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
}

.course-hero-media img,
.course-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    object-fit: cover;
    background: var(--soft-bg);
    border: 1px solid var(--border-color);
}

.course-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.course-progress-card {
    margin-bottom: 24px;
}

.course-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.course-progress-header h3 {
    margin: 0 0 4px;
}

.course-section-header {
    margin-bottom: 20px;
}

.course-section-header h3 {
    margin: 0 0 4px;
}

.course-lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-lesson-item {
    border-top: 1px solid var(--border-color);
}

.course-lesson-item:first-child {
    border-top: none;
}

.course-lesson-item a {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    color: var(--text-main);
    text-decoration: none;
}

.course-lesson-item a:hover strong {
    text-decoration: underline;
}

.lesson-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--soft-bg);
    color: var(--text-muted);
    font-weight: 700;
}

.lesson-check.completed {
    background: var(--progress);
    color: white;
}

.lesson-info p {
    margin: 4px 0 0;
}

.lesson-order {
    font-size: 13px;
    color: var(--text-muted);
}

.course-locked-card {
    margin-top: 24px;
}


.account-tab-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.account-tab-row:last-child {
    border-bottom: none;
}

.account-tab-title {
    margin: 0 0 6px 0;
}

.account-tab-artist {
    margin: 0;
}

.account-tab-info {
    flex: 1;
    min-width: 0;
}

.account-tab-download-button {
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
}

@media (max-width: 640px) {
    .account-tab-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-tab-download-button {
        width: 100%;
        text-align: center;
    }
}