/* ============================================
   SA Coffee - Speciality Coffee South Africa
   Colors: #FB4F14, #E9631A, #e8d8c9, #4b607f
   Fonts: Cuanky + Montserrat
   ============================================ */

:root {
    --primary: #FB4F14;
    --primary-dark: #E9631A;
    --cream: #e8d8c9;
    --charcoal: #e0ddd8;
    --white: #ffffff;
    --off-white: #1c2d3e;
    --black: #111b26;
    --light-grey: #4b607f;
    --overlay: rgba(28, 45, 62, 0.82);
    --card-bg: #253347;
    --surface: #2f4156;

    --font-display: 'Barlow Condensed', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--off-white);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: italic;
    color: var(--off-white);
    line-height: 1.3;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    margin-bottom: 12px;
}
.section-header p {
    color: var(--off-white);
    opacity: 0.6;
    max-width: 550px;
    margin: 0 auto;
    font-size: 1rem;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}
.btn-white {
    background: var(--white);
    color: var(--primary-dark);
}
.btn-white:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(28, 45, 62, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(251, 79, 20, 0.2);
    padding: 16px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}
.page-index .navbar:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}
.logo-text { color: var(--cream); }
.logo-accent { color: var(--primary); }

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-menu a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    position: relative;
    padding: 4px 0;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}
.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-shop-btn {
    display: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cream);
}
.nav-shop-btn.active,
.nav-shop-btn:hover { color: var(--primary); }
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--cream);
    line-height: 0;
}
.page-index .navbar:not(.scrolled) .nav-toggle,
.page-index .navbar:not(.scrolled) .nav-shop-btn {
    color: #1c2d3e;
}
.nav-toggle svg {
    transition: transform 0.3s ease;
}
.nav-toggle.active svg {
    transform: rotate(90deg);
}
/* Bean crease line — contrasts with the bean fill in each context */
.nav-toggle .bean-crease { stroke: #1c2d3e; } /* cream bean on dark navbar → navy crease */
.page-index .navbar:not(.scrolled) .nav-toggle .bean-crease { stroke: var(--cream); } /* navy bean on transparent navbar → cream crease */

/* ---- Hero Section ---- */
.hero {
    position: relative;
    height: calc(100vh + 2cm);
    margin-top: 0;
    overflow: hidden;
    background: var(--cream);
}
.hero-bg-img {
    position: absolute;
    top: calc(110px - 1.3cm);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 110px - 0.7cm);
    object-fit: contain;
    object-position: center top;
}
.hero-content {
    position: absolute;
    z-index: 1;
    top: calc(25% + 2cm);
    left: calc(25% + 4cm);
    transform: translate(-50%, -50%);
    width: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1c2d3e;
    padding: 0 24px;
}
.hero-content h1 {
    color: #1c2d3e;
    font-size: 3.2rem;
    margin-bottom: 16px;
    line-height: 1.15;
    white-space: nowrap;
}
.hero-content p {
    color: #253347;
    font-size: 1.3rem;
    opacity: 1;
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.8;
}

.hero-cta {
    position: absolute;
    bottom: calc(56px + 0.8cm);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    white-space: nowrap;
}

/* ---- Hero buttons explicit override ---- */
.hero .btn-primary {
    background: #FB4F14 !important;
    color: #ffffff !important;
}
.hero .btn-primary:hover {
    background: #E9631A !important;
}

/* ---- Section Spacing ---- */
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--card-bg);
}
.section-dark {
    background: var(--primary-dark);
    color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--white);
}
.section-navy {
    background: #1c2d3e;
    color: var(--cream);
}
.section-navy h2, .section-navy h3, .section-navy h4 {
    color: var(--cream);
}
.section-navy p {
    color: #c8bdb4;
}
.section-navy .btn-primary {
    background: var(--primary);
    color: var(--white);
}
.section-alt h2, .section-alt h3, .section-alt h4 {
    color: var(--cream);
}
.card h2, .card h3, .card h4 {
    color: var(--cream);
}

