/* /Namsa Florals storefront design system */
:root {
    --primary-color: #b42363;
    --primary-dark: #8d174b;
    --primary-soft: #f9e9f0;
    --secondary-color: #d7a541;
    --success-color: #21845a;
    --ink: #211a1f;
    --muted: #71666d;
    --bg: #fcfafb;
    --surface: #ffffff;
    --border: #eadfe4;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow-sm: 0 2px 14px rgba(52, 27, 40, 0.06);
    --shadow-md: 0 18px 45px rgba(52, 27, 40, 0.11);
    --font-display: 'Manrope', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

html {
    scroll-padding-top: 110px;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 5%, rgba(180, 35, 99, 0.045), transparent 28rem),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.logo,
.product-price {
    font-family: var(--font-display);
    font-style: normal;
    letter-spacing: -0.035em;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 700;
}

a, button, input, select, textarea {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(180, 35, 99, 0.22);
    outline-offset: 3px;
}

.announcement-bar {
    position: relative;
    z-index: 1031;
    padding: 7px 20px;
    color: #fff;
    background: #251b21;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.015em;
}

.announcement-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.announcement-item i {
    color: #f2b8d0;
}

.announcement-link {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.announcement-link:hover {
    color: #f7d7e4;
}

.header {
    padding: 11px 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(77, 43, 60, 0.08);
    box-shadow: 0 5px 24px rgba(43, 27, 35, 0.045);
}

.header-content {
    max-width: 1280px;
    padding: 0 24px;
    gap: 24px;
}

.logo {
    flex: 0 0 auto;
    min-width: max-content;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-img {
    display: block;
    height: 45px;
}

.logo--image-only .logo-img {
    height: 52px;
}

.nav-group {
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    gap: 2px;
}

.nav-links a {
    position: relative;
    padding: 9px 10px;
    border-radius: 999px;
    color: #645a60;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-weight: 700;
}

.search-cart {
    gap: 10px;
}

.search-form {
    position: relative;
    gap: 0;
}

.search-input {
    width: 208px;
    height: 42px;
    padding: 9px 45px 9px 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.86rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
    color: #9b9197;
}

.search-input:focus {
    border-color: rgba(180, 35, 99, 0.6);
    box-shadow: 0 0 0 4px rgba(180, 35, 99, 0.09);
    outline: none;
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-btn:hover {
    color: #fff;
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.04);
}

.search-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cart-link {
    min-height: 42px;
    padding: 8px 13px;
    gap: 7px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 700;
}

.cart-link:hover {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: #efcad9;
}

.cart-link i {
    font-size: 1rem;
}

.cart-badge {
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    box-shadow: 0 0 0 2px #fff;
    font-size: 0.66rem;
    font-weight: 800;
}

main {
    min-height: 55vh;
}

.layout-alert {
    margin-top: 20px;
    padding: 14px 18px;
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-nav {
    margin-bottom: 0 !important;
    padding: 13px 0 !important;
    background: rgba(255, 255, 255, 0.75) !important;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
    max-width: 1240px !important;
    padding: 0 24px !important;
}

.breadcrumb-list {
    font-size: 0.82rem;
    font-weight: 600;
}

.breadcrumb-link {
    color: var(--primary-dark) !important;
}

.products-container {
    max-width: 1240px;
    margin: 48px auto;
    padding: 0 24px;
}

.products-grid {
    gap: 24px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 5px 18px rgba(52, 27, 40, 0.055);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    border-color: #e8c7d5;
    box-shadow: 0 20px 44px rgba(52, 27, 40, 0.12);
    transform: translateY(-6px);
}

.product-media-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f7f1f4;
}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}

.product-card:hover .product-image {
    transform: scale(1.035);
}

.product-card-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 2;
    max-width: calc(100% - 26px);
    padding: 6px 10px;
    overflow: hidden;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 3px 14px rgba(41, 24, 33, 0.1);
    backdrop-filter: blur(8px);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-info {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-name {
    min-height: 2.8em;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.4;
}

.product-name-link {
    color: inherit;
    text-decoration: none;
}

.product-name-link:hover {
    color: var(--primary-dark);
}

.product-price {
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-info form,
.product-info > .buy-now-btn {
    margin-top: auto;
}

.buy-now-btn {
    min-height: 45px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: var(--ink) !important;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.buy-now-btn:hover {
    color: #fff;
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(141, 23, 75, 0.22);
}

.buy-now-btn:disabled {
    color: #9d9398 !important;
    background: #f2eef0 !important;
    border-color: #eee6e9;
}

.section-heading {
    margin-bottom: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading-copy {
    max-width: 620px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.105em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: '';
    width: 22px;
    height: 2px;
    background: currentColor;
}

.section-title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: var(--primary-color);
}

.card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-header {
    color: var(--ink);
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.form-label {
    color: #4f454b;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 45px;
    padding: 10px 13px;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid #ddd1d7;
    border-radius: 10px;
}

textarea.form-control {
    min-height: 110px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(180, 35, 99, 0.65);
    box-shadow: 0 0 0 4px rgba(180, 35, 99, 0.09);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.search-results-bar {
    border: 1px solid var(--border);
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm);
}

footer {
    position: relative;
    margin-top: 80px;
    padding: 62px 0 24px;
    overflow: hidden;
    background: #231a20;
}

footer::before {
    content: '';
    position: absolute;
    top: -170px;
    right: -130px;
    width: 390px;
    height: 390px;
    border: 70px solid rgba(180, 35, 99, 0.09);
    border-radius: 50%;
}

.footer-content {
    position: relative;
    max-width: 1240px;
    padding: 0 24px;
}

.footer-section {
    margin-bottom: 24px;
}

.footer-section h5 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.footer-description,
.footer-section p,
.footer-links a {
    color: #cfc4ca;
}

.footer-description {
    max-width: 360px;
    line-height: 1.75;
}

.footer-links {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 24px;
    list-style: none;
}

.footer-links a {
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    margin-bottom: 18px;
    display: grid;
    gap: 8px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #cfc4ca;
    font-size: 0.86rem;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-contact i {
    color: #ef9fc1;
}

.social-links {
    justify-content: flex-start;
    gap: 9px;
}

.social-link {
    width: 39px;
    height: 39px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1rem;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 22px;
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #a99ba3 !important;
    font-size: 0.76rem;
}

.footer-credit {
    color: #d9cdd3 !important;
    border: 0;
}

.scroll-top-btn,
.float-whatsapp {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(33, 22, 28, 0.2);
}

.scroll-top-btn {
    background: var(--ink);
}

.add-to-cart-toast {
    bottom: 28px !important;
    padding: 13px 18px !important;
    background: var(--ink) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(33, 22, 28, 0.24) !important;
    font-size: 0.86rem !important;
    font-weight: 700;
}

.add-to-cart-toast-error {
    background: #a72f3c !important;
}

@media (max-width: 1199.98px) {
    .header-content {
        gap: 14px;
    }

    .nav-links a {
        padding-inline: 7px;
        font-size: 0.8rem;
    }

    .search-input {
        width: 175px;
    }
}

@media (max-width: 991.98px) {
    .announcement-inner {
        justify-content: center;
    }

    .announcement-item:last-child {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .announcement-bar {
        padding: 6px 14px;
        text-align: center;
    }

    .header {
        padding: 9px 0;
    }

    .header-content {
        padding: 0 16px;
    }

    .logo-img {
        height: 38px;
    }

    .logo--image-only .logo-img {
        height: 44px;
    }

    .mobile-search-toggle,
    .mobile-cart-link,
    .nav-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        color: var(--ink);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 50%;
    }

    .nav-group {
        margin-top: 10px;
        padding: 12px 0 2px;
        gap: 8px;
        border-color: var(--border);
    }

    .nav-links {
        gap: 3px;
    }

    .nav-links a {
        padding: 11px 13px;
        font-size: 0.88rem;
    }

    .nav-links a.active {
        background: var(--primary-soft);
    }

    .nav-group .search-cart {
        display: none;
    }

    .mobile-search-bar {
        margin-top: 9px;
        padding: 10px 0 2px;
        background: transparent;
        border-color: var(--border);
    }

    .mobile-search-bar .search-input {
        height: 44px;
        padding-right: 88px;
        background: #fff;
    }

    .mobile-search-bar .search-btn {
        top: 50%;
        right: 4px;
        width: auto;
        height: 36px;
        padding: 0 13px;
        border-radius: 999px;
        font-size: 0.78rem;
    }

    .mobile-search-bar .search-btn i {
        display: none;
    }

    .mobile-search-bar .search-btn-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
    }

    .products-container {
        margin: 34px auto;
        padding: 0 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .product-info {
        padding: 14px;
    }

    .product-name {
        min-height: 2.7em;
        font-size: 0.88rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    footer {
        margin-top: 56px;
        padding-top: 44px;
    }
}

@media (max-width: 479.98px) {
    .announcement-bar {
        font-size: 0.69rem;
    }

    .header-content {
        gap: 8px;
    }

    .mobile-search-toggle,
    .mobile-cart-link,
    .nav-toggle {
        width: 37px;
        height: 37px;
        font-size: 1.05rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .product-card {
        border-radius: 15px;
    }

    .product-info {
        padding: 11px;
    }

    .product-name {
        font-size: 0.79rem;
    }

    .product-price {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .product-card-badge {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 0.59rem;
    }

    .buy-now-btn {
        min-height: 40px;
        padding: 9px 11px;
        font-size: 0.76rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

.legal-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 58px 24px 22px;
}

.legal-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.legal-hero h1 {
    margin: 7px 0 0;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.legal-updated {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.legal-nav {
    position: sticky;
    top: 125px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.legal-nav strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-nav a {
    display: block;
    padding: 7px 0;
    color: var(--muted);
    font-size: 0.79rem;
    font-weight: 650;
    text-decoration: none;
}

.legal-nav a:hover { color: var(--primary-dark); }

.legal-content {
    padding: clamp(26px, 5vw, 52px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(52, 27, 40, 0.065);
}

.legal-section {
    padding: 0 0 28px;
    margin: 0 0 28px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 130px;
}

.legal-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.legal-section h2 { margin: 0 0 12px; font-size: 1.18rem; font-weight: 800; }
.legal-section p, .legal-section li { color: #5f565e; font-size: 0.9rem; line-height: 1.75; }
.legal-section ul { margin: 0; padding-left: 1.2rem; }
.legal-section a { color: var(--primary-dark); font-weight: 700; }
.legal-callout { padding: 18px; color: #5b3949; background: var(--primary-soft); border: 1px solid #efd5e1; border-radius: 14px; }

@media (max-width: 760px) {
    .legal-page { padding: 38px 14px 10px; }
    .legal-hero { align-items: flex-start; flex-direction: column; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-nav { position: static; display: flex; gap: 12px; overflow-x: auto; }
    .legal-nav strong { display: none; }
    .legal-nav a { flex: 0 0 auto; padding: 5px 0; }
    .legal-content { border-radius: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
