/* ==================================
   Tara Mantra – E-Shop Header Theme
   ================================== */

/* ---------- Design Tokens ---------- */
:root {
    --am-accent: var(--primary-color, #E07A5F);
    /* Coral/salmon from reference, but linked to theme */
    --am-accent-hover: #D16B50;
    /* Darker coral for hover - simplified */
    --am-accent-light: #FFEEE9;
    /* Very light coral for backgrounds */

    --am-bg: #F8F8F8;
    /* Slightly warmer off-white */
    --am-surface: #ffffff;

    --am-text-main: #1A1A1A;
    /* Slightly softer black */
    --am-text-muted: #6b7280;
    --am-border: #E8E8E8;
    /* Softer border */

    --am-radius-sm: 8px;
    --am-radius-md: 16px;
    --am-radius-lg: 20px;
    /* For cards */

    --am-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
    --am-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ---------- Base ---------- */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--am-bg);
    color: var(--am-text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
}

/* ==================================
   HEADER (EXACT STRUCTURE)
   ================================== */

.am-header {
    background: #ffffff;
    border-bottom: 1px solid var(--am-border);
}

/* ---------- TOP UTILITY BAR ---------- */
.am-header-top {
    font-size: 12px;
    /* Smaller font */
    line-height: 1;
    /* Tighter line height */
    color: var(--am-text-muted);
    border-bottom: 1px solid var(--am-border);
}

.am-header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
    /* Minimal padding */
}

.am-header-top-left,
.am-header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.am-header-top a {
    color: var(--am-text-muted);
}

.am-header-top a:hover {
    color: var(--am-accent);
}

/* ---------- MAIN HEADER ROW ---------- */
.am-header-main {
    padding: 10px 0;
}

.am-header-main .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

/* Logo */
.am-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--am-text-main);
}

/* ---------- SEARCH ---------- */

.am-search {
    position: relative;
    max-width: 420px;
    width: 100%;
}

.am-search input {
    width: 100%;
    height: 40px;
    /* Increased slightly for better look */
    padding: 0 40px 0 16px;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-sm);
    font-size: 13px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.am-search input:focus {
    border-color: var(--am-accent);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--am-text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
}

.search-btn:hover {
    color: var(--am-accent);
}

/* ---------- HEADER ACTIONS ---------- */
.am-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
}

.am-header-actions a {
    color: var(--am-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.am-header-actions a:hover {
    color: var(--am-accent);
}

.am-cart-amount {
    font-weight: 600;
}

/* ==================================
   ORANGE NAV BAR
   ================================== */

.am-nav {
    background-color: var(--am-accent);
}

.am-nav .container {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 10px 0;
}

.am-nav a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.am-nav a:hover {
    text-decoration: underline;
}

.am-nav .am-sale {
    margin-left: auto;
    font-weight: 700;
}

/* ==================================
   HERO SECTION
   ================================== */
.am-hero-section {
    padding: 40px 0;
    overflow: hidden;
}

.am-hero-static img {
    height: 600px !important;
    padding-bottom: 30px;
    /* Force fixed height */
    object-fit: cover !important;
    width: 100% !important;
}

.am-hero-slider {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    /* subtle shadow */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.am-hero-content {
    padding: 60px;
    z-index: 2;
    position: relative;
}

.am-hero-tag {
    color: var(--am-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    margin-bottom: 20px;
    display: block;
}

.am-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--am-text-main);
}

.am-hero-desc {
    font-size: 16px;
    color: var(--am-text-muted);
    margin-bottom: 30px;
    max-width: 400px;
}

.am-hero-img-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-hero-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==================================
   FEATURES / TRUST MODULE
   ================================== */
.am-features {
    padding: 0px 0;
    /* To adjust the position (spacing) of the entire module: */
    margin-top: -30px;
    margin-bottom: -30px;
    z-index: 10;
    /* Ensure it floats above content if overlapping */
    position: relative;
}

.am-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.am-feature-item:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: var(--am-shadow-sm);
}

.am-feature-icon {
    font-size: 24px;
    color: var(--am-accent);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 74, 0.1);
    border-radius: 50%;
}

.am-feature-text h6 {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
}

.am-feature-text p {
    margin: 0;
    font-size: 12px;
    color: var(--am-text-muted);
}

/* ==================================
   PRODUCT CARDS & GRIDS
   ================================== */
.am-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.am-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.am-product-card {
    background: #ffffff;
    border-radius: var(--am-radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.am-product-card:hover {
    box-shadow: var(--am-shadow-md);
    border-color: var(--am-accent);
    transform: translateY(-4px);
}

.am-product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.am-product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.am-product-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.am-product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--am-text-main);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-product-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--am-accent);
}