/* ---- Cards Grid ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.distance-badge {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}
.distance-badge.visible { display: inline-block; }
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border-color: rgba(251, 79, 20, 0.3);
}
.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.card-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
}
.card-body {
    padding: 24px;
}
.card-body h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}
.card-body .location {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-body p {
    font-size: 0.9rem;
    color: rgba(213,206,190,0.7);
    margin-bottom: 16px;
}
.card-body .card-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.card-body .card-links a,
.card-body .card-links span {
    color: var(--primary);
    font-size: 1.1rem;
}
.card-body .card-links a:hover {
    color: var(--primary-dark);
}
.card-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}
.card-meta {
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0.7;
}

/* ---- Home Feature Split Sections ---- */
.home-feature-section {
    padding: 60px 0;
    background: var(--cream);
}
.home-feature-split {
    display: flex;
    align-items: stretch;
    min-height: 460px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 32px;
}
.home-feature-photo {
    flex: 3;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-feature-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.home-feature-split:not(.home-feature-reverse) .home-feature-photo {
    position: relative;
    left: 1cm;
    top: -2cm;
}
.home-feature-split.home-feature-reverse .home-feature-photo {
    position: relative;
    right: 1cm;
    top: -2cm;
}
.home-feature-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    border-radius: 16px;
}
.home-feature-text {
    flex: 2;
    min-width: 0;
    background: transparent;
    color: #1c2d3e;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 16px;
}
.home-feature-text h2 {
    color: #1c2d3e;
    font-size: 2.2rem;
    margin: 0;
}
.home-feature-text p {
    color: #253347;
    line-height: 1.8;
    margin: 0;
}
.home-feature-cta {
    text-align: center;
    margin-top: 36px;
}
.feature-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 600;
}
.feature-location, .feature-meta {
    color: #4b607f;
    font-size: 0.92rem;
    margin: 0;
}
.feature-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* ---- Coffee Intro Section (Home) ---- */
.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.intro-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.intro-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.intro-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
}
.intro-text h2 {
    margin-bottom: 16px;
}
.intro-text p {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.8;
}

/* ---- Filters ---- */
.filters {
    background: var(--cream);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(28,45,62,0.1);
}
.filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: end;
}
.filter-group {
    flex: 1;
    min-width: 200px;
}
.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 8px;
}
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(28,45,62,0.2);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #1c2d3e;
    background: #fff;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23858c66' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
.filter-group select option {
    background: var(--card-bg);
    color: var(--cream);
    padding: 8px;
}
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(251, 79, 20, 0.2);
}
.filter-group input::placeholder {
    color: rgba(213, 206, 190, 0.4);
}

/* ---- Page Header / Banner ---- */
.page-banner {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 120px 0 0;
    margin-top: 70px;
    overflow: hidden;
    border-bottom: 4px solid var(--cream);
}
.page-banner h1 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(4rem, 16vw, 13rem);
    line-height: 1;
    margin: 0;
    overflow: hidden;
    width: 100%;
}
@keyframes banner-marquee {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.page-banner p {
    background: var(--cream);
    color: #1c2d3e;
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin: 0;
    padding: 28px 24px;
    text-align: center;
}

/* ---- Coffee Shop Detail ---- */
.shop-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.shop-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.shop-detail-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.page-bean-detail .shop-detail-image img {
    aspect-ratio: 3 / 4;
}
.shop-detail-info h1 {
    margin-bottom: 12px;
}
.shop-detail-info .location {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.shop-detail-info .description {
    margin: 24px 0;
    line-height: 1.9;
}
.shop-detail-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.shop-detail-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
}
.shop-detail-links a:hover {
    background: var(--primary);
    color: #fff;
}

/* ---- Location Button ---- */
.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    transition: var(--transition);
    margin: 12px 0 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(251, 79, 20, 0.3);
}
.location-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 79, 20, 0.4);
    color: #fff;
}
.location-btn i.fa-map-marker-alt {
    font-size: 1rem;
}
.location-btn .location-address {
    display: none;
}
.location-btn .location-open {
    display: none;
}

