@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;600&family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,200..800&display=swap');

:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #007bff;
    --background-light: #f9f9f9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 300;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    line-height: 0.8;
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    /* Required for text-fill-color to work properly on some browsers if not block */
}

p {
    font-weight: 300;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 400;
    /* Regular weight but relies on font style */
    font-style: italic;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    /* Gradient underline */
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* background-color: #fff; Removed to allow theme background */
    padding: 120px 0 20px;
    /* Top padding for fixed header */
}

.hero-split {
    display: flex;
    align-items: center;
    /* Center vertically */
    gap: 4rem;
    width: 100%;
}

.hero-left {
    flex: 1;
    max-width: 50%;
}

.hero-right {
    flex: 1;
    width: 50%;
}

.hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    text-align: left;
    font-variation-settings: "wdth" 100;
}

.hero h1 span {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-style: italic;
    display: inline-block;
    font-weight: 700;
    font-variation-settings: "wdth" 100;
    /* Adjusted for balance */
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    /* Use theme variable for better adaptation */
    margin-bottom: 2rem;
    max-width: 90%;
}


/* Mobile Category Text Fix */
@media (max-width: 768px) {
    .project-info h3 {
        color: #fff !important;
        text-align: left !important;
    }

}

/* Hero Project Grid (Staggered Bento) */
.hero-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    /* Base row height */
    gap: 1rem;
    grid-auto-flow: dense;
    /* Crucial for filling gaps if needed */
}

.hero-project-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #f4f4f4;
    transition: transform 0.3s ease;
}

.hero-project-card:hover {
    transform: translateY(-3px);
}

.hero-card-tall {
    grid-row: span 2;
    /* Spans 2 rows (Tall) */
}

/* Wide not used in this pattern, but kept for safety */
.hero-card-wide {
    grid-column: span 2;
}

.hero-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #eee;
}

.hero-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
}

