/* --- KHAL DESIGNS THEME --- */
:root {
    --primary-color: #2C1E16; /* Deep Espresso Leather */
    --accent-color: #B87333; /* Copper / Cognac Leather */
    --bg-light: #FAF8F5; /* Warm Alabaster */
    --text-dark: #1A1A1A;
    --text-muted: #6B615A;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --app-nav-height: 65px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--primary-color);
}

/* --- DESKTOP NAVIGATION --- */
.navbar {
    padding: 15px 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 30, 22, 0.1);
    transition: all 0.3s ease;
}

.navbar .logo{
    height: 45px; 
    width: auto; 
    object-fit: contain; 
    filter: invert();
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--primary-color) !important;
    margin: 0 15px;
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; 
    background: var(--accent-color); transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }



/* Cart Trigger */
.cart-trigger { position: relative; cursor: pointer; font-size: 1.3rem; color: var(--primary-color); }
.cart-count {
    position: absolute; top: -5px; right: -10px;
    background: var(--accent-color); color: white; font-size: 0.65rem;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-body); font-weight: 600;
}

/* --- MOBILE APP-LIKE BOTTOM NAV --- */
.app-bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: #ffffff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 1040;
    height: var(--app-nav-height);
    border-top: 1px solid #eaeaea;
    padding-bottom: env(safe-area-inset-bottom);
}

.app-nav-item {
    flex: 1; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none;
    transition: all 0.2s;
}

.app-nav-item i { font-size: 1.3rem; margin-bottom: 2px; }
.app-nav-item span { font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.app-nav-item.active { color: var(--accent-color); }
.app-nav-item:active { transform: scale(0.95); }

/* --- HERO SECTION --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--primary-color);
}

.hero-img-box {
    position: absolute; top: 0; right: 0;
    width: 55%; height: 100%;
    /* Hero background image */
    background: url('../images/bg-img.jpg') center/cover no-repeat;
}
.hero-img-box::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, var(--primary-color) 0%, rgba(44,30,22,0.1) 100%);
}

.hero-content {
    position: relative; z-index: 2;
    color: white;
    padding-top: 100px; padding-bottom: 100px;
}

.hero-subtitle { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 4px; font-size: 0.85rem; color: var(--accent-color); margin-bottom: 20px; display: block; }
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 30px; color: white; }

.btn-custom {
    background: var(--accent-color); color: white;
    padding: 15px 35px; border: none; border-radius: 0;
    font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem;
    transition: all 0.3s; text-decoration: none; display: inline-block;
}
.btn-custom:hover { background: white; color: var(--primary-color); }
.btn-outline-custom { border: 1px solid var(--primary-color); color: var(--primary-color); padding: 12px 28px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; border-radius: 0; background: transparent; transition: all 0.3s ease; }
.btn-outline-custom:hover { background-color: var(--primary-color); color: white; }

/* --- CRAFTSMANSHIP BANNER --- */
.craft-banner { background: #fff; padding: 60px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.craft-icon { font-size: 2rem; color: var(--accent-color); margin-bottom: 15px; }

/* --- FEATURED COLLECTIONS (NEW UI/UX) --- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title span { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; color: var(--text-muted); }
.section-title h2 { font-size: 2.5rem; margin-top: 10px; }

.editorial-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.editorial-card:hover {
    box-shadow: 0 20px 40px rgba(44, 30, 22, 0.08);
    transform: translateY(-5px);
    border-color: rgba(184, 115, 51, 0.3); /* Accent color border on hover */
}

.editorial-img-box {
    position: relative;
    aspect-ratio: 4/5;
    background-color: #EBEBEB; /* Placeholder background color */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editorial-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.editorial-card:hover .editorial-img-box img {
    transform: scale(1.05);
}

/* Floating tag inside the image box */
.editorial-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    padding: 5px 12px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    z-index: 2;
}

.editorial-details {
    padding: 20px;
    text-align: center;
    background: #fff;
    position: relative;
}

.editorial-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.editorial-card:hover .editorial-title {
    color: var(--accent-color);
}

