:root {
    --primary-color: #333333;
    --accent-color: #8FB9C2;
    --bg-light: #F9F7F2;
    --text-main: #2D2D2D;
    --text-muted: #757575;
    --white: #ffffff;
    --border-color: #EAEAEA;
    --font-heading: 'Marcellus', sans-serif;
    --font-alt: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    /* Mirroring the light luxury look */
    letter-spacing: 1px;
    text-transform: capitalize;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Header & Navigation */
.miravel-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.header-main {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: lowercase;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-actions .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    position: relative;
}

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

/* Hero Section - Editorial Style */
.miravel-hero {
    background-color: var(--bg-light);
    height: 72vh !important;
    /* Editorial Gold Ratio */
    min-height: 680px !important;
    overflow: hidden;
    position: relative;
}

.mainHeroSwiper,
.swiper-wrapper,
.hero-slide {
    height: 100%;
}

.swiper-wrapper {
    padding-bottom: 0px !important;
}

.hero-slide {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.hero-content {
    padding: 0 40px;
    z-index: 10;
    text-align: left;
}

.hero-badge {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.2s;
}

.hero-title {
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.4s;
}

.hero-title span {
    color: var(--accent-color);
    font-style: italic;
    font-family: var(--font-alt);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 450px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.6s;
}

.hero-btn-wrap {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.8s;
}

.hero-image-wrap {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.2s ease 0.3s;
    padding-top: 50px;
}

.hero-image-wrap img {
    height: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    transform: translateY(60px);
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1) 0.3s;
}

/* Active Slide Animations */
.swiper-slide-active .hero-badge,
.swiper-slide-active .hero-title,
.swiper-slide-active .hero-desc,
.swiper-slide-active .hero-btn-wrap {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide-active .hero-image-wrap {
    opacity: 1;
}

.swiper-slide-active .hero-image-wrap img {
    transform: translateY(0);
}

/* Minimalist Linear Hero Navigation - Improved Clickability */
.hero-nav-next,
.hero-nav-prev {
    width: 80px !important;
    height: 50px !important;
    /* Large hit area for easy clicking */
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    top: 50% !important;
    margin-top: -25px !important;
    z-index: 100 !important;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* The actual visible line */
.hero-nav-next::after,
.hero-nav-prev::after {
    content: '' !important;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Hover Effect - Expanding line */
.hero-nav-next:hover,
.hero-nav-prev:hover {
    width: 120px !important;
}

.hero-nav-prev {
    left: 20px !important;
}

.hero-nav-next {
    right: 20px !important;
}

/* Minimalist arrow heads */
.hero-nav-prev::before,
.hero-nav-next::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
    margin-top: -5px;
    z-index: 2;
}

.hero-nav-prev::before {
    left: 0;
    transform: rotate(-45deg);
}

.hero-nav-next::before {
    right: 0;
    transform: rotate(135deg);
}

@media (max-width: 768px) {

    .hero-nav-next,
    .hero-nav-prev {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .miravel-hero {
        height: auto;
        padding: 80px 0;
    }

    .hero-flex {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        padding: 40px 20px 0;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .hero-image-wrap {
        height: 400px;
        width: 100%;
    }
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: var(--font-alt);
    font-size: 20px;
    font-style: italic;
    color: var(--text-muted);
}

/* Tabs */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--text-main);
    border-bottom-color: var(--accent-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

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

/* Product Item */
.product-item {
    position: relative;
    transition: var(--transition-base);
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-base);
}

.product-item:hover .product-wishlist {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    text-align: center;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.product-price {
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Category Highlight */
.highlight-row {
    display: flex;
    gap: 40px;
    align-items: center;
}

.highlight-large {
    flex: 1.2;
}

.highlight-content {
    flex: 1;
}

.highlight-image {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.highlight-image img {
    width: 100%;
    display: block;
}

/* Feature Bar */
.feature-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.feature-item h4 {
    margin-bottom: 10px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-item {
    background: var(--white);
}

.blog-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Footer */
.miravel-footer {
    background: var(--bg-light);
    padding: 80px 0 40px;
    color: var(--text-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

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

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #e0ddd7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.breadcrumb-nav a:hover {
    color: var(--accent-color);
}

.breadcrumb-nav .sep {
    font-size: 10px;
    opacity: 0.5;
}

/* Product Detail Page */
.miravel-product-detail {
    padding-top: 40px;
}

.product-info-sticky {
    position: sticky;
    top: 130px;
}

.product-category-label a {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-main);
}

.product-detail-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Variant Selector */
.variant-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.variant-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.variant-item {
    width: 60px;
    height: 80px;
    border: 1px solid var(--border-color);
    padding: 2px;
    transition: var(--transition-base);
}

.variant-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* Benefits Row */
.product-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.benefit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-main);
}

.benefit-row i {
    width: 20px;
    color: var(--accent-color);
}

/* Tabs */
.tabs-header {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid var(--border-color);
}

.tab-trigger {
    background: none;
    border: none;
    padding-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.tab-trigger.active {
    color: var(--text-main);
}

.tab-trigger.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Category Page */
.page-title {
    font-size: 56px;
    margin-bottom: 20px;
}

.category-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
}

.miravel-sidebar .widget-title {
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-category-list li {
    margin-bottom: 12px;
}

.sidebar-category-list li a {
    color: var(--text-muted);
    transition: var(--transition-base);
}

.sidebar-category-list li.active a,
.sidebar-category-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.miravel-select {
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.count-badge {
    color: var(--text-muted);
    font-size: 14px;
}

/* Pagination */
.pagination-wrap ul {
    display: flex;
    gap: 10px;
}

.pagination-wrap li a,
.pagination-wrap li span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.pagination-wrap li.active span {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}