/* ---- About Page ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.about-img-placeholder {
    height: 380px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 4rem;
    color: var(--light-grey);
}
.about-text h2 { margin-bottom: 12px; }
.about-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 0 24px;
    border-radius: 2px;
}
.about-text p {
    line-height: 1.9;
    font-size: 1rem;
    opacity: 0.85;
}
.about-subheading {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin: 28px 0 8px;
    letter-spacing: 0.02em;
}

/* Mission quote band */
.about-mission-section {
    background: var(--primary);
    padding: 64px 0;
    text-align: center;
}
.about-mission-quote { max-width: 780px; margin: 0 auto; }
.about-quote-icon {
    display: block;
    font-size: 2rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.about-mission-quote p {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

/* Values */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 0;
}
.about-value-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.about-value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251,79,20,0.35);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.about-value-icon {
    width: 64px;
    height: 64px;
    background: rgba(251,79,20,0.13);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary);
}
.about-value-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.about-value-card p  { font-size: 0.9rem; line-height: 1.75; opacity: 0.7; }

/* Team */
.about-team-section { background: var(--surface); }
.about-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 0;
}
.about-team-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.about-team-avatar {
    width: 80px;
    height: 80px;
    background: rgba(251,79,20,0.13);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
}
.about-team-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.about-team-role {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 16px;
}
.about-team-card p { font-size: 0.88rem; line-height: 1.75; opacity: 0.65; }

/* CTA band */
.about-cta-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--off-white) 100%);
    padding: 80px 0;
    text-align: center;
    border-top: 3px solid var(--primary);
}
.about-cta-section h2 { font-size: 2.2rem; margin-bottom: 14px; }
.about-cta-section > .container > p { opacity: 0.65; margin-bottom: 36px; font-size: 1rem; }
.about-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Contact Form ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--cream);
    background: var(--surface);
    transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(213,206,190,0.4);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(251, 79, 20, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 140px;
}
.contact-info h3 {
    margin-bottom: 20px;
}
.contact-info p {
    margin-bottom: 24px;
    line-height: 1.8;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.contact-info-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
}

