/* ============================================
   DOING KIND THEME
   Human Hands Colour Palette
   ============================================ */

:root {
    --kind-orange: #F58A3B;
    --calm-aqua: #CFEFF4;
    --inclusive-neutral: #F3EEE7;
    --kindness-navy: #1C3557;
    --soft-white: #FFFFFF;
    --text-dark: #232323;
    --shadow-light: rgba(28, 53, 87, 0.08);
    --shadow-medium: rgba(28, 53, 87, 0.15);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background-color: var(--soft-white);
    line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--kindness-navy);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--kind-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--kindness-navy);
    text-decoration: underline;
}

strong {
    color: var(--kindness-navy);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background-color: var(--soft-white);
    border-bottom: 3px solid var(--calm-aqua);
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    margin-bottom: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo a {
    color: var(--kindness-navy);
    transition: color 0.3s ease;
    display: inline-block;
}

.logo a:hover {
    color: var(--kind-orange);
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.35rem;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--kindness-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    display: flex;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--kindness-navy);
    font-weight: 500;
    padding: 0.5rem 0.6rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.main-nav a:hover {
    color: var(--kind-orange);
    border-bottom-color: var(--kind-orange);
    text-decoration: none;
}

/* ---------------------------
   Dropdown base styles
---------------------------- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--kindness-navy);
    user-select: none;
}

/* --- Hidden by default --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--soft-white);
    border: 1px solid var(--calm-aqua);
    border-radius: 4px;
    min-width: 140px;
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    box-shadow: 0 4px 12px var(--shadow-medium);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.dropdown-menu.active {
    max-height: 300px;
    opacity: 1;
    padding: 0.5rem 0;
}

/* Desktop menu items */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--kindness-navy);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: var(--calm-aqua);
    color: var(--kindness-navy);
}


/* ---------------------------
   MOBILE VERSION
---------------------------- */
@media (max-width: 768px) {

    /* Reset menu for mobile stack layout */
    .dropdown-menu {
        position: relative;             /* No absolute positioning */
        border: none;
        box-shadow: none;
        background-color: var(--inclusive-neutral);
        margin: 0;
        padding: 0;

        /* Hidden by default */
        max-height: 0;
        opacity: 0;
        overflow: hidden;

        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    /* When active, show dropdown */
    .dropdown-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 0.5rem 0;
    }

    /* Mobile list item styling */
    .dropdown-menu a {
        padding: 0.75rem 2rem 0.75rem 2.5rem;
        background-color: var(--inclusive-neutral);
        border-bottom: 1px solid var(--calm-aqua);
    }

    .dropdown-menu a:hover {
        background-color: var(--calm-aqua);
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }
}


/* ============================================
   SHOPPING BAG & HEADER
   ============================================ */

.shopping-bag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--kindness-navy);
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.shopping-bag-icon:hover {
    color: var(--kind-orange);
}

.shopping-bag-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.bag-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--kind-orange);
    color: var(--soft-white);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* ============================================
   SHOP PAGES
   ============================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: var(--soft-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 16px var(--shadow-medium);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--calm-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--kindness-navy);
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Color Selector */
.color-selector {
    margin-bottom: 1rem;
}

.color-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--kindness-navy);
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.color-circle:hover:not(.out-of-stock) {
    border-color: #333;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.color-circle.active {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.color-circle.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.color-circle.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 100%;
    height: 3px;
    background-color: #d32f2f;
    z-index: 1;
}

.color-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kindness-navy);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

/* Size Selector */
.size-selector {
    margin-bottom: 1rem;
}

.size-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--kindness-navy);
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-btn {
    min-width: 50px;
    padding: 0.6rem 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #f5f5f5;
    color: var(--kindness-navy);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.size-btn:hover:not(:disabled) {
    border-color: var(--kind-orange);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(245, 138, 59, 0.2);
}

.size-btn.active {
    border-color: var(--kind-orange);
    background-color: var(--kind-orange);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 138, 59, 0.3);
}

.size-btn:disabled,
.size-btn.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #efefef;
}

.size-btn.out-of-stock::after {
    content: '✕';
    margin-left: 0.3rem;
    color: #d32f2f;
    font-weight: bold;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--kind-orange);
    margin-bottom: 1rem;
}

.add-to-cart-form {
    display: flex;
    gap: 0.5rem;
}

.btn-add-to-cart {
    flex-grow: 1;
}

/* ============================================
   CART PAGE
   ============================================ */

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 3rem;
}

.cart-items h2 {
    margin-bottom: 1.5rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-table thead {
    background-color: var(--calm-aqua);
}

.cart-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--kindness-navy);
    border: 1px solid #ddd;
}

.cart-table td {
    padding: 1rem;
    border: 1px solid #ddd;
}

.cart-item {
    border-bottom: 1px solid #eee;
}

