/* ============================================
   ORCHIDERY – Page-Specific Styles
   ============================================ */

/* ── Hero Section (Homepage) ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1a1a1a;
}

.hero--home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('/assets/images/hero.png');
    background-size: cover;
    background-position: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.15) 40%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: var(--space-6);
    animation: slideUp 0.8s var(--ease-out);
}

.hero__tag {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: var(--space-4);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    line-height: 1.1;
    color: #fff;
    margin-bottom: var(--space-6);
}

.hero__subtitle {
    font-size: var(--fs-lg);
    line-height: var(--lh-loose);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-inline: auto;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }

    100% {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .hero__content {
        padding-top: var(--header-height);
        margin-top: -10vh;
        /* Push the whole text block up to reduce the massive gap */
    }

    .hero__title {
        font-size: var(--fs-4xl);
        line-height: 1.35;
        /* Further increased line height to avoid cramping */
        margin-bottom: var(--space-4);
    }

    .hero__subtitle {
        font-size: var(--fs-base);
        margin-bottom: var(--space-6);
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: var(--fs-3xl);
    }

    .hero__subtitle {
        font-size: var(--fs-base);
    }
}

/* ── Rozcestník (Signpost) ── */
.signpost {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.signpost__card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-out);
}

.signpost__card:hover {
    transform: scale(1.02);
}

.signpost__card-bg {
    position: absolute;
    inset: 0;
}

.signpost__card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.signpost__card:hover .signpost__card-bg img {
    transform: scale(1.08);
}

.signpost__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.signpost__card-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: var(--space-10);
    width: 100%;
}

.signpost__card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-2);
    color: #fff;
}

.signpost__card-desc {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
    .signpost {
        grid-template-columns: 1fr;
    }

    .signpost__card {
        min-height: 300px;
    }
}

/* ── About Section ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-grid__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.about-grid__image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-grid__image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 3px solid var(--color-primary-light);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-grid__text h2 {
    margin-bottom: var(--space-3);
}

.about-grid__text p {
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
    line-height: var(--lh-loose);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about-grid__image::after {
        display: none;
    }
}

/* ── Testimonials Grid ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

/* ── Portfolio / Gallery Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
}

.gallery-item__category {
    color: var(--color-primary-light);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    margin-bottom: var(--space-1);
}

/* ── B2B Hero ── */
.b2b-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    overflow: hidden;
}

.b2b-hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 40px 40px;
}

.b2b-hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
}

.b2b-hero__content h1 {
    color: #fff;
    margin-bottom: var(--space-6);
}

.b2b-hero__content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-md);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-8);
}

.b2b-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-8);
}

/* ── Product Detail ── */
.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.product-gallery__main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-4);
    cursor: zoom-in;
}

.product-gallery__main img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.product-gallery__thumbs {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.product-gallery__thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--duration-fast);
    flex-shrink: 0;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
    border-color: var(--color-primary);
}

.product-gallery__thumb img,
.product-gallery__thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info__title {
    margin-bottom: var(--space-3);
}

.product-info__price {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.product-info__desc {
    color: var(--color-text-light);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border-light);
}

.product-info__stock {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--color-secondary);
    margin-bottom: var(--space-6);
}

.product-info__stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-secondary);
}

.product-info__actions {
    display: block;
    margin-bottom: var(--space-8);
}

.product-info__specs {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-selector__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    transition: background var(--duration-fast);
}

.qty-selector__btn:hover {
    background: var(--color-bg-alt);
}

.qty-selector__value {
    width: 48px;
    text-align: center;
    font-weight: var(--fw-semibold);
    border: none;
    outline: none;
}

@media (max-width: 768px) {
    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .product-gallery {
        position: static;
    }
}

/* ── Cart Page ── */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-6);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--color-text-muted);
    padding: var(--space-4) var(--space-2);
    border-bottom: 2px solid var(--color-border-light);
    text-align: left;
}

.cart-table td {
    padding: var(--space-6) var(--space-2);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.cart-item__img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.cart-item__name {
    font-weight: var(--fw-medium);
}

.cart-item__remove {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    transition: color var(--duration-fast);
    cursor: pointer;
}

.cart-item__remove:hover {
    color: var(--color-error);
}

.cart-summary {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    height: fit-content;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    font-size: var(--fs-sm);
}

.cart-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    padding-top: var(--space-4);
    border-top: 2px solid var(--color-border);
    margin-top: var(--space-4);
}