/* ---- Alert Messages ---- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.alert-success {
    background: rgba(251, 79, 20, 0.15);
    color: var(--primary-dark);
    border: 1px solid rgba(251, 79, 20, 0.3);
}
.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ---- Footer ---- */
.footer {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h3, .footer h4 {
    color: var(--white);
    margin-bottom: 16px;
}
.footer .footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
}
.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer ul li {
    margin-bottom: 8px;
}
.footer ul a {
    font-size: 0.9rem;
    opacity: 0.7;
}
.footer ul a:hover {
    opacity: 1;
    color: var(--primary);
}
.social-links {
    display: flex;
    gap: 16px;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* ---- Home Form Section ---- */
.home-form-section {
    background: var(--primary-dark);
    color: var(--white);
}
.home-form-section h2 {
    color: var(--white);
}
.home-form-section .form-group input,
.home-form-section .form-group textarea {
    background: var(--cream);
    border-color: rgba(232,216,201,0.6);
    color: #1c2d3e;
}
.home-form-section .form-group input::placeholder,
.home-form-section .form-group textarea::placeholder {
    color: rgba(28,45,62,0.45);
}
.home-form-section .form-group input:focus,
.home-form-section .form-group textarea:focus {
    border-color: var(--cream);
    box-shadow: 0 0 0 3px rgba(232,216,201,0.4);
}
.home-form-section .form-group label {
    color: rgba(255,255,255,0.9);
}
.home-form-section .btn-primary {
    background: #1c2d3e;
    border-color: #1c2d3e;
    color: var(--cream);
}
.home-form-section .btn-primary:hover {
    background: #253347;
    border-color: #253347;
}

/* ---- Featured Beans Grid ---- */
.beans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ---- No Results ---- */
.no-results {
    text-align: center;
    padding: 60px 24px;
    color: var(--off-white);
    opacity: 0.6;
}
.no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-body {
    background: var(--cream);
    color: #1c2d3e;
}
.admin-body h1, .admin-body h2, .admin-body h3, .admin-body h4 {
    color: #1c2d3e;
}
.admin-nav {
    background: rgba(28, 45, 62, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(251, 79, 20, 0.2);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.admin-nav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-nav .logo-text,
.admin-nav .logo-accent {
    color: var(--white);
}
.admin-nav .logo-accent {
    color: var(--primary);
}
.admin-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}
.admin-nav-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.admin-nav-links a:hover,
.admin-nav-links a.active {
    color: var(--white);
}
.admin-nav-links .badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.admin-content {
    margin-top: 80px;
    padding: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.admin-header h1 {
    font-size: 1.8rem;
}

.admin-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}
.admin-card .form-group label {
    color: #545452;
}
.admin-card .form-group input,
.admin-card .form-group textarea,
.admin-card .form-group select {
    background: #ffffff;
    color: #545452;
    border-color: #e8e4df;
}
.admin-card .form-group input::placeholder,
.admin-card .form-group textarea::placeholder {
    color: #aaa;
}
.admin-card .form-group input:focus,
.admin-card .form-group textarea:focus,
.admin-card .form-group select:focus {
    border-color: #FB4F14;
    box-shadow: 0 0 0 3px rgba(251, 79, 20, 0.15);
}
.admin-card .filter-group label {
    color: #545452;
}
.admin-card .filter-group select,
.admin-card .filter-group input {
    background: #ffffff;
    color: #545452;
    border-color: #e8e4df;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #545452;
    opacity: 0.7;
    border-bottom: 2px solid #e8e4df;
    font-weight: 600;
}
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e8e4df;
    font-size: 0.9rem;
    vertical-align: middle;
    color: #545452;
}
.admin-table tr:hover {
    background: rgba(200,169,110,0.12);
}
.admin-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
.admin-actions {
    display: flex;
    gap: 8px;
}
.admin-actions a,
.admin-actions button {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid #e8e4df;
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    color: #545452;
    font-family: var(--font-body);
}
.admin-actions a:hover,
.admin-actions button:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.admin-actions .delete-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}
.stat-card .stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #545452;
    opacity: 0.6;
    margin-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .home-feature-split {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 20px;
        min-height: unset;
    }
    .home-feature-split .home-feature-photo {
        position: static;
        order: 3;
        width: 90%;
        max-width: 480px;
        align-self: center;
        margin: 0 auto;
        left: auto;
        right: auto;
    }
    .home-feature-split:not(.home-feature-reverse) .home-feature-photo,
    .home-feature-split.home-feature-reverse .home-feature-photo {
        transform: none;
        position: static;
        left: auto;
        right: auto;
    }
    .home-feature-photo img, .home-feature-placeholder { aspect-ratio: 4 / 3; width: 100%; }
    .home-feature-text { display: contents; }
    .home-feature-split .feature-label { order: 1; }
    .home-feature-split h2 { order: 2; text-align: center; margin: 0; }
    .home-feature-split p { order: 4; text-align: center; margin: 0; }
    .home-feature-split .btn { order: 5; }
    .intro-section,
    .shop-detail,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-values-grid,
    .about-team-grid { grid-template-columns: 1fr; }
    .about-mission-quote p { font-size: 1.3rem; }
    .about-cta-section h2 { font-size: 1.6rem; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-shop-btn {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--off-white);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }
    .nav-menu.open {
        transform: translateY(0);
    }
    .nav-menu li {
        padding: 12px 0;
        border-bottom: 1px solid var(--light-grey);
    }
    .hero { height: 100vh; }
    .hero-content {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 100%;
        align-items: flex-start;
        text-align: left;
        padding: calc(85px + 2cm) 20px 50px;
    }
    .hero-content h1 { font-size: 1.5rem; white-space: nowrap; max-width: none; margin-top: 0.5cm; margin-bottom: 0; }
    .hero-content p { font-size: 1rem; max-width: 62%; margin-top: 1.3cm; margin-bottom: 0; }
    .hero-cta { bottom: 32px; gap: 12px; }
    .hero-bg-img { top: calc(85px + 2.5cm); height: calc(100% - 85px - 2.5cm); }
    .section { padding: 50px 0; }
    .card-grid { grid-template-columns: 1fr; }
    .page-coffee-companies .card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .page-coffee-companies .card-image,
    .page-coffee-companies .card-image-placeholder { aspect-ratio: 3 / 4; }
    .footer-grid { grid-template-columns: 1fr; }
    .filter-row { flex-direction: column; align-items: stretch; }
    .filter-group label { font-size: 1rem; }
    .filter-group select, .filter-group input { font-size: 1rem; }

    .filter-row .filter-group:last-child { flex: 0 0 100% !important; width: 100% !important; display: flex !important; justify-content: center !important; }
    .filter-row .filter-group:last-child label { display: none; }
    .page-banner { padding: 80px 0 0; }
    .page-banner h1 { font-size: clamp(3rem, 12vw, 5cm); }
    .page-banner p { font-size: 1rem; padding: 14px 16px; }

    .admin-nav-links { gap: 10px; font-size: 0.7rem; }
    .admin-content { padding: 16px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    h1 { font-size: 1.8rem; }
    .beans-grid { grid-template-columns: 1fr; }
}