.product-cell {
    width: 40%;
}

.cart-product {
    display: flex;
    gap: 1rem;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.price-cell {
    width: 15%;
    text-align: right;
}

.quantity-cell {
    width: 20%;
}

.quantity-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.quantity-form input {
    width: 50px;
    padding: 0.4rem;
    border: 1px solid var(--calm-aqua);
    border-radius: 4px;
}

.quantity-form input:focus {
    outline: none;
    border-color: var(--kind-orange);
}

.btn-small {
    background-color: var(--kind-orange);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: #e67e28;
}

.total-cell {
    width: 15%;
    text-align: right;
    font-weight: bold;
}

.action-cell {
    width: 10%;
    text-align: center;
}

.btn-remove {
    background-color: #ddd;
    color: #666;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background-color: #ccc;
    color: #333;
}

.cart-summary {
    position: sticky;
    top: 100px;
}

.summary-box {
    background-color: var(--calm-aqua);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--kindness-navy);
}

.summary-row span {
    display: block;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.total-row {
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(28, 53, 87, 0.2);
    margin-bottom: 0;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-checkout {
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: var(--kindness-navy);
    color: var(--soft-white);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* base: desktop = vertical stack */
.footer-menu {
    width: 100%;
    display: block; /* container only */
    text-align: center;
}

/* make the UL handle the layout */
.footer-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;  /* desktop: stacked (rows) */
    gap: 12px;
    align-items: center;
    justify-content: center;
}

/* links */
.footer-menu nav a {
    color: var(--calm-aqua);
    display: block;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease;
}

/* hover */
.footer-menu nav a:hover {
    color: var(--kind-orange);
    text-decoration: underline;
}

/* Mobile: side-by-side */
@media (max-width: 900px) {
    .footer-menu nav ul {
        flex-direction: row;    /* mobile: side-by-side */
        flex-wrap: wrap;        /* allow wrapping if too many items */
        gap: 10px 16px;         /* vertical and horizontal gaps */
    }

    /* optional: make links look better in a row */
    .footer-menu nav a {
        padding: 0.4rem 0.9rem;
    }
}


.footer-social {    
    display: flex;
    align-items: center;   /* Vertical alignment */
    justify-content: center; /* Optional: horizontal alignment */
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--kind-orange);
    color: var(--soft-white);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons {
    display: flex;             /* make UL a flex container */
    flex-direction: row;       /* items in a row */
    align-items: center;       /* vertical center */
    justify-content: center;   /* optional: horizontal center */
    gap: 12px;                 /* spacing between icons */
    padding: 0;
    margin: 0;
    list-style: none;
}

.social-icons li {
    display: flex;             /* ensures icon itself is centered if needed */
    align-items: center;
    justify-content: center;
}

.social-icons a {
    color: var(--calm-aqua);
    font-size: 1.5rem;         /* adjust icon size */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--kindness-navy);
}


.footer-text {
    display: flex;
    align-items: center;   /* Vertical alignment */
    justify-content: center; /* Optional: horizontal alignment */
}
.footer-text p {
    margin-bottom: 0;
    color: var(--calm-aqua);
    font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--kind-orange);
    color: var(--soft-white);
}

.btn-primary:hover {
    background-color: #e67e28;
    color: var(--soft-white);
    text-decoration: none;
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--kindness-navy);
    color: var(--soft-white);
}

.btn-secondary:hover {
    background-color: #142747;
    color: var(--soft-white);
    text-decoration: none;
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.btn-outline {
    background-color: transparent;
    color: var(--kind-orange);
    border: 2px solid var(--kind-orange);
}

.btn-outline:hover {
    background-color: var(--kind-orange);
    color: var(--soft-white);
    text-decoration: none;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
    min-height: calc(100vh - 200px);
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--inclusive-neutral) 0%, var(--calm-aqua) 100%);
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 4rem;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--kindness-navy);
}

.hero p {
    font-size: 1.3rem;
    color: var(--kindness-navy);
    margin-bottom: 2rem;
}

.hero .btn {
    margin: 0.5rem;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */

.content-block {
    margin-bottom: 4rem;
}

.content-block h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--kindness-navy);
}

/* ============================================
   CARDS
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background-color: var(--soft-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.3s ease;
    border-top: 4px solid var(--kind-orange);
}

.card:hover {
    box-shadow: 0 8px 16px var(--shadow-medium);
    transform: translateY(-4px);
}

.card h3 {
    color: var(--kindness-navy);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.card .btn {
    margin-top: 1rem;
}

.card-with-image {
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 1rem -2rem;
}

/* ============================================
   SECTIONS WITH BACKGROUNDS
   ============================================ */

