/* Formisca – Modern Luxury Suits Theme */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --formisca-navy: #1a2332;
    --formisca-charcoal: #2d3a4a;
    --formisca-gold: #b8860b;
    --formisca-gold-light: #d4a84b;
    --formisca-cream: #f8f6f1;
    --formisca-white: #ffffff;
    --formisca-text: #2d3a4a;
    --formisca-text-muted: #5c6b7a;
    --formisca-border: #e8e6e1;
    --primary-color: var(--formisca-navy);
    --background-color: var(--formisca-cream);
}

body {
    background-color: var(--background-color);
    font-family: 'Outfit', sans-serif;
    color: var(--formisca-text);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Cormorant Garamond', serif;
}

/* ========== Header – Sticky, modern ========== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--formisca-white) !important;
    box-shadow: 0 1px 0 var(--formisca-border);
}

.navbar-formisca {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: var(--formisca-white) !important;
    border-bottom: 1px solid var(--formisca-border);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--formisca-navy) !important;
    font-size: 1.5rem;
}

/* Nav items – equal width and height */
.nav-links-equal {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.nav-links-equal .nav-item {
    flex: 1;
    text-align: center;
}

.nav-links-equal .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 0.25rem !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--formisca-text) !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links-equal .nav-link:hover {
    color: var(--formisca-gold) !important;
}

@media (max-width: 991px) {
    .nav-links-equal {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
    }
    .nav-links-equal .nav-item {
        flex: none;
        text-align: left;
    }
    .nav-links-equal .nav-link {
        justify-content: flex-start;
        padding-left: 1rem !important;
    }
}

.navbar-actions .form-control {
    border-color: var(--formisca-border);
    border-radius: 4px;
}

.navbar-actions .form-control:focus {
    border-color: var(--formisca-gold);
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15);
}

/* Cart – only count */
.btn-formisca-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--formisca-border);
    border-radius: 8px;
    color: var(--formisca-navy);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-formisca-cart:hover {
    border-color: var(--formisca-gold);
    color: var(--formisca-gold);
    background: rgba(184, 134, 11, 0.06);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: var(--formisca-white);
    background: var(--formisca-gold);
    border-radius: 9px;
}

.cart-count:empty {
    display: none;
}

.btn-formisca-outline {
    border: 1px solid var(--formisca-charcoal);
    color: var(--formisca-navy);
    border-radius: 4px;
}

.btn-formisca-outline:hover {
    border-color: var(--formisca-gold);
    color: var(--formisca-gold);
    background: rgba(184, 134, 11, 0.06);
}

/* ========== Carousel – modern, all pages ========== */
.hero-section {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

@media (min-width: 576px) {
    .hero-section {
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
    }
}

.hero-section .carousel {
    border-radius: 12px;
    overflow: hidden;
}

.hero-section .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

.hero-section .carousel-item {
    position: relative;
    max-height: 420px;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .hero-section .carousel-item {
        max-height: 480px;
    }
}

/* Caption overlay */
.hero-section .carousel-caption {
    bottom: 24px;
    left: 16px;
    right: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    background: linear-gradient(to top, rgba(26, 35, 50, 0.85) 0%, rgba(26, 35, 50, 0.5) 60%, transparent 100%);
    border-radius: 10px;
}

.hero-section .carousel-caption h1,
.hero-section .carousel-caption h2 {
    color: var(--formisca-white) !important;
    text-shadow: none;
}

.hero-section .carousel-caption .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.hero-section .carousel-caption.text-dark .lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .carousel-caption .btn {
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    background: var(--formisca-gold);
    border-color: var(--formisca-gold);
}

.hero-section .carousel-caption .btn:hover {
    background: var(--formisca-gold-light);
    border-color: var(--formisca-gold-light);
}

/* Indicators – pill style, visible */
.hero-section .carousel-indicators {
    margin-bottom: 12px;
    gap: 8px;
}

.hero-section .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--formisca-white);
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: background 0.25s ease, transform 0.2s ease;
}

.hero-section .carousel-indicators [data-bs-target]:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-section .carousel-indicators .active {
    background: var(--formisca-white);
    transform: scale(1.2);
}

/* Arrows */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    margin: 0 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    opacity: 1;
    transition: background 0.2s, box-shadow 0.2s;
}

.hero-section .carousel-control-prev {
    left: 0;
}

.hero-section .carousel-control-next {
    right: 0;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: var(--formisca-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-color: var(--formisca-navy);
    border-radius: 50%;
}

/* ========== Buttons ========== */
.btn {
    border-radius: 6px;
    transition: all 0.25s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--formisca-navy);
    border-color: var(--formisca-navy);
}

.btn-dark:hover {
    background: var(--formisca-charcoal);
    border-color: var(--formisca-charcoal);
}

.btn-outline-dark {
    border-color: var(--formisca-charcoal);
    color: var(--formisca-navy);
}

.btn-outline-dark:hover {
    border-color: var(--formisca-gold);
    color: var(--formisca-gold);
    background: rgba(184, 134, 11, 0.06);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--formisca-text-muted);
}

.breadcrumb-item a:hover {
    color: var(--formisca-gold);
}

/* ========== Cards ========== */
.card {
    border-radius: 10px;
    border-color: var(--formisca-border);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
}

.card-title {
    color: var(--formisca-navy);
}

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

/* ========== Footer ========== */
.footer {
    font-size: 0.95rem;
    background: var(--formisca-navy) !important;
    color: rgba(255, 255, 255, 0.85);
}

.footer h5 {
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--formisca-white);
    font-size: 1.05rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--formisca-gold-light) !important;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ========== Forms ========== */
.form-control {
    border-radius: 6px;
    border-color: var(--formisca-border);
}

.form-control:focus {
    border-color: var(--formisca-gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

/* ========== Snipcart (cart icon in content) ========== */
.snipcart-checkout {
    cursor: pointer;
}

/* Cookie consent */
.cookie-consent {
    background: var(--formisca-charcoal) !important;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
}

.cookie-consent .btn {
    border-radius: 6px;
    min-width: 120px;
}

/* Contact page */
.contact-form-wrapper {
    border-radius: 10px;
    border: 1px solid var(--formisca-border);
}

.contact-info {
    border-left-color: var(--formisca-gold);
}

.additional-info {
    background: linear-gradient(135deg, var(--formisca-cream) 0%, var(--formisca-white) 100%);
    border-radius: 10px;
    border: 1px solid var(--formisca-border);
}

/* Badge */
.badge.bg-dark {
    background: var(--formisca-navy) !important;
}

.badge.bg-secondary {
    background: var(--formisca-charcoal) !important;
}