/* ==============================================
   SHOP / CART / CHECKOUT  (v43)
   ============================================== */

/* ---- Alert messages ---- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-success { background: rgba(251,79,20,0.1); color: #c0390a; border-left: 4px solid var(--primary); }
.alert-error   { background: rgba(220,53,69,0.1);  color: #b02a37; border-left: 4px solid #dc3545; }

/* ---- Cart nav icon ---- */
.cart-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--cream);
    font-size: 1.2rem;
    padding: 4px 8px;
    margin-left: 8px;
    transition: var(--transition);
    flex-shrink: 0;
}
.cart-nav-icon:hover { color: var(--primary); }
.cart-count {
    position: absolute;
    top: -6px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-body);
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.page-index .navbar:not(.scrolled) .cart-nav-icon { color: #1c2d3e; }

/* ---- Shop Products Grid ---- */
.shop-results-count {
    font-size: .875rem;
    color: var(--light-grey);
    margin: 1rem 0 1.25rem;
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.shop-product-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(28,45,62,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}
.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.shop-product-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-product-img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--charcoal);
}
.shop-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.shop-product-card:hover .shop-product-img img { transform: scale(1.06); }

.shop-product-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-grey);
}

.shop-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .25rem .6rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
}
.shop-badge.sold-out { background: var(--light-grey); }

.shop-product-info {
    padding: 0.6rem 0.75rem;
    flex: 1;
    background: #fff;
    text-align: center;
}
.shop-product-category {
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: .35rem;
}
.shop-product-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    color: #1c2d3e;
    margin-bottom: .35rem;
    line-height: 1.3;
}
.shop-product-meta {
    font-size: .8rem;
    color: var(--light-grey);
    margin-bottom: .4rem;
}
.shop-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1c2d3e;
    margin-bottom: .4rem;
}