.editorial-price {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- NEW: GALLERY SHOOTS SECTION --- */
.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    background-color: #EBEBEB;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(44, 30, 22, 0.5); /* Primary color overlay */
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- APPRENTICESHIP TEASER --- */
.apprentice-section {
    background: var(--primary-color); color: white; padding: 100px 0;
    text-align: center; position: relative; overflow: hidden;
}
.apprentice-bg {
    position: absolute; inset: 0; opacity: 0.3;
    background: url('../images/apprenticeship-img.jpg') center/cover;
}

/* --- CART OFFCANVAS --- */
.offcanvas { width: 400px; max-width: 100%; border-left: none; }
.offcanvas-header { border-bottom: 1px solid #f0f0f0; }
.cart-item { display: flex; align-items: center; border-bottom: 1px solid #eee; padding: 15px 0; }
.cart-item-img { width: 60px; height: 60px; object-fit: cover; background: #E8E6E1; margin-right: 15px; position: relative; z-index: 1; }

/* --- ABOUT PAGE --- */

/* --- IMAGE PLACEHOLDERS --- */
.img-placeholder-box {
    background-color: #EBEBEB;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.placeholder-text {
    font-family: var(--font-body);
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

/* --- FEATURED STORY --- */
.story-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
}
.story-item { 
    position: relative; 
    aspect-ratio: 7/10; 
    overflow: hidden; 
    background: #EBEBEB;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2; /* Sits above the placeholder text when added */
}

/* --- APPRENTICESHIP PAGE --- */

/* --- BUTTONS --- */
.btn-custom-appr {
    background: var(--accent-color); color: white;
    padding: 12px 25px; border: none; border-radius: 0;
    font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem;
    transition: all 0.3s; text-decoration: none; display: inline-block; width: 100%; text-align: center;
}
.btn-custom-appr:hover { background: var(--primary-color); color: white; }

/* --- SEC 1: HERO --- */
.about-hero,
.shop-hero,
.apprentice-hero {
    padding: 120px 0 65px;
    text-align: center;
    background: linear-gradient(rgba(250, 248, 245, 0.5), rgba(250, 248, 245, 1.0)), url('../images/apprenticeship-hero.jpg') center/cover;
    /*border-bottom: 1px solid rgba(0,0,0,0.05);*/
}

/* --- SEC 3: PRICING CARDS (Lumina Pro Style) --- */
.pricing-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 40px 30px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.pricing-card.popular {
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(184, 115, 51, 0.15);
    transform: scale(1.02);
    z-index: 2;
}
.pricing-card.popular:hover { transform: scale(1.02) translateY(-5px); }

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.price-breakdown { margin: 30px 0; border-top: 1px dashed #ddd; padding-top: 20px; }
.breakdown-item {
    display: flex; justify-content: space-between;
    font-size: 0.9rem; margin-bottom: 12px; color: var(--text-muted);
}
.breakdown-total {
    display: flex; justify-content: space-between;
    font-size: 1.2rem; font-weight: 700; color: var(--primary-color);
    margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee;
}
.includes-text {
    font-size: 0.8rem; color: #888; font-style: italic;
    margin-bottom: 30px; line-height: 1.6; flex-grow: 1;
}

/* --- SEC 4: INFO & ACCOMMODATION --- */
.info-section {
    background: #fff;
    padding: 80px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    position: relative; padding-left: 35px; margin-bottom: 18px;
    font-size: 1.05rem; color: var(--text-muted); line-height: 1.5;
}
.feature-list li i {
    position: absolute; left: 0; top: 2px;
    color: var(--accent-color); /* Brown color requested */
    font-size: 1.2rem;
}
.info-box {
    background: var(--bg-light);
    padding: 40px;
    border-left: 4px solid var(--accent-color);
}

/* --- SEC 5: CTA --- */
.final-cta {
    background: var(--primary-color);
    color: white; padding: 80px 0; text-align: center;
}

/* --- SHOP PAGE --- */

/* --- SHOP HEADER & FILTER --- */
.shop-header { padding: 40px 0 20px; text-align: center; }
.shop-header h1 { font-size: 2.8rem; margin-bottom: 10px; }

.search-bar-wrap { max-width: 500px; margin: 0 auto 30px; padding: 0 15px; }
.search-form { display: flex; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border-radius: 50px; background: white; overflow: hidden; border: 1px solid #eaeaea; }
.search-input { border: none; padding: 12px 20px; font-size: 0.95rem; width: 100%; outline: none; box-shadow: none !important; background: transparent; }
.search-btn { background: transparent; color: var(--primary-color); border: none; padding: 0 20px; font-size: 1.1rem; transition: color 0.3s; }
.search-btn:hover { color: var(--accent-color); }

.filter-container {
    display: flex; overflow-x: auto; gap: 15px; padding: 10px 0 20px; margin-bottom: 40px;
    scrollbar-width: none; 
}
.filter-container::-webkit-scrollbar { display: none; } 

/* Converted to a form submittal for URL security */
.filter-form { display: inline-block; margin: 0; }
.filter-btn {
    white-space: nowrap; padding: 8px 20px; border: 1px solid #ddd; background: transparent;
    color: var(--text-dark); text-decoration: none; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 50px; transition: all 0.3s ease;
}
.filter-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: white; }

/* --- PRODUCT GRID --- */
.product-card { border: none; background: transparent; transition: transform 0.3s ease; }
.product-card:hover { transform: translateY(-5px); }

.product-img-wrap { 
    position: relative; overflow: hidden; background-color: #E8E6E1; 
    padding-top: 100%; margin-bottom: 15px; 
    display: flex; align-items: center; justify-content: center;
}
.product-img-wrap::before {
    content: "KHAL"; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); color: rgba(44, 30, 22, 0.1);
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
}
.product-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.5s ease; }
.product-card:hover .product-img { transform: scale(1.05); }

.product-title { font-size: 1.2rem; margin-bottom: 5px; color: var(--primary-color); }
.product-price { font-family: var(--font-body); font-weight: 600; color: var(--accent-color); font-size: 1.1rem; }

/* Modal tweaks */
.modal-content { background-color: var(--bg-light); border-radius: 0; border: none; }
.modal-header { border-bottom: 1px solid #eee; }
.form-select, .form-control { border-radius: 0; padding: 12px; border: 1px solid #ddd; }
.form-select:focus, .form-control:focus { border-color: var(--accent-color); box-shadow: none; }

/* --- FOOTER BASE STYLES --- */
footer { background: #1A120D; color: #FFF; padding: 80px 0 40px; }
.footer-brand { font-family: var(--font-display); font-size: 2rem; color: #FFF; margin-bottom: 20px; display: block; }
.small { color: #999; font-size: 0.85rem; line-height: 1.6; }

/* Desktop Links */
.footer-link { color: #999; text-decoration: none; display: block; margin-bottom: 12px; font-size: 0.9rem; transition: color 0.3s; }
.social-link { color: #999; text-decoration: none; display: inline-block; margin: 0 10px 10px 0; transition: color 0.3s; }
.footer-link:hover, .social-link:hover { color: #fff; }

/* --- MOBILE APP-LIKE UI STYLES --- */
.social-app-btn {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(255,255,255,0.05); color: #fff;
    font-size: 1.2rem; transition: all 0.2s; text-decoration: none;
}
.social-app-btn:active { 
    transform: scale(0.9); 
    background: rgba(255,255,255,0.15); 
    color: var(--accent-color); 
}

.app-footer-pill {
    display: inline-block; padding: 10px 20px; border-radius: 25px;
    background: rgba(255,255,255,0.05); color: #ddd; text-decoration: none;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px;
    border: 1px solid rgba(255,255,255,0.05); transition: all 0.2s;
}
.app-footer-pill:active { 
    background: #fff; color: #1A120D; 
    border-color: #fff; transform: scale(0.95); 
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {
    .hero-img-box { width: 100%; opacity: 0.6; }
    .hero-img-box::after { background: linear-gradient(to top, var(--primary-color) 0%, rgba(44,30,22,0.1) 100%); }
    .hero-title { font-size: 3rem; }
    
    .desktop-nav-links { display: none !important; }
    .app-bottom-nav { display: flex; }
    body { padding-bottom: var(--app-nav-height); }
    .navbar { padding: 10px 0; }
    footer { padding: 50px 0 90px; } /* Added 90px bottom padding to clear mobile nav */
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .story-grid { grid-template-columns: 1fr; } /* Stacks the 16:9 images on mobile */
}