@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        margin-left: 0;
        max-width: none;
    }

    .cart-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
    }

    .cart-table {
        min-width: 550px;
    }
}

/* ── Contact Page ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
}

.contact-info__item {
    display: flex;
    align-items: start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-primary-bg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--fs-lg);
}

.contact-info__label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

.contact-info__value {
    font-weight: var(--fw-medium);
}

.contact-b2b-box {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Auth / Admin ── */
.auth-box {
    background: #fff;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    margin-inline: auto;
}

.page-header--auth {
    padding: 180px 0 80px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

/* ── Page Header (inner pages) ── */
.page-header {
    padding: var(--space-8) 0 var(--space-10);
    text-align: center;
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center, var(--color-primary-bg) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 0;
}

@media (max-width: 768px) {
    .page-header {
        /* Bring breadcrumbs closer to the header on mobile screens */
        padding: var(--space-4) 0 var(--space-8);
    }
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    margin-bottom: var(--space-4);
}

.page-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin-inline: auto;
    font-size: var(--fs-lg);
}

.page-header .breadcrumb {
    justify-content: center;
    margin-bottom: var(--space-4);
}

/* ── Color Picker (Contact form) ── */
.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.color-picker__option {
    position: relative;
}

.color-picker__option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.color-picker__swatch {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--duration-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-picker__option input:checked+.color-picker__swatch {
    border-color: var(--color-text);
    transform: scale(1.1);
}

.color-picker__swatch--white {
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1px #ddd;
}

.color-picker__swatch--pink {
    background: #D4618C;
}

.color-picker__swatch--purple {
    background: #7B4F9E;
}

.color-picker__swatch--coral {
    background: #E8856C;
}

.color-picker__swatch--yellow {
    background: #F0C75E;
}

.color-picker__swatch--green {
    background: #5B8C5A;
}

.color-picker__swatch::after {
    content: '✓';
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    opacity: 0;
    transition: opacity var(--duration-fast);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.color-picker__option input:checked+.color-picker__swatch::after {
    opacity: 1;
}

/* ── Legal / Info Pages ── */
.legal-document {
    max-width: var(--max-width-narrow);
    margin-inline: auto;
    padding: var(--space-16) var(--space-6) var(--space-24);
}

.legal-document .page-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
    line-height: var(--lh-tight);
}

.legal-document .last-updated {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
}

.legal-document .intro-text {
    font-size: var(--fs-md);
    color: var(--color-text-light);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-12);
}

.legal-document section {
    margin-bottom: var(--space-12);
}

.legal-document section h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary-light);
}

.legal-document section h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.legal-document section p {
    font-size: var(--fs-base);
    color: var(--color-text-light);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-4);
}

.legal-document section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4) 0;
}

.legal-document section ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    font-size: var(--fs-base);
    color: var(--color-text-light);
    line-height: var(--lh-loose);
}

.legal-document section ul li::before {
    content: '';
    position: absolute;
    left: var(--space-2);
    top: 0.75em;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
}

.legal-document section a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-primary-light);
    text-underline-offset: 2px;
    transition: color var(--duration-fast);
}

.legal-document section a:hover {
    color: var(--color-primary-dark);
}

.legal-document .note-box {
    background: var(--color-primary-bg);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-5) var(--space-6);
    margin-top: var(--space-8);
}

.legal-document .note-box p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: var(--lh-loose);
}

/* ── Doprava / Platba Option Cards ── */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.option-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

.option-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.option-card h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.option-card p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-4);
}

.option-card .price {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    background: var(--color-primary-bg);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

/* ── Odstoupení – Form Template ── */
.form-template {
    background: var(--color-bg-alt) !important;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg) !important;
    padding: var(--space-8) !important;
    margin-top: var(--space-6) !important;
}

.form-template p {
    margin-bottom: var(--space-4);
}

.form-template ul {
    margin-bottom: var(--space-6) !important;
}

.form-template ul li {
    padding-left: 0 !important;
    margin-bottom: var(--space-3) !important;
}

.form-template ul li::before {
    display: none !important;
}

/* ── Legal Pages – Responsive ── */
@media (max-width: 768px) {
    .legal-document {
        padding: var(--space-8) var(--space-4) var(--space-16);
    }

    .legal-document .page-title {
        font-size: var(--fs-2xl);
    }

    .legal-document section h2 {
        font-size: var(--fs-lg);
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}