:root {
    --primary-color: #3d3935;
    --primary-hover: #22201d;
    --bg-color: #fffdf0;
    --bg-accent: #f7f3e4;
    --text-dark: #3d3935;
    --text-muted: #7a746c;
    --text-muted-light: #aaA39a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fffdf0;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fffdf0;
}

/* Navbar */
.logo-text-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}
.logo-text-sub {
    font-size: 0.55rem;
    letter-spacing: 5px;
    color: var(--text-muted);
}
.font-sm {
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 700;
}
.navbar-nav .nav-link {
    color: var(--text-dark);
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('../images/hero_bg.png') no-repeat center center/cover;
    overflow: hidden;
}
.hero-section.has-video {
    background: var(--bg-color); /* Fallback */
}
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, rgba(250, 248, 245, 0.95) 0%, rgba(250, 248, 245, 0.7) 45%, rgba(250, 248, 245, 0) 100%),
        linear-gradient(to bottom, rgba(250, 248, 245, 0.8) 0%, rgba(250, 248, 245, 0) 20%);
    z-index: 1;
}
.hero-section > .container {
    z-index: 2;
}
.hero-content {
    max-width: 550px;
}
.hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}
.hero-text {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 450px;
}
.hero-dots {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    cursor: pointer;
}
.hero-dot.active {
    background-color: white;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

/* Sections Common */
.section-padding {
    padding: 90px 0;
}
.section-subtitle {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
}
.section-title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3.5rem;
}
.section-title-divider::before, .section-title-divider::after {
    content: "";
    height: 1px;
    width: 40px;
    background-color: #dcdcdc;
}
.section-title-divider i {
    color: var(--primary-color);
    font-size: 0.6rem;
    margin: 0 15px;
    transform: rotate(45deg);
}

/* Categories */
.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-card:hover img {
    transform: scale(1.05);
}
.category-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 30px;
    color: white;
}
.category-icon {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.category-title {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0px;
}
.category-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* Sizes */
.bg-white-section {
    background-color: #ffffff;
}
.size-item {
    text-align: center;
    margin-bottom: 20px;
}
.size-img-container {
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 250px;
}
.size-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}
.size-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--text-dark);
}
.size-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* About Us */
.about-img {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}
.feature-item {
    text-align: center;
    padding: 15px 5px;
}
.feature-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Featured Albums */
.featured-album-card {
    margin-bottom: 20px;
}
.featured-album-img {
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.featured-album-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}
.featured-album-card:hover .featured-album-img img {
    transform: scale(1.05);
}
.featured-album-title {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* How It Works */
.step-item {
    text-align: center;
    position: relative;
    padding: 0 20px;
}
.step-icon-wrap {
    width: 65px;
    height: 65px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary-color);
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}
.step-number {
    font-size: 0.75rem;
    color: var(--text-muted-light);
    margin-bottom: 5px;
    font-weight: 700;
}
.step-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.step-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.step-connector {
    position: absolute;
    top: 32px;
    right: -25%;
    width: 50%;
    border-top: 1px dashed #d5d5d5;
    z-index: 1;
}

/* Testimonials */
.testimonial-section {
    background-color: #ffffff;
    padding: 90px 0;
}
.testimonial-box {
    border: 1px solid #eeeeee;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}
.quote-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}
.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.8;
}
.testimonial-stars {
    color: #e3b755;
    margin-bottom: 20px;
    font-size: 0.85rem;
    letter-spacing: 2px;
}
.testimonial-author {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}
.testimonial-side-img {
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.4;
    transform: scale(0.9);
}
.testimonial-side-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}
.testimonial-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    transform: translateY(-50%);
    z-index: 10;
}
.testimonial-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.testimonial-nav-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Blog */
.blog-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}
.blog-img {
    height: 220px;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}
