* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-color); color: var(--text-color); }

/* Font presets */
.font-system { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-sans { font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-serif { font-family: "Georgia", "Times New Roman", serif; }

a { color: var(--secondary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
    position: absolute;
    left: -1000px;
    top: 0;
    background: #111827;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
}
.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}
.brand-name { font-weight: 700; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-tagline { font-size: var(--brand-tagline-size); color: #9ca3af; }
.nav-main ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 1rem; }
.nav-item { position: relative; }
.nav-item a { color: var(--text-color); padding: 0.25rem 0; display: inline-block; }
.nav-item .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    padding: 0.5rem 0;
    list-style: none;
    min-width: 12rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.nav-item:hover .dropdown { display: block; }
.nav-item .dropdown li a {
    display: block;
    padding: 0.4rem 1rem;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lang-switch a {
    color: #9ca3af;
    font-size: 0.85rem;
    padding: 0 0.25rem;
}
.lang-switch a.active {
    color: #e5e7eb;
    font-weight: 600;
}
.user-menu a { margin-left: 0.5rem; font-size: 0.9rem; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    padding: 0.25rem 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #f9fafb;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-secondary {
    background: transparent;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.hero-slider {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem 3rem;
    background: radial-gradient(circle at top, var(--primary-color), var(--bg-color));
}
.hero-slides {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-slide {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.hero-slide.active {
    display: flex;
}
.hero-content,
.hero-image {
    flex: 1 1 0;
    min-width: 260px;
    max-width: 540px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.hero-content p { max-width: 36rem; color: #9ca3af; }
.hero-image img { max-width: 480px; width: 100%; height: auto; border-radius: 1rem; object-fit: cover; }
.hero-controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}
.hero-controls button {
    background: rgba(15,23,42,0.8);
    color: #e5e7eb;
    border-radius: 999px;
    border: 1px solid #4b5563;
    padding: 0.25rem 0.75rem;
}
.scroll-down {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.75rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.home-sections {
    padding: 2rem 1rem;
    display: grid;
    gap: 1rem;
}
.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
}

.card-media {
    margin-bottom: 0.75rem;
    border-radius: 0.9rem;
    overflow: hidden;
    background: var(--card-bg);
}

.card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.page-header {
    padding: 2rem 1rem 1rem;
}
.page-header h1 { margin: 0; }
.page-content {
    padding: 1rem;
    max-width: 960px;
    margin: 0 auto 2rem;
}
.block { margin-bottom: 1.5rem; }
.block h2 { margin-bottom: 0.25rem; }
.block-body { color: var(--text-color); opacity: 0.9; }

.services-grid {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
}

.reports-list { list-style: none; padding: 0 1rem 2rem; }
.reports-list li { margin-bottom: 1.5rem; padding: 1rem; border-radius: 1rem; background: var(--card-bg); border: 1px solid var(--card-border); }

.contact-form-wrapper {
    max-width: 640px;
    margin: 0 auto 2rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
}

.auth-section {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--card-border);
}
.auth-form .form-field { margin-bottom: 0.75rem; }

.logo-size-table {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--card-border);
    background: rgba(15,23,42,0.7);
}

.logo-size-table h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.logo-size-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.logo-size-table th,
.logo-size-table td {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid rgba(148,163,184,0.35);
    text-align: left;
}

.logo-size-table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.logo-size-table tbody th {
    font-weight: 600;
    width: 6rem;
}

.logo-size-table input[type="number"] {
    width: 4.5rem;
    padding: 0.25rem 0.35rem;
    font-size: 0.8rem;
}

.logo-size-table .logo-size-help {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.form-field label { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--card-border);
    background: var(--bg-color);
    color: var(--text-color);
}
.form-field textarea { min-height: 120px; }

.messages {
    max-width: 960px;
    margin: 1rem auto 0;
    padding: 0 1rem;
}
.message {
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.message.success { background: #14532d; }
.message.error { background: #7f1d1d; }
.message.info { background: #1e3a8a; }

.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 1.5rem 1rem;
    margin-top: 2rem;
}
.footer-inner {
    display: grid;
    gap: 1rem;
}
.footer-logo { width: var(--footer-logo-width); height: var(--footer-logo-height); object-fit: contain; display: block; border-radius: 1.5rem; background: #f9fafb; padding: 0.25rem; }
.footer-logo-text { font-weight: 700; font-size: 1.1rem; }
.footer-tagline { color: #9ca3af; font-size: 0.9rem; }

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 70vh;
}
.admin-sidebar {
    padding: 1rem;
    border-right: 1px solid #1f2937;
    background: #020617;
}
.admin-sidebar h2 { margin-top: 0; }
.admin-sidebar ul { list-style: none; padding: 0; }
.admin-sidebar li { margin-bottom: 0.4rem; }
.admin-sidebar a { color: #e5e7eb; font-size: 0.9rem; }
.admin-main { padding: 1rem; }
.admin-grid {
    display: grid;
    gap: 1rem;
}
.admin-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
}

.admin-card-wide {
    grid-column: 1 / -1;
}

.visits-bars {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.visits-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr 3rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.visits-label {
    opacity: 0.8;
}

.visits-bar-track {
    position: relative;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.visits-bar-fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: var(--accent, #22c55e);
    border-radius: 999px;
    transition: width 0.4s ease-out;
}

.visits-count {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #1f2937;
}

.media-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.media-item {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--card-border);
}
.media-item img {
    display: block;
    max-width: 140px;
    max-height: 140px;
    margin: 0.25rem auto;
    border-radius: 0.5rem;
    object-fit: contain;
}

.color-preview {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #1f2937;
    display: inline-block;
    margin-left: 0.5rem;
}

.error { color: #fecaca; font-size: 0.8rem; }

@media (min-width: 768px) {
    .home-sections {
        max-width: 960px;
        margin: 0 auto 2rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .services-grid {
        max-width: 960px;
        margin: 0 auto 2rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-inner {
        grid-template-columns: 2fr 2fr 1fr;
        max-width: 960px;
        margin: 0 auto;
    }
    .hero-content h1 { font-size: 2.6rem; }
}

@media (max-width: 767px) {
    .nav-main { display: none; }
    .nav-main.open { display: block; }
    .nav-main ul { flex-direction: column; }
    .nav-toggle { display: block; }
    .hero-slide {
        flex-direction: column;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid #1f2937;
    }
}


/* Modern header / nav styling */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: linear-gradient(90deg, rgba(15,23,42,0.92), rgba(15,23,42,0.75));
    border-bottom: 1px solid rgba(148,163,184,0.35);
}

.theme-light .site-header {
    background: rgba(255,255,255,0.9);
    border-bottom-color: rgba(148,163,184,0.5);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.brand-logo {
    width: var(--header-logo-width);
    height: var(--header-logo-height);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: none;
    padding: 0.25rem;
}

.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.brand-logo span {
    font-weight: 600;
    font-size: 1rem;
}

.brand-text-main {
    font-size: var(--brand-title-size);
}

.brand-tagline {
    font-size: var(--brand-tagline-size);
    opacity: 0.8;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-main a {
    position: relative;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.nav-main a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.22s ease;
}

.nav-main a:hover::after,
.nav-main a.active::after {
    width: 100%;
}

/* Footer logo larger + modern footer */
.site-footer {
    border-top: 1px solid rgba(148,163,184,0.35);
    padding: 2.5rem 1.25rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(0,3fr);
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.45);
    background: radial-gradient(circle at 20% 20%, var(--primary-color), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text-main {
    font-size: 1rem;
    font-weight: 600;
}

.footer-meta {
    font-size: 0.82rem;
    opacity: 0.85;
}

.footer-contact {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-inner {
        grid-template-columns: minmax(0,1fr);
    }
    .footer-logo {
        width: 64px;
        height: 64px;
    }
}


/* Language dropdown */
.lang-switcher {
    position: relative;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: transparent;
    color: var(--text-color);
    font-size: 0.8rem;
    cursor: pointer;
}

.lang-caret {
    font-size: 0.7rem;
    opacity: 0.7;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 115%;
    background: var(--card-bg);
    border-radius: 0.5rem;
    border: 1px solid var(--card-border);
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    min-width: 80px;
    display: none;
    z-index: 60;
}

.lang-menu[data-open="1"] {
    display: block;
}

.lang-menu li a {
    display: block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-color);
}

.lang-menu li a.active {
    font-weight: 600;
}

/* User menu spacing */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.user-menu a {
    margin-left: 0;
}


/* Block comments */
.block-comments {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(148,163,184,0.5);
    font-size: 0.9rem;
}
.block-comments-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.block-comment {
    margin-bottom: 0.75rem;
}
.block-comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.8;
}
.block-comment-text {
    margin: 0.25rem 0 0.5rem;
}
.block-comments-empty {
    font-size: 0.85rem;
    opacity: 0.75;
}
.block-comment-form .form-field label {
    font-size: 0.8rem;
}
.block-comment-form textarea {
    font-size: 0.9rem;
}


/* Light theme adjustments */
.theme-light .hero-slider {
    background: radial-gradient(circle at top, #e5e7eb, #f9fafb);
}

.theme-light .hero-controls button {
    background: rgba(15,23,42,0.06);
    color: #0f172a;
    border-color: #cbd5f5;
}

.theme-light .scroll-down {
    color: #6b7280;
}


.block-media {
    margin: 0.75rem 0 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
}
.block-media img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    display: block;
    object-fit: cover;
}
.block-file a {
    font-size: 0.9rem;
}


.block-comments-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    margin-top: 0.6rem;
}
.block-comments-toggle .icon {
    font-size: 0.9rem;
}
.block-comments-body {
    margin-top: 0.75rem;
    display: none;
}
.block-comments-body[data-open="1"] {
    display: block;
}
.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-right: 4px;
    border: 1px solid rgba(15,23,42,0.2);
}


/* Media size helpers for images & video blocks */
.block.media-sm .block-media img,
.block.media-sm .video-wrapper {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.block.media-md .block-media img,
.block.media-md .video-wrapper {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.block.media-lg .block-media img,
.block.media-lg .video-wrapper {
    max-width: 100%;
}


.service-media {
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
}
.service-media img {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
    object-fit: cover;
}


/* Small inline button styled as link (used in admin lists) */
.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.link-button {
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 0;
    margin-left: 0.5rem;
    cursor: pointer;
    font: inherit;
}

.btn-danger {
    background: #7f1d1d;
    color: #fee2e2;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}


.login-required-note {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}


/* --- Shop / Marketplace nav item ------------------------------------- */

.nav-item-shop > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.nav-item-shop .nav-icon {
    font-size: 0.95rem;
}

/* --- Dedicated shop layout ------------------------------------------- */

.shop-header {
    background: var(--header-bg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.6);
}

.shop-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shop-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.shop-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.12);
    font-size: 1.15rem;
}

.shop-brand-text {
    font-weight: 600;
    font-size: 1rem;
}

.shop-brand-label {
    opacity: 0.8;
    font-weight: 400;
    margin-left: 0.35rem;
}

.shop-nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shop-nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.shop-link-cart {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.shop-page-wrapper {
    max-width: 1100px;
    margin: 1.5rem auto 3rem;
    padding: 0 1.5rem;
}

/* --- Shop sections & grids ------------------------------------------- */

.shop-hero {
    margin-bottom: 1.5rem;
}

.shop-hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.shop-hero-subtitle {
    opacity: 0.85;
    max-width: 32rem;
}

.shop-section {
    margin-bottom: 2.5rem;
}

.shop-section-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.shop-category-grid,
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.shop-category-card {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease,
        border-color 0.12s ease;
}

.shop-category-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.shop-category-card h3 {
    margin-bottom: 0.35rem;
}

.shop-category-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
    border-color: rgba(96, 165, 250, 0.8);
}

/* --- Product cards ---------------------------------------------------- */

.shop-product-card {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease,
        border-color 0.12s ease;
}

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

.shop-product-image-wrapper {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
}

.shop-product-image-wrapper img,
.shop-product-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    font-weight: 600;
    font-size: 1.2rem;
}

.shop-product-body {
    padding: 0.75rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shop-product-title {
    font-size: 1rem;
}

.shop-product-price {
    font-weight: 600;
}

.shop-product-short {
    opacity: 0.85;
    font-size: 0.9rem;
}

.shop-product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
    border-color: rgba(96, 165, 250, 0.8);
}

/* --- Product detail --------------------------------------------------- */

.shop-breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.shop-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.shop-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
}

.shop-product-main-image {
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.shop-product-main-image img {
    width: 100%;
    display: block;
}

.shop-product-main-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.7);
    font-size: 2rem;
    font-weight: 600;
}

.shop-product-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.shop-product-thumbnails img {
    width: 64px;
    height: 64px;
    border-radius: 0.45rem;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.shop-product-info h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.shop-product-stock {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.shop-product-stock.in-stock {
    color: #22c55e;
}

.shop-product-stock.out-of-stock {
    color: #f97316;
}

.shop-add-to-cart-form {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.shop-add-to-cart-form input[type='number'] {
    max-width: 5rem;
}

/* --- Cart & checkout -------------------------------------------------- */

.shop-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-cart-table th,
.shop-cart-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.shop-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.shop-checkout-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.shop-checkout-summary {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-checkout-summary li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

.shop-checkout-total {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-weight: 600;
}

.shop-payment-hint {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.btn-full {
    width: 100%;
}

/* --- Responsive tweaks ------------------------------------------------ */

@media (max-width: 900px) {
    .shop-header-inner {
        padding-inline: 1rem;
    }
    .shop-product-detail,
    .shop-checkout-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .shop-page-wrapper {
        padding-inline: 1rem;
    }
    .shop-nav-links {
        gap: 0.5rem;
    }
    .shop-link-cart {
        padding-inline: 0.6rem;
    }
}
