/* =====================================================
   JustMuds - Modern UI Stylesheet
   Clay & Earthy Tones with Professional Design
   ===================================================== */

:root {
    --clay-primary: #8B6F47;
    --clay-dark: #6d5535;
    --clay-light: #a0826d;
    --clay-lighter: #d4b896;
    --earth-bg: #faf8f3;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success: #27ae60;
    --error: #e74c3c;
    --warning: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: white;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.8rem; }

.section-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--clay-primary), var(--clay-light));
    border-radius: 2px;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-clay {
    background: linear-gradient(135deg, var(--clay-primary) 0%, var(--clay-light) 100%);
    color: white;
}

.btn-clay:hover {
    background: linear-gradient(135deg, var(--clay-dark) 0%, var(--clay-primary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.btn-outline-clay {
    border: 2px solid var(--clay-primary);
    color: var(--clay-primary);
    background: transparent;
}

.btn-outline-clay:hover {
    background: var(--clay-primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-header {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.05) 0%, rgba(160, 130, 109, 0.05) 100%);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--clay-primary);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Navigation/Header */
.navbar {
    background: white;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clay-primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--clay-primary) !important;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--earth-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--clay-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex: 1;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--clay-primary);
    margin-bottom: 0.25rem;
}

.product-mrp {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 0.75rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.product-actions button {
    flex: 1;
    padding: 0.7rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--clay-primary) 0%, var(--clay-light) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Gallery/Lightbox */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin: 1rem 0;
}

.gallery-thumb {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.gallery-thumb:hover {
    border-color: var(--clay-primary);
    transform: scale(1.05);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}

/* Wishlist Heart Icon */
.wishlist-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #ccc;
}

.wishlist-btn.in-wishlist {
    color: #e74c3c;
    animation: heartBeat 0.3s;
}

.wishlist-btn:hover {
    color: #e74c3c;
    transform: scale(1.2);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Badge/Tags */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-success { background: #d4edda; color: var(--success); }
.badge-warning { background: #fff3cd; color: var(--warning); }
.badge-danger { background: #f8d7da; color: var(--error); }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--clay-primary);
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--clay-primary);
    color: white;
    border-color: var(--clay-primary);
}

.page-item.active .page-link {
    background: var(--clay-primary);
    border-color: var(--clay-primary);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

footer h5 {
    color: var(--clay-lighter);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--clay-lighter);
}

footer .footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #95a5a6;
}

/* Loading Spinner */
.spinner-animation {
    border: 3px solid rgba(139, 111, 71, 0.1);
    border-top: 3px solid var(--clay-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    .btn { padding: 0.6rem 1.2rem; }
    
    .product-card { margin-bottom: 1rem; }
    
    .navbar-brand { font-size: 1.2rem; }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--clay-primary);
    outline-offset: 2px;
}

/* Print */
@media print {
    .btn, .navbar, footer {
        display: none;
    }
}

/* =====================================================
   Professional clay ecommerce refresh
   ===================================================== */
:root {
    --clay-primary: #a75f3a;
    --clay-dark: #6f3f26;
    --clay-light: #c9875d;
    --clay-lighter: #ead3bb;
    --earth-bg: #fbf5ed;
    --paper: #fffdf9;
    --text-dark: #2d2119;
    --text-light: #78695d;
    --border-color: #eadcca;
}

body {
    background:
        linear-gradient(180deg, #fffaf3 0%, #fbf3e8 42%, #fffdf9 100%);
    color: var(--text-dark);
}

.top-bar {
    background: #7b4327;
    color: #fff2e4;
}

.jm-nav {
    background: rgba(255, 253, 249, .94);
    border-bottom: 1px solid #eadcca;
    box-shadow: 0 8px 26px rgba(101, 59, 34, .06);
}

.jm-logo,
.navbar-brand {
    color: #4b2b1a !important;
}

.nav-link {
    color: #3d2a1e !important;
    font-weight: 650;
}

.nav-link:hover,
.nav-link.active {
    color: #a75f3a !important;
}

.dropdown-toggle::after {
    display: none;
}

.jm-cat-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
}

.nav-dd-arrow {
    font-size: .76rem;
    color: #a75f3a;
    transition: transform .2s ease;
}

.jm-cat-toggle[aria-expanded="true"] .nav-dd-arrow {
    transform: rotate(180deg);
}

.jm-dropdown {
    background: #fffdf9;
    border: 1px solid #eadcca;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(95, 55, 29, .14);
}

.jm-dropdown .dropdown-item {
    color: #4a3324;
}

.jm-dropdown .dropdown-item:hover {
    background: #f7eadb;
    color: #7b4327;
}

.nav-icon {
    background: #fbf2e8;
    border: 1px solid #efe0cf;
    color: #5d3824;
}

.nav-icon:hover {
    background: #a75f3a;
    color: #fff;
}

.search-wrap input {
    background: #fbf2e8;
    border-color: #eadcca;
}

.btn-clay {
    background: linear-gradient(135deg, #b96d43 0%, #7b4327 100%);
    box-shadow: 0 12px 26px rgba(123, 67, 39, .22);
}

.btn-clay:hover {
    background: linear-gradient(135deg, #a75f3a 0%, #5d321e 100%);
}

.btn-outline-clay {
    border-color: #a75f3a;
    color: #7b4327;
    background: #fffdf9;
}

.btn-outline-clay:hover {
    background: #7b4327;
    color: #fff;
}

.mk-hero {
    min-height: 640px;
    color: #2d2119;
    border-radius: 0 0 28px 28px;
    background:
        radial-gradient(circle at 82% 22%, rgba(197, 132, 88, .24), transparent 30%),
        linear-gradient(135deg, #fff7ec 0%, #f4dec7 58%, #dfb58d 100%);
}

.mk-hero-bg {
    background:
        radial-gradient(circle at 84% 30%, rgba(167, 95, 58, .20), transparent 30%),
        radial-gradient(circle at 20% 18%, rgba(244, 222, 199, .9), transparent 32%);
}

.mk-hero-bg::after {
    opacity: .22;
    filter: none;
    background-image:
        radial-gradient(circle at 72% 54%, rgba(167, 95, 58, .28) 0 90px, transparent 92px),
        radial-gradient(circle at 88% 68%, rgba(219, 170, 126, .38) 0 66px, transparent 68px);
}

.eyebrow-light {
    color: #7b4327 !important;
}

.mk-hero .eyebrow {
    background: rgba(255, 253, 249, .78);
    border: 1px solid rgba(167, 95, 58, .22);
    color: #7b4327;
}

.mk-hero-title,
.mk-hero-title em {
    color: #4b2b1a;
}

.mk-hero-title em {
    color: #a75f3a;
}

.lead-light {
    color: #6f594b;
}

.btn-light-ghost {
    background: #fffdf9;
    border: 1px solid #d7b99b;
    color: #6f3f26;
}

.btn-light-ghost:hover {
    background: #7b4327;
    color: #fff;
}

.earth-hero-showcase {
    min-height: 470px;
    position: relative;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 253, 249, .78), rgba(247, 234, 219, .72)),
        radial-gradient(circle at 50% 48%, #e5b98f 0 24%, transparent 25%);
    border: 1px solid rgba(167, 95, 58, .18);
    box-shadow: 0 26px 70px rgba(95, 55, 29, .16);
    overflow: hidden;
}

.earth-hero-showcase::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #c9875d, #7b4327);
    clip-path: polygon(25% 20%, 75% 20%, 92% 74%, 78% 100%, 22% 100%, 8% 74%);
    opacity: .95;
}

.earth-hero-showcase::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 245px;
    width: 118px;
    height: 42px;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 13px solid #7b4327;
    background: #f5d8ba;
}

.earth-pot {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    text-align: center;
    background: rgba(255, 253, 249, .92);
    border: 1px solid #eadcca;
    box-shadow: 0 14px 34px rgba(95, 55, 29, .14);
    color: #6f3f26;
}

.earth-pot i {
    display: block;
    color: #a75f3a;
}

.earth-pot span {
    font-weight: 700;
    font-size: .82rem;
}

.earth-pot-lg {
    width: 148px;
    height: 148px;
    border-radius: 22px;
    left: 26px;
    bottom: 82px;
}

.earth-pot-lg i {
    font-size: 2.5rem;
}

.earth-pot-sm {
    width: 112px;
    height: 112px;
    border-radius: 20px;
    right: 24px;
}

.earth-pot-sm i {
    font-size: 2rem;
}

.earth-pot-sm.top {
    top: 42px;
}

.earth-pot-sm.bottom {
    bottom: 54px;
}

.earth-price-card {
    position: absolute;
    z-index: 3;
    left: 28px;
    right: 28px;
    top: 34px;
    background: #fffdf9;
    border: 1px solid #eadcca;
    border-radius: 16px;
    padding: .95rem 1rem;
    box-shadow: 0 14px 30px rgba(95, 55, 29, .12);
}

.earth-price-card strong,
.earth-price-card small {
    display: block;
}

.earth-price-card strong {
    color: #4b2b1a;
}

.earth-price-card small {
    color: #78695d;
}

.mk-marquee {
    background: #8d5030;
    color: #fff4e8;
}

.deal-card,
.product-card,
.panel,
.tm-card,
.category-feature {
    border-radius: 10px;
    background: #fffdf9;
    border-color: #eadcca;
    box-shadow: 0 10px 28px rgba(95, 55, 29, .08);
}

.deal-card:hover,
.product-card:hover,
.category-feature:hover {
    box-shadow: 0 20px 48px rgba(95, 55, 29, .14);
}

.deal-clay {
    background: linear-gradient(135deg, #c9875d, #9a5735);
}

.deal-dark {
    background: linear-gradient(135deg, #7b4327, #4b2b1a);
}

.deal-cream {
    background: #fff4e8;
}

.mk-cat {
    border-radius: 12px;
    min-height: 220px;
}

.mk-cat-bg,
.mk-cat:nth-child(2) .mk-cat-bg,
.mk-cat:nth-child(3) .mk-cat-bg,
.mk-cat:nth-child(4) .mk-cat-bg,
.mk-cat:nth-child(5) .mk-cat-bg,
.mk-cat:nth-child(6) .mk-cat-bg {
    background: linear-gradient(150deg, #c9875d, #7b4327);
}

.mk-story {
    background: #fff7ed;
    color: #2d2119;
    border: 1px solid #eadcca;
}

.section-title.light,
.mk-stepper h4 {
    color: #4b2b1a;
}

.section-title.light em,
.stp-n {
    color: #a75f3a;
}

.mk-stepper p {
    color: #6f594b;
}

.mk-stepper li {
    border-bottom-color: #eadcca;
}

.mk-story-img,
.about-art {
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 253, 249, .22), transparent 26%),
        linear-gradient(145deg, #d69a6c, #8d5030);
}

.mk-cta,
.mk-news,
.newsletter {
    background: linear-gradient(135deg, #b96d43, #7b4327);
    border-radius: 16px;
}

.jm-footer {
    background: #fffdf9;
}

.shop-hero {
    background:
        radial-gradient(circle at 90% 12%, rgba(201, 135, 93, .20), transparent 28%),
        linear-gradient(180deg, #fff4e8 0%, #fbf5ed 100%);
}

.shop-filters {
    position: sticky;
    top: 96px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: .8rem;
        padding: .9rem;
        background: #fffdf9;
        border: 1px solid #eadcca;
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(95, 55, 29, .10);
    }

    .navbar-nav {
        gap: .25rem;
    }

    .nav-link {
        padding: .65rem .8rem !important;
    }

    .jm-cat-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .earth-hero-showcase {
        min-height: 360px;
        margin-top: .5rem;
    }

    .shop-filters {
        position: static;
    }
}

@media (max-width: 575px) {
    .mk-hero {
        min-height: auto;
        padding: 3.4rem 0 3rem;
    }

    .mk-hero-title {
        font-size: 2.35rem;
    }

    .earth-hero-showcase {
        min-height: 310px;
    }

    .earth-pot-lg {
        width: 118px;
        height: 118px;
        left: 16px;
        bottom: 58px;
    }

    .earth-pot-sm {
        width: 92px;
        height: 92px;
        right: 16px;
    }

    .earth-pot span {
        font-size: .7rem;
    }

    .earth-price-card {
        left: 16px;
        right: 16px;
        top: 18px;
    }

    .mk-cat-grid {
        grid-template-columns: 1fr;
    }
}