.shop-stock {
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-top: .25rem;
}
.shop-stock .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28a745;
    flex-shrink: 0;
}
.shop-stock.low .dot  { background: var(--primary); }
.shop-stock.out .dot  { background: #aaa; }
.shop-stock span:last-child { color: var(--light-grey); }

/* Quick-add (hover reveal on desktop) */
.quick-add {
    padding: .75rem 1rem;
    background: #fff;
    border-top: 1px solid rgba(28,45,62,0.07);
}
.quick-add-btn {
    width: 100%;
    padding: .75rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: #1c2d3e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.quick-add-btn:hover  { background: var(--primary); }
.quick-add-btn:disabled { background: var(--charcoal); color: var(--light-grey); cursor: not-allowed; }

/* ---- Bean detail – Add to Cart ---- */
.bean-add-to-cart {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(28,45,62,0.1);
}
.bean-stock-status {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    margin-bottom: 1rem;
}
.bean-stock-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
}
.bean-stock-status.low .dot { background: var(--primary); }
.bean-stock-status.out .dot { background: #aaa; }
.bean-stock-status span:last-child { color: var(--light-grey); }

.add-to-cart-form { margin-bottom: .75rem; }
.qty-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.qty-row label { font-weight: 600; color: #1c2d3e; }
.btn-add-cart { flex: 1; white-space: nowrap; }
.view-cart-link {
    font-size: .875rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 500;
}
.view-cart-link:hover { text-decoration: underline; }

/* ---- Cart Page ---- */
.cart-container { padding: 0; }

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(28,45,62,0.08);
}
.cart-empty i { font-size: 3rem; color: var(--charcoal); margin-bottom: 1rem; display: block; }
.cart-empty p { font-size: 1.15rem; margin-bottom: 1.5rem; color: var(--light-grey); }

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(28,45,62,0.08);
}
.cart-table th {
    text-align: left;
    padding: 1rem;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--charcoal);
    border-bottom: 1px solid rgba(28,45,62,0.1);
}
.cart-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(28,45,62,0.05);
    vertical-align: middle;
    color: #1c2d3e;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: .875rem;
}
.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.cart-product-placeholder {
    width: 80px;
    height: 80px;
    background: var(--charcoal);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-grey);
    font-size: 1.4rem;
    flex-shrink: 0;
}
.cart-product-info { display: flex; flex-direction: column; gap: .2rem; }
.cart-product-name { font-weight: 600; color: #1c2d3e; }
.cart-product-meta { font-size: .8rem; color: var(--light-grey); }

.qty-input {
    width: 72px;
    padding: .5rem;
    text-align: center;
    border: 1px solid rgba(28,45,62,0.18);
    border-radius: 8px;
    background: #fff;
    color: #1c2d3e;
    font-size: 1rem;
    font-family: var(--font-body);
}
.qty-input:focus { outline: none; border-color: var(--primary); }

.btn-remove {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(220,53,69,0.4);
    background: transparent;
    color: #dc3545;
    cursor: pointer;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-remove:hover { background: #dc3545; color: #fff; border-color: #dc3545; }

.cart-table tfoot td {
    padding: 1.25rem 1rem;
    font-size: 1.15rem;
    background: var(--charcoal);
    color: #1c2d3e;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ---- Checkout Page ---- */
.checkout-container { padding: 0; }

.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.checkout-form h2,
.order-summary h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #1c2d3e;
}

.order-summary {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(28,45,62,0.08);
    position: sticky;
    top: 90px;
}

.summary-items { margin-bottom: 1.25rem; }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(28,45,62,0.06);
    font-size: .9rem;
    color: #1c2d3e;
}
.summary-item-name { display: flex; flex-direction: column; gap: .2rem; }
.summary-item-size { font-size: .8rem; color: var(--light-grey); }

.summary-subtotal,
.summary-shipping {
    display: flex;
    justify-content: space-between;
    padding: .65rem 0;
    font-size: .9rem;
    color: #1c2d3e;
    border-top: 1px solid rgba(28,45,62,0.06);
}

.free-shipping-notice {
    padding: .6rem .875rem;
    background: rgba(40,167,69,0.1);
    border-radius: 8px;
    color: #1e7e34;
    font-size: .83rem;
    font-weight: 600;
    text-align: center;
    margin: .4rem 0;
}
.almost-free-notice {
    padding: .6rem .875rem;
    background: rgba(251,79,20,0.08);
    border-radius: 8px;
    color: #c0390a;
    font-size: .83rem;
    font-weight: 600;
    text-align: center;
    margin: .4rem 0;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: .4rem;
    border-top: 2px solid rgba(28,45,62,0.12);
    font-size: 1.2rem;
    color: #1c2d3e;
}

/* Delivery toggle */
.delivery-options {
    display: flex;
    gap: 1rem;
}
.delivery-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1.1rem 1rem;
    border: 2px solid rgba(28,45,62,0.12);
    border-radius: 10px;
    background: #fff;
    color: #1c2d3e;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: border-color .2s, background .2s;
}
.delivery-option:hover { border-color: var(--primary); }
.delivery-option.active {
    border-color: var(--primary);
    background: rgba(251,79,20,0.05);
}
.delivery-option svg { stroke: var(--light-grey); }
.delivery-option.active svg { stroke: var(--primary); }

/* Payment info box */
.payment-info-box {
    margin: 1.75rem 0;
    padding: 1.25rem;
    background: rgba(28,45,62,0.04);
    border-radius: 10px;
    border-left: 4px solid #1c2d3e;
}
.payment-info-box h3 {
    font-size: 1rem;
    font-weight: 600;
    font-style: normal;
    color: #1c2d3e;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.payment-info-box p { font-size: .875rem; color: #4b607f; margin-bottom: .5rem; }
.bank-details { margin-top: .75rem; display: flex; flex-direction: column; gap: .35rem; }
.bank-details div {
    display: flex;
    gap: .5rem;
    font-size: .875rem;
    color: #1c2d3e;
}
.bank-details div span { color: var(--light-grey); min-width: 130px; }

/* Place Order button */
.btn-place-order {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: .04em;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem;
}
.btn-place-order:hover { background: #c73e0f; }
.btn-place-order:disabled { background: var(--charcoal); color: var(--light-grey); cursor: not-allowed; }

/* ---- Order Success ---- */
.order-success-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(28,45,62,0.08);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}
.order-success-card h2 {
    font-size: 1.8rem;
    margin-bottom: .5rem;
    color: #1c2d3e;
}
.order-success-card > p {
    color: var(--light-grey);
    margin-bottom: 1.5rem;
}

.order-ref-box {
    background: rgba(251,79,20,0.06);
    border: 1px solid rgba(251,79,20,0.2);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem auto;
    max-width: 340px;
}
.order-ref-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--light-grey); margin-bottom: .4rem; }
.order-ref-number { font-size: 1.8rem; font-weight: 700; color: var(--primary); letter-spacing: .05em; }