.section-light {
    background-color: var(--calm-aqua);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.section-neutral {
    background-color: var(--inclusive-neutral);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.section-light h2,
.section-neutral h2 {
    color: var(--kindness-navy);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--kindness-navy);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="date"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--calm-aqua);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--kind-orange);
    box-shadow: 0 0 0 3px rgba(245, 138, 59, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   GALLERY & IMAGES
   ============================================ */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.fundraising-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* ============================================
   LIST STYLES
   ============================================ */

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    margin-left: 0;
}

.feature-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--kind-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   SPACING UTILITIES
   ============================================ */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.text-center {
    text-align: center;
}

.text-light {
    color: var(--calm-aqua);
}

.highlight {
    color: var(--kind-orange);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 900px) {
    .header-container {
        flex-wrap: nowrap;
        padding: 0 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--soft-white);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 8px var(--shadow-light);
        z-index: 99;
    }

    .main-nav.active {
        max-height: 900px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        border-bottom: 1px solid var(--calm-aqua);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: none;
        font-size: 1rem;
    }

    .main-nav a:hover {
        background-color: var(--calm-aqua);
        color: var(--kindness-navy);
    }

   

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .header-container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .menu-toggle span {
        width: 20px;
        height: 2.5px;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }

    .main-nav.active {
        max-height: 600px;
    }

    .main-nav a {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="phone"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Shop responsive styles */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .color-options {
        gap: 1.2rem;
    }

    .color-circle {
        width: 32px;
        height: 32px;
    }

    .color-label {
        font-size: 0.8rem;
    }

    .size-options {
        gap: 0.4rem;
    }

    .size-btn {
        min-width: 45px;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
        margin-top: 2rem;
    }

    .cart-table {
        font-size: 0.9rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.75rem;
    }

    .product-cell {
        width: 50%;
    }

    .price-cell {
        width: 12%;
    }

    .quantity-cell {
        width: 25%;
    }

    .total-cell {
        width: 13%;
    }

    .action-cell {
        width: 10%;
    }

    .cart-product img {
        width: 60px;
        height: 60px;
    }

    .quantity-form input {
        width: 40px;
        padding: 0.3rem;
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-image {
        height: 200px;
    }

    .color-options {
        gap: 1rem;
    }

    .color-circle {
        width: 28px;
        height: 28px;
    }

    .color-label {
        font-size: 0.75rem;
    }

    .size-options {
        gap: 0.3rem;
    }

    .size-btn {
        min-width: 40px;
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .cart-table {
        font-size: 0.8rem;
    }

    .cart-table th {
        font-size: 0.75rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.5rem;
    }

    .product-cell {
        width: 50%;
    }

    .price-cell,
    .quantity-cell,
    .total-cell {
        width: auto;
        text-align: center;
    }

    .action-cell {
        width: auto;
    }

    .cart-product {
        gap: 0.5rem;
    }

    .cart-product img {
        width: 50px;
        height: 50px;
    }

    .quantity-form {
        gap: 0.25rem;
    }

    .quantity-form input {
        width: 35px;
        padding: 0.25rem;
        font-size: 0.85rem;
    }

    .btn-small {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .btn-remove {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .summary-box {
        padding: 1rem;
    }

    .summary-row {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
}

/* =============================
   CART / PAYMENT RESPONSIVE CSS
============================= */

/* Flexible grid for cart container */
.cart-container {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 350px);
    gap: 2rem;
}

/* Cart table scrollable on narrow screens */
.cart-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

/* Flex wrap cart products to avoid squishing */
.cart-product {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Sticky summary adjustments */
.cart-summary {
    position: sticky;
    top: 2rem; /* or whatever your header height is */
}

/* =============================
   MEDIA QUERIES
============================= */

@media (max-width: 900px) {
    /* Stack cart and summary vertically */
    .cart-container {
        grid-template-columns: 1fr;
    }

    /* Make summary static below cart */
    .cart-summary {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 900px) {
    /* Table cells auto width and center */
    .price-cell,
    .quantity-cell,
    .total-cell,
    .action-cell {
        width: auto;
        text-align: center;
    }

    /* Cart product images smaller if needed */
    .cart-product img {
        max-width: 60px;
        height: auto;
    }

    /* Reduce gap for tiny screens */
    .cart-product {
        gap: 0.25rem;
    }
}

/* ============================================
   MAP & LOCATION STYLES
   ============================================ */

/* Hover effects for interactivity */
.marker-group {
    transition: all 0.3s ease-in-out;
}

.marker-group:hover {
    transform: translate(647px, 820px) scale(1.05); /* Match your translate coords */
}

.marker-group:hover .marker-pill rect {
    fill: #f39c12; /* Flips color on hover */
    stroke: #ffffff;
}

.marker-group:hover .marker-pill text {
    fill: #ffffff;
}

/* Soft shadow to separate from the green map */
.marker-pill rect {
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.2));
}