.hero-card-info h3 {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    /* Less padding */
    background: linear-gradient(to right, #7F7FD5, #86A8E7);
    color: #fff;
    border-radius: 10px;
    font-weight: 300;
    margin-top: 1rem;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 127, 213, 0.4);
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h1 {
    line-height: 0.8;
    background: linear-gradient(to right, #7F7FD5, #86A8E7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Bento Grid Implementation */
.projects-section {
    padding: 6rem 0;
    background-color: #faf9f6;
    /* Off-white/cream background from reference */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    /* Tight gap */
    grid-auto-rows: 350px;
    /* Fixed height for bento styling */
}

.project-card {
    position: relative;
    border-radius: 24px;
    /* Rounded corners from reference */
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Span classes for layout variety */
.project-card.wide {
    grid-column: span 2;
}

.project-card.tall {
    grid-row: span 2;
}

.project-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: #ddd;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Overlay Content for Bento Cards */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through if needed, though card is anchor */
}

.project-info h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
    /* Ensure white text */
}

@media (max-width: 768px) {
    .project-info h3 {
        text-align: left;
        color: #fff;
    }

    .project-info p {
        text-align: left;
        color: rgba(255, 255, 255, 0.9);
    }
}

.project-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Solid colored cards variants (optional for variety) */
.project-card.bg-cream {
    background-color: #f3efe5;
}

.project-card.bg-green {
    background-color: #5d6d53;
    color: white;
}

.project-card.bg-brown {
    background-color: #cbbba0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}


/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #eee;
    color: #888;
    background-color: #fff;
}

footer p {
    font-size: 13px;
    font-weight: 300;
    margin: 0;
    color: #888;
}

/* Launch Button */
.btn-launch {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    background: linear-gradient(135deg, #7F7FD5, #86A8E7, #91EAE4);
    background-size: 200% 200%;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(134, 168, 231, 0.4);
    transition: all 0.4s ease;
    animation: gradientShift 5s ease infinite;
}

.btn-launch:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(134, 168, 231, 0.6);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Header */
    header {
        padding: 1rem 0;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero Mobile */
    .hero {
        padding-top: 70px;
        /* Reduced by half as requested */
        height: auto;
        min-height: auto;
    }

    .hero-split {
        flex-direction: column;
        gap: 3rem;
    }

    .hero-left,
    .hero-right {
        max-width: 100%;
        width: 100%;
    }

    .hero h1 {
        font-size: 3.5rem;
        /* Matches All Projects H1 */
        text-align: center;
    }

    .hero p {
        text-align: center;
        margin: 0 auto 2rem;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }
}

/* Project Hero */
.project-hero {
    height: 40vh;
    /* 40% of viewport height (approx 40% of typical 100vh hero) */
    min-height: 300px;
    /* Ensure strictly visible on small screens */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    /* Removed margin-top to clear header gap since body has padding */
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Black overlay with opacity */
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}

.project-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Core Image Section */
.project-core-section {
    padding-bottom: 4rem;
}

.project-visuals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .project-visuals-grid:not(.single-visual) {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-visuals-grid.single-visual {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Team Section & Contact Page */
.team-section {
    padding: 6rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.team-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.team-card-header h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.team-card-header .role {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.team-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
}

.team-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-social-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.team-social-info {
    display: flex;
    flex-direction: column;
}

.team-social-info .handle {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.team-social-info .platform {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.btn-contact {
    background: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.btn-contact:hover {
    background: #333;
}

[data-theme="dark"] .btn-contact {
    background: #fff;
    color: #000;
}

[data-theme="dark"] .btn-contact:hover {
    background: #eee;
}

@media (max-width: 992px) {
    .team-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card-header h3 {
        font-size: 1.8rem;
    }
}

/* Gold Star Badge (Frontend) */
.gold-star-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 160, 0, 0.3);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gold-star-badge:hover {
    transform: scale(1.1) rotate(15deg);
}

.gold-star-badge::before {
    content: 'â˜…';
    /* Unicode Star */
    font-size: 1.1rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Admin Gold Star Selection UI */
.admin-gold-star-selection {
    grid-column: span 2;
    margin-bottom: 0.5rem;
}

.gold-star-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.gold-star-toggle-card:hover {
    border-color: #FFD700;
    background: var(--bg-color);
}

.gold-star-toggle-card.active {
    background: rgba(255, 215, 0, 0.05);
    border-color: #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.toggle-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.gold-star-toggle-card.active .toggle-icon {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: white;
}

.toggle-text h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.toggle-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.gold-star-toggle-card.active .custom-checkbox {
    background: #FFD700;
    border-color: #FFD700;
}

.custom-checkbox::after {
    content: 'âœ“';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gold-star-toggle-card.active .custom-checkbox::after {
    opacity: 1;
}

.hero-project-card {
    position: relative;
}

.project-card {
    position: relative;
}

/* Project Detail Typography */
.project-meta-container {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.project-meta {
    font-size: 1.2rem;
    color: #888;
}

.project-description {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

@media (max-width: 768px) {
    .project-hero {
        margin-top: 0;
        /* Removed margin-top to clear header gap since body has padding */
        height: 30vh;
        min-height: 250px;
    }

    .project-hero-content h1 {
        font-size: 2rem;
    }

    /* Full bleed core image on mobile */
    .project-core-section .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    /* Project Detail Mobile Typography */
    .project-meta,
    .project-description {
        font-size: 14px;
    }

    /* Mobile Grid for Hero */
    .hero-project-grid {
        grid-template-columns: 1fr;
        /* Single column on very small screens? or 2 col grid */
        grid-template-rows: auto;
        grid-auto-rows: 200px;
    }

    /* Reset spans on mobile if needed, or keep for bento feel */
    .hero-card-tall {
        grid-row: span 1;
    }

    .hero-card-wide {
        grid-column: span 1;
    }

    .visuals-header {
        text-align: center;
    }

    /* Projects */
    .projects-section {
        padding: 4rem 0;
    }

    /* Bento Grid Mobile */
    .project-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 1rem;
    }

    .project-card.wide,
    .project-card.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-info h3 {
        font-size: 1.5rem;
        text-align: left !important;
        /* Enforce Left Align */
    }

    .project-info p {
        text-align: left !important;
        /* Enforce Left Align */
    }
}

@media (min-width: 481px) and (max-width: 768px) {

    /* Tablet/Large Mobile adjustments */
    .hero-project-grid {
        grid-template-columns: 1fr 1fr;
        /* Keep 2 cols on tablet */
    }

    .hero-card-wide {
        grid-column: span 2;
    }
}

/* Figma Embed Responsiveness */
.figma-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Shop Page Styles */
.shop-page {
    padding-top: 40px; /* Account for fixed header */
    padding-bottom: 4rem;
    min-height: 80vh;
}

.shop-header {
    margin-bottom: 2rem;
}

.shop-header h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1;
}

.shop-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.product-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.sort-dropdown select {
    padding: 0.5rem 1rem;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--primary-color);
    background-color: transparent;
    cursor: pointer;
    outline: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    transition: transform 0.3s ease;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f4f4f4;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-img-main {
    transform: scale(1.03);
}

.product-info-shop {
    text-align: left;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.product-price {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin: 0;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .shop-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Product Page */
.product-detail-page {
    padding-top: 40px;
    padding-bottom: 5rem;
}

.product-breadcrumb {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.product-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-list {
    display: flex;
    gap: 1rem;
}

.thumb {
    width: calc(25% - 0.75rem);
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.thumb.active, .thumb:hover {
    opacity: 1;
}

/* Sidebar Info */
.product-info-sidebar {
    position: sticky;
    top: 120px;
}

.brand-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.product-h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.reviews-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.stars {
    color: #e6a822; /* gold-ish */
    letter-spacing: 2px;
}

.product-price-large {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0;
}

.tax-shipping-note {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}

/* Actions */
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.checkout-actions button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-product-cart {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-product-cart:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-product-buy {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
}

.btn-product-buy:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.product-description p {
    margin-bottom: 1rem;
}

/* Accordions */
.product-accordions {
    border-top: 1px solid #eaeaea;
}

.accordion {
    border-bottom: 1px solid #eaeaea;
}

.accordion summary {
    padding: 1.25rem 0;
    font-weight: 500;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion[open] summary .icon {
    transform: rotate(45deg);
}

.accordion .icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.accordion-content {
    padding-bottom: 1.25rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-content ul {
    padding-left: 1.25rem;
    list-style-type: disc;
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-info-sidebar {
        position: static;
    }
    
    .product-h1 {
        font-size: 2rem;
    }
}

/* --- Cart & Checkout Refinement --- */

.cart-page, .checkout-page {
    padding-bottom: 8rem;
    background: var(--bg-color);
}

.cart-page .shop-header, .checkout-page .shop-header {
    margin-bottom: 4rem;
}

.back-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-main);
}

/* Cart Items */
.cart-flex {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 5rem;
    align-items: start;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cart-item-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.cart-item-total-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.cart-item-unit-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cart-item-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
}

.qty-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--bg-secondary);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-item-btn:hover {
    color: #ff4444;
}

/* Summary Cards */
.summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 4px;
    position: sticky;
    top: 120px;
}

.summary-h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.summary-details {
    margin-bottom: 2.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.25rem;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.btn-checkout-action {
    display: block;
    width: 100%;
    padding: 1.25rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-checkout-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.secure-badge {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Checkout Grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 6rem;
    align-items: start;
}

.checkout-section {
    margin-bottom: 4rem;
}

.checkout-h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.form-group-checkout {
    margin-bottom: 1.5rem;
}

.checkout-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.2s;
}

.checkout-input:focus {
    border-color: var(--text-main);
    outline: none;
}

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.checkout-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.payment-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.payment-option.active {
    background: var(--bg-secondary);
    border-color: var(--text-main);
}

.payment-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--text-main);
}

.payment-label {
    font-weight: 500;
    color: var(--text-main);
}

.btn-complete-order {
    width: 100%;
    margin-top: 2rem;
    cursor: pointer;
}

.final-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Mini Cart in Checkout */
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mini-cart-img {
    position: relative;
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.mini-cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.mini-cart-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--text-main);
    color: var(--bg-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-cart-info {
    flex: 1;
}

.mini-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.mini-item-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mini-cart-total-price {
    font-weight: 600;
    color: var(--text-main);
}

/* Cart Bubble & Counter Animations */
.cart-link {
    position: relative;
    padding: 0.5rem;
}

.cart-icon {
    font-size: 1.25rem;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--text-main);
    color: var(--bg-color);
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-count.bump {
    transform: scale(1.3);
}

/* Toast */
.cart-toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--text-main);
    color: var(--bg-color);
    padding: 1.25rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10000;
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .cart-flex, .checkout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .cart-summary-sidebar, .checkout-sidebar {
        position: static;
        width: 100%;
    }
    .cart-item {
        gap: 1.5rem;
        padding: 2rem 0;
    }
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
    .cart-item-title {
        font-size: 1.1rem;
    }
    .checkout-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .shop-header h1 {
        font-size: 2rem;
    }
    .cart-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    .cart-item-header {
        flex-direction: column;
        gap: 0.25rem;
    }
    .cart-item-total-price {
        font-size: 1.25rem;
    }
    .cart-item-actions {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .qty-btn {
        width: 44px; /* Larger touch target for mobile */
        height: 44px;
    }
    .summary-card {
        padding: 1.5rem;
    }
    .btn-checkout-action, .btn-complete-order {
        padding: 1rem;
    }
}

/* Old Price Styling */
.product-price .old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    font-size: 0.9em;
    font-weight: 400;
}

.product-price-large .old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-right: 1rem;
    font-size: 0.7em;
    font-weight: 400;
}

/* Floating Bag Button */
#floating-cart-btn {
    position: fixed;
    bottom: -60px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    opacity: 0;
}

[data-theme="dark"] #floating-cart-btn {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

#floating-cart-btn.visible {
    bottom: 30px;
    opacity: 1;
}

#floating-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#floating-cart-btn svg {
    width: 20px;
    height: 20px;
}