.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
}
.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 2.8;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.subscribe-form .form-control {
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    font-size: 0.8rem;
}
.subscribe-form .btn {
    border-radius: 2px;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
}
.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.3s;
}
.bottom-nav-link i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}
.bottom-nav-link.active, .bottom-nav-link:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    body {
        padding-bottom: 60px;
    }
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .step-connector {
        display: none;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .step-item {
        margin-bottom: 30px;
    }
}
@media (max-width: 768px) {
    .testimonial-side-img {
        display: none;
    }
    .testimonial-nav {
        left: 10px;
        right: 10px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Luxury Redesigned Pulsing Preloader with pre.jpeg
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fffdf0 radial-gradient(circle at 50% 50%, rgba(247, 243, 228, 0.95) 0%, rgba(255, 253, 240, 0.98) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.preloader-pulse-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(61, 57, 53, 0.25);
    animation: preloader-ring-pulse 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.ring-1 {
    width: 180px;
    height: 180px;
    animation-delay: 0s;
}

.ring-2 {
    width: 150px;
    height: 150px;
    animation-delay: 0.6s;
}

.preloader-img-box {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3d3935;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(61, 57, 53, 0.18);
    animation: preloader-logo-pulse 1.8s ease-in-out infinite alternate;
}

.preloader-pulse-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.preloader-sub-tag {
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #3d3935;
    text-transform: uppercase;
}

.preloader-progress-box {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-status {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #7a746c;
    text-transform: uppercase;
}

.preloader-percent-text {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 0.9rem;
    font-weight: 700;
    color: #3d3935;
}

.preloader-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(61, 57, 53, 0.12);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-fill {
    width: 0%;
    height: 100%;
    background: #3d3935;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(61, 57, 53, 0.4);
    transition: width 0.25s ease-out;
}

@keyframes preloader-logo-pulse {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(61, 57, 53, 0.3), 0 8px 25px rgba(61, 57, 53, 0.12);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 18px rgba(61, 57, 53, 0), 0 16px 35px rgba(61, 57, 53, 0.22);
    }
    100% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(61, 57, 53, 0), 0 8px 25px rgba(61, 57, 53, 0.12);
    }
}

@keyframes preloader-ring-pulse {
    0% {
        transform: scale(0.7);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* ==========================================
   Factor Retouch & Shop Custom Styles
   ========================================== */

/* Before / After Comparison Slider */
.ba-slider-container {
    user-select: none;
    cursor: ew-resize;
    background-color: #1a1a1a;
}
.ba-overlay-wrap {
    z-index: 2;
}
.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 50px;
    z-index: 4;
}
.ba-label-before {
    left: 20px;
    background: rgba(220, 53, 69, 0.85);
    color: white;
}
.ba-label-after {
    right: 20px;
    background: rgba(40, 167, 69, 0.85);
    color: white;
}
.ba-handle {
    width: 4px;
    margin-left: -2px;
    background-color: white;
    z-index: 5;
    pointer-events: none;
}
.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #bea183);
    font-size: 1.1rem;
    border: 2px solid var(--primary-color, #bea183);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Retouch Card Hover Effect */
.retouch-card-img {
    transition: transform 0.5s ease;
}
.retouch-card:hover .retouch-card-img {
    transform: scale(1.06);
}
.retouch-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.retouch-card:hover .retouch-card-overlay {
    opacity: 1;
}

/* Product Card Styling */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

/* Offcanvas Cart */
#cartOffcanvas {
    z-index: 1060;
}
.cart-count-badge {
    animation: badge-pulse 0.3s ease-out;
}
@keyframes badge-pulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Digital Resource Category Strip */
.bg-cream-strip {
    background-color: #f7f2e7;
    border-top: 1px solid rgba(61, 57, 53, 0.08);
    border-bottom: 1px solid rgba(61, 57, 53, 0.08);
}
.resource-badge-card {
    background: linear-gradient(135deg, #fbf7ee 0%, #f4ede0 100%);
    border: 1px solid rgba(190, 161, 131, 0.35);
    border-radius: 12px;
    padding: 14px 18px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(61, 57, 53, 0.04);
}
.resource-badge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(61, 57, 53, 0.12);
    border-color: #3d3935;
    background: #ffffff;
}
.resource-badge-icon {
    font-size: 1.4rem;
    color: #b08d68;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.resource-badge-icon.font-lr,
.resource-badge-icon.font-ps {
    border: 1.5px solid #b08d68;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: var(--font-body);
    line-height: 1;
    width: 32px;
    height: 32px;
}
.resource-badge-icon.font-aa {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: #b08d68;
}
.resource-badge-divider {
    width: 1px;
    height: 26px;
    background-color: rgba(176, 141, 104, 0.35);
}
.resource-badge-text {
    display: flex;
    flex-direction: column;
}
.resource-badge-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #3d3935;
    line-height: 1.2;
}
.resource-badge-sub {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #7a746c;
    line-height: 1.2;
}