.am-product-actions {
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.am-product-card:hover .am-product-actions {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================
   ONE STOP BANNER
   ================================== */
.am-one-stop {
    background: #fdfdfd;
    border-radius: 20px;
    text-align: center;
    padding: 60px 20px;
}

.am-one-stop h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.am-one-stop p {
    color: var(--am-text-muted);
    margin-bottom: 30px;
}

.am-content-image {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
}

/* ==================================
   CONSULTATION BANNER
   ================================== */
.am-consultation-banner {
    background: linear-gradient(135deg, #FF9966 0%, #FF5E62 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.am-consultation-banner h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.am-consultation-banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.am-btn-consult {
    background: white;
    color: #FF5E62;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.2s;
}

.am-btn-consult:hover {
    transform: scale(1.05);
    background: #fff;
    color: #FF5E62;
}

/* ==================================
   GRID VARIATIONS
   ================================== */

/* Minimal Card (Popular Items) */
/* Minimal Card (Popular Items) - Updated to match Standard */
.am-card-minimal {
    background: #ffffff;
    border-radius: var(--am-radius-lg);
    padding: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.am-card-minimal:hover {
    box-shadow: var(--am-shadow-md);
    border-color: var(--am-accent);
    transform: translateY(-4px);
}

.am-card-minimal .am-product-img {
    height: 220px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.am-card-minimal:hover .am-product-img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Soft/Tall Card (Bracelets) */
/* Soft/Tall Card (Bracelets) - Updated to match Standard */
.am-card-soft {
    text-align: left;
    background: #ffffff;
    border-radius: var(--am-radius-lg);
    padding: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.am-card-soft:hover {
    box-shadow: var(--am-shadow-md);
    border-color: var(--am-accent);
    transform: translateY(-4px);
}

.am-card-soft .am-product-img {
    border-radius: 12px;
    width: 100%;
    height: 280px;
    /* Taller for bracelets */
    margin-bottom: 15px;
    overflow: hidden;
    background: #f8f8f8;
}

.am-card-soft .am-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-card-soft .am-product-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

/* Premium/Traditional Card (Rudraksha) */
.am-card-premium {
    border: 1px solid #FFE0D6;
    /* Light accent border */
    background: #FFF9F7;
    /* Very light accent bg */
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.am-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--am-accent);
    /* Standard Theme Color */
}

.am-card-premium:hover {
    border-color: var(--am-accent);
    box-shadow: 0 5px 20px rgba(224, 122, 95, 0.2);
}

.am-card-premium .am-product-title {
    font-family: 'Inter', sans-serif;
    /* Back to standard font */
    color: var(--am-text-main);
    font-size: 16px;
    font-weight: 700;
}

.am-card-premium .am-product-price {
    color: var(--am-accent);
}

.am-card-premium .am-btn {
    background: var(--am-accent);
    color: white;
}

.am-card-premium .am-btn:hover {
    background: var(--am-accent-hover);
}

/* ==================================
   FEATURE SPLIT SECTION
   ================================== */
.am-feature-overlap-card {
    background: #ffffff;
    border-radius: 12px;
    position: relative;
    z-index: 5;
}

@media (min-width: 768px) {
    .am-feature-overlap-card {
        margin-left: -50px;
        /* Create overlap on desktop default */
    }

    .am-feature-overlap-card.me-md-n5 {
        margin-left: 0;
        margin-right: -50px;
    }

    .am-feature-overlap-card.ms-md-n5 {
        margin-left: -50px;
        margin-right: 0;
    }
}

.am-feature-title-serif {
    font-family: 'Georgia', serif;
    font-size: 28px;
    color: var(--am-text-main);
    margin-bottom: 15px;
}

/* ==================================
   REVIEWS SECTION
   ================================== */
.am-review-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s;
}

.am-review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--am-shadow-md);
    border-color: #ffe0d6;
}

.am-review-user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    /* Fix for alignment */
}

.am-review-stars {
    color: #FFD700;
    /* Gold */
    font-size: 14px;
    margin-bottom: 10px;
}

.am-review-text {
    font-size: 14px;

    line-height: 1.6;
}

/* ==================================
   MEGA MENU STYLES
   ================================== */
/* Ensure full width relative to the screen/header-bottom */
.am-header-bottom {
    position: relative;
}

.am-header-bottom .container,
.am-header-bottom .navbar {
    position: static !important;
}

.mega-menu-parent {
    position: static !important;
}

.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Show on Hover */
.mega-menu-parent:hover .mega-menu-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.hover-bg-light {
    transition: background-color 0.2s;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
}

.hover-bg-light:hover .rounded-circle {
    transform: scale(1.05);
    transition: transform 0.2s;
    border: 2px solid var(--am-accent);
    background-color: #FFF9F7 !important;
    /* Premium light accent */
    color: var(--am-accent) !important;
}

.hover-bg-light .rounded-circle {
    background-color: #f8f9fa;
    color: var(--am-text-muted);
    transition: all 0.3s ease;
}

/* Custom Dropdown Item Style */
.am-dropdown-item-custom {
    font-size: 13px !important;
    font-weight: 500;
    color: var(--am-text-main);
    border-radius: 6px;
    margin-bottom: 2px;
}

.am-dropdown-item-custom:hover,
.am-dropdown-item-custom:focus {
    background-color: var(--am-bg);
    color: var(--am-accent);
}

/* ==================================
   CORAL THEME ENHANCED STYLES
   ================================== */

/* Coral Add to Cart Button */
.am-btn-coral {
    background-color: var(--am-accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.am-btn-coral:hover {
    background-color: var(--am-accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

/* Coral Badge Pill */
.am-badge-coral {
    background-color: var(--am-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* View All Pill Button */
.btn-pill-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    background-color: #ffffff;
    border: 1px solid var(--am-border);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--am-text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.btn-pill-view:hover {
    color: var(--am-accent);
    border-color: var(--am-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Light Coral Background Card */
.am-card-highlight {
    background: var(--am-accent-light);
    border: 2px solid var(--am-accent);
    border-radius: var(--am-radius-lg);
}

/* Shop page card styling */
.group-hover-card {
    border-radius: var(--am-radius-lg) !important;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.group-hover-card:hover {
    border-color: var(--am-accent) !important;
    box-shadow: var(--am-shadow-md) !important;
}

/* View All Pill Button */
.btn-pill-view {
    background-color: #ffffff;
    color: var(--am-text-main);
    border: 1px solid var(--am-border);
    border-radius: 50px;
    padding: 6px 20px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.btn-pill-view:hover {
    background-color: #f8f9fa;
    border-color: var(--am-accent);
    color: var(--am-text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}