.order-success-details {
    margin: 1.5rem auto;
    max-width: 400px;
    text-align: left;
    border-top: 1px solid rgba(28,45,62,0.08);
}
.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(28,45,62,0.06);
    font-size: .9rem;
    color: #1c2d3e;
}
.order-detail-row span { color: var(--light-grey); }

.payment-reminder {
    margin: 1.5rem auto;
    max-width: 440px;
    text-align: left;
    background: rgba(28,45,62,0.04);
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid #1c2d3e;
}
.payment-reminder h3 {
    font-size: 1rem;
    font-weight: 600;
    font-style: normal;
    color: #1c2d3e;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.payment-reminder p { font-size: .875rem; color: #4b607f; }

/* ---- Responsive – cart / checkout ---- */
@media (max-width: 1024px) {
    .shop-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .shop-products-grid  { grid-template-columns: repeat(2, 1fr); gap: .875rem; }
    .checkout-layout     { grid-template-columns: 1fr; }
    .order-summary       { order: -1; position: static; }

    .cart-table thead { display: none; }
    .cart-table tr { display: block; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(28,45,62,0.1); }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; padding: .65rem .875rem; border: none; }
    .cart-table td::before { content: attr(data-label); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
    .cart-product { width: 100%; justify-content: flex-start; }
    .cart-actions { flex-direction: column; }
    .cart-actions .btn { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
    .shop-products-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .delivery-options { flex-direction: column; }
}

/* ============================================================
   Brand page — Shops / Beans tabs (mobile only)
   ============================================================ */
.company-section-label {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
}
.company-tabs {
    display: none; /* hidden on desktop */
}
.company-panel-hidden {
    display: none;
}
@media (max-width: 768px) {
    .company-section-label { display: none; }
    .company-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 28px;
    }
    .company-tab {
        flex: 1;
        padding: 11px 10px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: var(--radius);
        background: var(--surface);
        color: var(--text);
        font-size: 0.88rem;
        font-family: var(--font-body);
        font-weight: 600;
        letter-spacing: 0.03em;
        cursor: pointer;
        transition: var(--transition);
    }
    .company-tab.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }
}

/* ============================================================
   Owner Portal — Cream Background Theme
   Applied via .owner-body so the admin panel is unaffected
   ============================================================ */

.owner-body {
    background: var(--cream);
    color: #1c2d3e;
}
.owner-body h1,
.owner-body h2,
.owner-body h3,
.owner-body h4 {
    color: #1c2d3e;
}

