:root {
    --t7-bg: #f6f7fb;
    --t7-bg-soft: #ffffff;
    --t7-glass: rgba(255, 255, 255, 0.72);
    --t7-glass-strong: rgba(255, 255, 255, 0.92);
    --t7-glass-border: rgba(15, 23, 42, 0.08);
    --t7-accent: #6366f1;
    --t7-accent-secondary: #ec4899;
    --t7-accent-soft: rgba(99, 102, 241, 0.12);
    --t7-accent-glow: rgba(99, 102, 241, 0.28);
    --t7-text: #0f172a;
    --t7-muted: #64748b;
    --t7-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body.theme7-body {
    margin: 0;
    font-family: "Outfit", Arial, sans-serif;
    background: var(--t7-bg);
    color: var(--t7-text);
    background-image:
        radial-gradient(ellipse 80% 50% at 15% -10%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 95% 100%, rgba(236, 72, 153, 0.1), transparent);
}

.theme7-page-wrap {
    min-height: 100vh;
    padding-top: 72px;
}

.theme7-navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--t7-glass-border);
    z-index: 1030;
}

.theme7-navbar .container-fluid {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 8px;
}

.theme7-navbar .navbar-brand {
    margin: 0;
    justify-self: center;
    max-width: calc(100% - 20px);
}

.theme7-navbar .navbar-brand img {
    max-height: 52px;
    width: auto;
}

.theme7-navbar .navbar-brand-text {
    color: var(--t7-text);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.theme7-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--t7-glass);
    border: 1px solid var(--t7-glass-border);
    color: var(--t7-text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.theme7-icon-btn:hover {
    background: var(--t7-glass-strong);
    border-color: var(--t7-accent);
    box-shadow: 0 0 16px var(--t7-accent-soft);
}

.theme7-masa-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--t7-accent-soft);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: var(--t7-accent);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.theme7-offcanvas {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--t7-text);
    width: min(320px, 88vw);
    border-right: 1px solid var(--t7-glass-border);
}

.theme7-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--t7-glass-border);
    padding: 18px 20px;
}

.theme7-offcanvas .offcanvas-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.theme7-side-nav .theme7-side-link,
.theme7-side-subnav .theme7-side-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--t7-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.92rem;
    line-height: 1.4;
}

.theme7-side-nav .theme7-side-link:hover,
.theme7-side-subnav .theme7-side-sublink:hover {
    background: var(--t7-accent-soft);
    color: var(--t7-accent);
}

.theme7-side-nav .theme7-side-static {
    color: var(--t7-muted);
}

.theme7-side-nav .theme7-side-link i,
.theme7-side-subnav .theme7-side-sublink i {
    width: 18px;
    text-align: center;
    color: var(--t7-accent);
}

.theme7-side-accordion {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.theme7-side-accordion .accordion-item {
    background: transparent;
    border: 0;
}

.theme7-side-accordion-btn {
    background: transparent !important;
    color: var(--t7-text) !important;
    box-shadow: none !important;
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 600;
}

.theme7-side-accordion-btn:not(.collapsed) {
    background: var(--t7-glass) !important;
}

.theme7-side-accordion-btn::after {
    filter: none;
}

.theme7-side-subnav .theme7-side-sublink {
    padding-left: 50px;
    font-size: 0.88rem;
}

/* Carousel — image sizing: public/front/css/theme-carousel.css */

.theme7-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.2);
    border: 0;
}

.theme7-carousel .carousel-indicators .active {
    background-color: var(--t7-accent);
}

.theme7-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 16px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.72));
}

.theme7-slide-caption p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.theme7-lang-bar {
    position: relative;
    min-height: 48px;
    background: var(--t7-bg-soft);
    border-bottom: 1px solid var(--t7-glass-border);
}

.theme7-lang-switcher {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--t7-glass-border);
}

.theme7-lang-btn {
    border: 0;
    background: transparent;
    color: var(--t7-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.theme7-lang-btn.active {
    background: var(--t7-accent-soft);
    color: var(--t7-accent);
}

.theme7-content-section {
    padding: 28px 0 48px;
}

.theme7-category-card {
    display: block;
    position: relative;
    min-height: 220px;
    border-radius: 20px;
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
    contain: paint;
    text-decoration: none;
    background-color: var(--t7-bg-soft);
    border: none;
    box-shadow: inset 0 0 0 1px var(--t7-glass-border), var(--t7-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.theme7-category-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
}

.theme7-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 15%, rgba(15, 23, 42, 0.22) 68%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.theme7-category-card.no-image {
    background: linear-gradient(135deg, #ffffff, rgba(99, 102, 241, 0.1));
}

.theme7-category-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35), 0 12px 40px rgba(99, 102, 241, 0.15);
}

.theme7-category-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
    background: var(--t7-bg-soft);
    border-top: 1px solid var(--t7-glass-border);
    border-radius: 0 0 20px 20px;
}

.theme7-category-glass h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--t7-text);
}

.theme7-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--t7-accent-soft);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: var(--t7-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.theme7-page-title {
    padding: 20px 0 8px;
}

.theme7-page-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 12px;
}

.theme7-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--t7-glass);
    border: 1px solid var(--t7-glass-border);
    color: var(--t7-accent);
    text-decoration: none;
    flex-shrink: 0;
}

.theme7-page-title-text h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.theme7-page-title-text .subtitle {
    color: var(--t7-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.theme7-product-card {
    background: var(--t7-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--t7-glass-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--t7-shadow);
    height: 100%;
    transition: transform 0.25s, border-color 0.25s;
}

.theme7-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
}

.theme7-product-card .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.theme7-product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--t7-bg-soft);
}

.theme7-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme7-product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.theme7-product-body h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
}

.theme7-product-body p {
    margin: 0 0 12px;
    color: var(--t7-muted);
    font-size: 0.88rem;
    flex: 1;
}

.theme7-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.theme7-product-body .price {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--t7-accent);
}

.theme7-product-kcal {
    font-size: 0.78rem;
    color: var(--t7-muted);
}

.theme7-detail-wrap {
    padding-bottom: 48px;
}

.theme7-detail-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--t7-glass-border);
    box-shadow: var(--t7-shadow);
}

.theme7-detail-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.theme7-detail-box {
    background: var(--t7-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--t7-glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--t7-shadow);
}

.theme7-product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.theme7-detail-box .price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--t7-accent);
    margin: 12px 0;
}

.theme7-muted {
    color: var(--t7-muted);
}

.theme7-description {
    line-height: 1.65;
    color: rgba(15, 23, 42, 0.88);
}

.theme7-variation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--t7-glass-border);
}

.theme7-variation:last-child {
    border-bottom: 0;
}

.theme7-variation .price {
    font-size: 1rem;
    white-space: nowrap;
}

.theme7-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--t7-muted);
    background: var(--t7-glass);
    border: 1px dashed var(--t7-glass-border);
    border-radius: 16px;
}

.theme7-footer {
    margin-top: auto;
    padding: 28px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--t7-glass-border);
}

.theme7-footer a {
    color: var(--t7-text);
    text-decoration: none;
}

.theme7-footer a:hover {
    color: var(--t7-accent);
}

@media (min-width: 768px) {
    .theme7-category-card {
        min-height: 260px;
    }
}
