:root {
    --bg: #faf9f6;
    --surface: #ffffff;
    --surface-soft: #fbfbfa;
    --text: #18181b;
    --muted: #71717a;
    --primary: #09090b;
    --primary-soft: #27272a;
    --accent: #b9935a;
    --accent-hover: #9c7741;
    --accent-soft: #f9f5ee;
    --border: #e5e1da;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Header styles are handled in assets/components/header.html (scoped) */
/* Footer styles are handled in assets/components/footer.html (scoped) */

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.6rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(185, 147, 90, 0.16);
    background: var(--accent-hover);
}

.section {
    padding: 70px 0;
}

.section h2,
.section h1,
.section h3 {
    color: var(--primary);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(9, 9, 11, 0.08);
    border-color: rgba(185, 147, 90, 0.3);
}

.product-card img,
.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.03);
}

.product-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.product-card .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.product-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.product-card .btn-view {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-card .btn-view:hover {
    background: var(--accent);
    color: #09090b;
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--primary);
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.promo-banner {
    padding: 50px 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.promo-card {
    border-radius: 28px;
    overflow: hidden;
    min-height: 220px;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.15) 0%, rgba(15,23,42,0.7) 100%);
}

.promo-card .promo-text {
    position: relative;
    z-index: 1;
}

.promo-card.gift-card {
    background-image: linear-gradient(135deg, #b9935a 0%, #9c7741 100%);
}

.promo-card.trending-card {
    background-image: linear-gradient(135deg, #0f172a 0%, #475569 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.testimonial-card .quote {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.testimonial-card .author {
    display: block;
    font-weight: 700;
    color: #f8fafc;
}

.shop-filters {
    display: grid;
    grid-template-columns: 1fr 220px 180px;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
}

.shop-filters input,
.shop-filters select {
    width: 100%;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-header h2 {
    margin: 0;
}

.section-header p {
    max-width: 560px;
    color: var(--muted);
    margin: 0;
}

.card,
.feature-box,
.success-box,
.dashboard-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.feature-box,
.login-box,
.form-grid {
    width: 100%;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

#cart-items {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

#cart-summary {
    margin-bottom: 24px;
}

.price {
    margin: 0 1rem 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

/* Dashboard Styles */
.dashboard-tabs {
    display: flex;
    gap: 14px;
    margin: 30px 0 18px;
    flex-wrap: wrap;
}

.dashboard-tab {
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--primary);
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dashboard-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.filter-row input,
.filter-row select {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.export-status {
    margin-top: 14px;
    color: var(--muted);
}

/* Dashboard Summary Mini Card & Today's Orders Indicator */
.dashboard-summary-row {
    margin-bottom: 20px;
}

.mini-card {
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 22px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mini-card h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mini-card p {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.mini-card .btn {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.mini-card .btn.active-filter {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--accent);
}

.badge-today {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent-hover);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(185, 147, 90, 0.3);
    vertical-align: middle;
    margin-left: 8px;
}

.export-filtered-list {
    margin-top: 24px;
    border-top: 2px dashed var(--border);
    padding-top: 20px;
}

.export-filtered-list h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.tab-panel {
    display: none;
}

.tab-panel:first-of-type {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.success-box {
    background: var(--surface);
    border-radius: 24px;
    padding: 80px 30px;
    text-align: center;
}

.success-box h1 {
    font-size: 2.25rem;
    margin-bottom: 18px;
}

.login-box {
    max-width: 420px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    border: 1px solid var(--border);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.card {
    padding: 30px;
}

.card h3 {
    margin: 0 0 18px;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

thead {
    background: #f8fafc;
}

th,
td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
}

td {
    color: var(--text);
}

/* ==========================================================================
   Homepage Redesign Styles
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.hero-background-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.hero-section .container {
    position: relative;
    z-index: 4;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    margin: 0 0 20px;
    letter-spacing: -0.04em;
}

.hero-content h1 span.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #b9935a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.btn-primary {
    background: var(--accent);
    color: #09090b;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(185, 147, 90, 0.25);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.1);
    box-shadow: none;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* ---- Trust Bar ---- */
.trust-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
}

.trust-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.trust-icon-svg {
    stroke: var(--accent);
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.trust-text span {
    font-size: 12px;
    color: #64748b;
}

/* ---- Section Header Row ---- */
.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-header-row.center {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.section-header-row h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

.section-header-row p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* ---- Promo Section ---- */
.promo-section {
    padding: 60px 0;
}

.promo-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.promo-card-home {
    min-height: 280px;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.promo-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.promo-card-home .promo-card-content {
    position: relative;
    z-index: 2;
}

.promo-card-home .promo-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.promo-card-home h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.promo-card-home p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.promo-card-home .btn-primary {
    background: #ffffff;
    color: var(--primary);
    font-size: 0.95rem;
    padding: 10px 22px;
}

.promo-card-home .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.promo-gift {
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
    border: 1px solid rgba(185, 147, 90, 0.2);
    color: #ffffff;
}

.promo-gift .btn-primary {
    background: var(--accent);
    color: #09090b;
}

.promo-gift .btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

.promo-sale {
    background: linear-gradient(135deg, #faf9f6 0%, #f3ede2 100%);
    border: 1px solid var(--border);
    color: #18181b;
}

.promo-sale h3 {
    color: #09090b;
}

.promo-sale p {
    color: #52525b;
}

.promo-sale .promo-tag {
    background: rgba(9, 9, 11, 0.06);
    color: #09090b;
}

.promo-sale .btn-primary {
    background: #09090b;
    color: #ffffff;
}

.promo-sale .btn-primary:hover {
    background: #27272a;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon {
    font-size: 26px;
    line-height: 1;
}

.feature-icon-svg {
    stroke: var(--primary);
    width: 28px;
    height: 28px;
    transition: stroke 0.2s ease;
}

.feature-card:hover .feature-icon-svg {
    stroke: var(--accent);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ---- About FareEarth Section ---- */
.about-section {
    background: linear-gradient(135deg, #09090b 0%, #18181b 100%);
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 147, 90, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 147, 90, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-badge {
    display: inline-block;
    background: rgba(185, 147, 90, 0.15);
    border: 1px solid rgba(185, 147, 90, 0.25);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 100px;
    width: fit-content;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.about-text p {
    font-size: 1.05rem;
    color: #a1a1aa;
    line-height: 1.7;
    margin: 0;
    max-width: 520px;
}

.about-text .btn {
    align-self: flex-start;
    margin-top: 8px;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.about-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.about-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(185, 147, 90, 0.08);
    border-color: rgba(185, 147, 90, 0.25);
}

.about-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.about-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #71717a;
}

/* ---- Background Utility ---- */
.bg-gray {
    background: #f8fafc;
}

/* ---- Newsletter Section ---- */
.newsletter-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
}

.newsletter-content p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin: 0 0 32px;
}

.newsletter-form-home {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form-home input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

.newsletter-form-home input::placeholder {
    color: #64748b;
}

.newsletter-form-home input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}

.newsletter-form-home .btn {
    padding: 16px 28px;
    flex-shrink: 0;
}

/* ---- Payment Badges (Updated for images) ---- */
.f-payments {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.f-pm-icon {
    height: 24px;
    width: auto;
    filter: grayscale(100%) brightness(180%);
    transition: filter 0.2s ease;
}

.f-pm-icon:hover {
    filter: grayscale(0%) brightness(100%);
}

/* ==========================================================================
   Checkout Processing Overlay
   ========================================================================== */

.checkout-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-processing-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.checkout-processing-modal {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px 36px 32px;
    text-align: center;
    max-width: 340px;
    width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.checkout-processing-spinner svg {
    animation: spin 0.8s linear infinite;
    stroke: var(--accent);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.checkout-processing-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 4px;
}

.checkout-processing-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

/* Disable the place order button while processing */
.btn-checkout-place.processing {
    pointer-events: none;
    opacity: 0.7;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-up.delay-100 {
    animation-delay: 0.1s;
}

.animate-fade-in-up.delay-200 {
    animation-delay: 0.2s;
}

.animate-fade-in-up.delay-300 {
    animation-delay: 0.3s;
}

.animate-fade-in-up.delay-400 {
    animation-delay: 0.4s;
}

.animate-fade-in-up.delay-500 {
    animation-delay: 0.5s;
}

.animate-fade-in-up.delay-600 {
    animation-delay: 0.6s;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    .menu {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .menu {
        gap: 12px;
    }
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-image-section {
        position: static;
    }
    .product-info-section h1 {
        font-size: 1.75rem;
    }
    .product-actions {
        flex-direction: column;
    }
    .product-actions .btn {
        width: 100%;
    }
    .filter-row {
        grid-template-columns: 1fr;
    }
    .shop-filters {
        grid-template-columns: 1fr;
    }
    .newsletter-box {
        grid-template-columns: 1fr;
    }
    /* Homepage */
    .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
    }
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .promo-grid-home {
        grid-template-columns: 1fr;
    }
    .promo-card-home {
        padding: 36px 28px;
        min-height: 220px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-form-home {
        flex-direction: column;
    }
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    th,
    td {
        padding: 14px 12px;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* ==========================================================================
   Skeleton Shimmer Loading Animations
   ========================================================================== */

.skeleton-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.02);
}

.skeleton-image {
    width: 100%;
    height: 180px;
}

.skeleton-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.skeleton-text {
    border-radius: 4px;
}

.skeleton-category {
    width: 35%;
    height: 12px;
}

.skeleton-title {
    width: 85%;
    height: 18px;
    margin-bottom: 4px;
}

.skeleton-rating {
    width: 55%;
    height: 14px;
}

.skeleton-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.skeleton-price {
    width: 30%;
    height: 20px;
}

.skeleton-btn {
    width: 85px;
    height: 32px;
    border-radius: 8px;
}

.skeleton-image,
.skeleton-text,
.skeleton-btn,
.skeleton-image-detail,
.skeleton-title-detail,
.skeleton-desc-detail-1,
.skeleton-desc-detail-2,
.skeleton-desc-detail-3,
.skeleton-rating-detail,
.skeleton-price-detail,
.skeleton-btn-detail {
    background: linear-gradient(90deg, var(--surface-soft) 25%, var(--border) 50%, var(--surface-soft) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-detail {
    border: none;
    box-shadow: none;
    background: transparent;
}

.skeleton-image-detail {
    width: 100%;
    height: 400px;
    border-radius: 16px;
}

.skeleton-title-detail {
    width: 70%;
    height: 32px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.skeleton-desc-detail-1,
.skeleton-desc-detail-2,
.skeleton-desc-detail-3 {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-desc-detail-1 { width: 100%; }
.skeleton-desc-detail-2 { width: 95%; }
.skeleton-desc-detail-3 { width: 60%; margin-bottom: 24px; }

.skeleton-rating-detail {
    width: 40%;
    height: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.skeleton-price-detail {
    width: 25%;
    height: 28px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.skeleton-btn-detail {
    width: 140px;
    height: 46px;
    border-radius: 24px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   Sleek Shop Filters Redesign
   ========================================================================== */
.shop-filters {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(9, 9, 11, 0.02);
}

.shop-filters input[type="text"],
.shop-filters select {
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    background: var(--surface-soft);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-filters input[type="text"] {
    flex: 2;
}

.shop-filters select {
    flex: 1;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2371717A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.shop-filters input[type="text"]:focus,
.shop-filters select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(185, 147, 90, 0.15);
}

/* ==========================================================================
   Product Detail Page Redesign
   ========================================================================== */
.product-detail-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(9, 9, 11, 0.03);
    margin-bottom: 60px;
}

.product-image-section {
    position: sticky;
    top: 100px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-image-section:hover .product-detail-image {
    transform: scale(1.03);
}

.product-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.product-detail-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.product-info-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.03em;
}

.product-description {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent-hover);
    padding: 8px 16px;
    border-radius: 100px;
    width: fit-content;
}

.product-price {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-price h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.product-price-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    align-items: center;
}

.product-actions > * {
    flex: 1;
    min-width: 0;
}

.product-actions .cart-btn-wrapper {
    display: flex;
    width: 100%;
}

.product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    border-radius: 14px;
    font-size: 15px;
    height: 50px;
    box-sizing: border-box;
    flex: 1;
}

.product-actions .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.product-actions .btn-outline:hover {
    border-color: var(--primary);
    background: var(--surface-soft);
}

/* ==========================================================================
   Home/Shop Product Card Redesign
   ========================================================================== */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(9, 9, 11, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(9, 9, 11, 0.06);
    border-color: rgba(185, 147, 90, 0.3);
}

.product-card .image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4;
    overflow: hidden;
    background: var(--surface-soft);
}

.product-card img,
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-info {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.product-card .category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0;
}

.product-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.product-card .rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.product-card .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.product-card .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-card .btn-buy-now {
    font-size: 12px;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
    border: none;
}

.product-card .btn-buy-now:hover {
    background: var(--primary-soft);
}

.product-card .btn-add-cart {
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border: none;
}

.product-card .btn-add-cart:hover {
    background: var(--accent);
    color: #ffffff;
}

/* Sticky Header Portal */
#header-portal {
    display: contents;
}

/* Inline Quantity Selector Controls */
.cart-btn-wrapper {
    width: 100%;
}

.inline-qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    border: 1px solid rgba(185, 147, 90, 0.25);
    height: 38px;
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%;
}

.qty-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    padding: 0;
}

.qty-control-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.qty-control-btn:active {
    transform: scale(0.95);
}

.qty-count {
    font-weight: 700;
    color: var(--primary);
    min-width: 20px;
    text-align: center;
}

.qty-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.detail-qty-control {
    height: 50px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 15px;
    background: var(--accent-soft);
    justify-content: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.detail-qty-control .qty-control-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 16px;
}

.detail-qty-control .qty-count {
    font-size: 16px;
    min-width: 24px;
}

.detail-qty-control .qty-text {
    font-size: 13px;
}

.terms-checkbox-wrapper {
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    position: relative;
    padding-left: 36px;
    -webkit-user-select: none;
    user-select: none;
}

.terms-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.terms-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background: var(--surface-soft);
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.terms-checkbox:hover input ~ .checkmark {
    border-color: var(--accent);
}

.terms-checkbox input:checked ~ .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.terms-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-checkbox input:checked ~ .checkmark::after {
    display: block;
}

.terms-checkbox a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.terms-checkbox a:hover {
    color: var(--accent-hover);
}

.terms-checkbox input:invalid ~ .checkmark {
    border-color: #e53e3e;
}

/* ==========================================================================
   Professional Checkout Redesign
   ========================================================================== */

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

.checkout-subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: start;
}

.checkout-col-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-col-right {
    position: sticky;
    top: 100px;
}

.checkout-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 8px 30px rgba(9, 9, 11, 0.03);
    transition: box-shadow 0.2s ease;
}

.checkout-card:hover {
    box-shadow: 0 12px 36px rgba(9, 9, 11, 0.06);
}

.checkout-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.checkout-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-field-full {
    grid-column: 1 / -1;
}

.checkout-field-zip {
    max-width: 180px;
}

.checkout-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.checkout-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.checkout-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(185, 147, 90, 0.12);
}

.checkout-field input::placeholder {
    color: #a1a1aa;
}

.checkout-summary-card {
    position: relative;
}

.checkout-summary-card .checkout-card-title {
    margin-bottom: 16px;
}

/* Order Summary Items */
#order-summary {
    margin-bottom: 0;
}

.checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkout-summary-items::-webkit-scrollbar {
    width: 4px;
}

.checkout-summary-items::-webkit-scrollbar-track {
    background: transparent;
}

.checkout-summary-items::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.checkout-summary-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--surface-soft);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.checkout-summary-item-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface);
}

.checkout-summary-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-summary-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-summary-item-qty {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.checkout-summary-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

/* Checkout quantity controls */
.checkout-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.checkout-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
    line-height: 1;
}

.checkout-qty-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.checkout-qty-btn:active {
    background: var(--border);
}

.checkout-qty-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--surface);
    -webkit-user-select: none;
    user-select: none;
}

/* Checkout item right side (price + remove) */
.checkout-summary-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

/* Remove item button */
.checkout-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
}

.checkout-item-remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

.checkout-item-remove:active {
    background: #fee2e2;
}

.checkout-summary-totals {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.checkout-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text);
}

.checkout-summary-total-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 4px;
}

.checkout-summary-total-row.total .checkout-summary-total-amount {
    color: var(--accent);
}

.checkout-summary-total-label {
    color: var(--muted);
    font-weight: 500;
}

.checkout-summary-total-amount {
    font-weight: 700;
}

.checkout-summary-free {
    color: #16a34a;
    font-weight: 600;
}

.btn-checkout-place {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    background: var(--accent);
    color: #09090b;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-checkout-place:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(185, 147, 90, 0.25);
}

.btn-checkout-place svg {
    flex-shrink: 0;
}

.checkout-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    margin: 16px 0 0;
    text-align: center;
}

.checkout-secure-note svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Empty cart state */
.checkout-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--muted);
}

.checkout-empty p {
    margin: 0 0 16px;
    font-size: 14px;
}

.checkout-empty .btn {
    display: inline-flex;
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .checkout-col-right {
        position: static;
    }

    .checkout-card {
        padding: 24px 20px;
    }
}

@media (max-width: 520px) {
    .checkout-field-group {
        grid-template-columns: 1fr;
    }
    
    .checkout-field-zip {
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    #related-products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    #trending-products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