/* Nav — dark navy, matches the main .navbar */
.owner-body .admin-nav {
    background: rgba(28, 45, 62, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(251, 79, 20, 0.2);
    padding: 6px 0; /* nav height = 6 + 38 + 6 = 50px */
}
/* Push content below the 50px nav on all screen sizes */
.owner-body .admin-content { margin-top: 80px; }
.owner-body .admin-nav .logo-text { color: var(--cream); }
.owner-body .admin-nav .logo-accent { color: var(--primary); }
.owner-body .admin-nav-links a { color: rgba(255,255,255,0.7); }
.owner-body .admin-nav-links a:hover,
.owner-body .admin-nav-links a.active { color: #fff; }
.owner-body .admin-nav-links span { color: rgba(255,255,255,0.4); }

/* Stat cards — dashboard */
.owner-stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}
.owner-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(251,79,20,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.owner-stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: #1c2d3e;
    line-height: 1;
}
.owner-stat-label {
    font-size: 0.78rem;
    color: #6b7a8d;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Owner nav bean toggle ── */
.owner-body .admin-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: rgba(255,255,255,0.85);
    line-height: 0;
}
.owner-body .admin-nav-toggle svg { transition: transform 0.3s ease; }
.owner-body .admin-nav-toggle.active svg { transform: rotate(90deg); }
.owner-body .admin-nav-toggle .bean-crease { stroke: rgba(28,45,62,0.7); }

.admin-nav-divider { opacity: 0.4; font-size: 0.8rem; padding: 0 4px; }
.admin-nav-email   { opacity: 0.65; font-size: 0.8rem; }

/* ── Owner bean card grid (v106) ── */
.owner-bean-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.owner-bean-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.owner-bean-photo {
    aspect-ratio: 3 / 4;
    position: relative;
    background: #e8e0d8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.owner-bean-nophoto {
    font-size: 2.5rem;
    opacity: 0.2;
    color: #1c2d3e;
}
.owner-bean-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
}
.owner-bean-sold-out { background: #dc3545; color: #fff; }
.owner-bean-info { padding: 14px; }
.owner-bean-info h4 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1c2d3e;
    line-height: 1.3;
}
.owner-bean-cat {
    font-size: 0.73rem;
    opacity: 0.55;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.owner-bean-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.78rem;
    margin-bottom: 12px;
    color: #1c2d3e;
    opacity: 0.7;
}
.owner-bean-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Mobile nav dropdown (owner portal) — scoped to .owner-body for specificity */
@media (max-width: 768px) {
    .owner-body .admin-nav-toggle { display: flex; }
    .owner-body .admin-nav-links {
        display: none !important;
        flex-direction: column;
        position: fixed;
        top: 50px; /* 6px pad + 38px logo + 6px pad */
        left: 0;
        right: 0;
        background: rgba(28, 45, 62, 0.98);
        padding: 16px 20px 20px;
        gap: 14px;
        border-top: 1px solid rgba(251, 79, 20, 0.25);
        z-index: 999;
    }
    .owner-body .admin-nav-links.open { display: flex !important; }
    .owner-body .admin-nav-links a { font-size: 0.9rem; padding: 4px 0; }
    .owner-body .admin-nav-divider { display: none; }
    .owner-body .admin-nav-email {
        font-size: 0.78rem;
        padding: 6px 0 2px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .owner-body .admin-content { margin-top: 70px; }
    .owner-bean-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .owner-bean-info { padding: 10px; }
    .owner-bean-info h4 { font-size: 0.85rem; }
}

/* ==============================================
   ADMIN MESSAGES TABS  (v50)
   ============================================== */
.msg-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0d5cc;
    margin-bottom: 24px;
}
.msg-tab {
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7a8d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-body);
}
.msg-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.msg-tab .badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
.msg-panel { display: none; }
.msg-panel.active { display: block; }

.rec-type-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.rec-type-contact {
    background: rgba(37,51,71,0.1);
    color: #253347;
}
.rec-type-owner {
    background: rgba(251,79,20,0.12);
    color: #c84b0f;
}
