:root {
    --bg: #1E2A78;
    --paper: rgba(255, 255, 255, 0.84);
    --panel: #ffffff;
    --text: #1E2A78;
    --muted: #1E2A78;
    --accent: #1E2A78;
    --gold: #1E2A78;
    --border: rgba(30, 42, 120, 0.12);
    --shadow: 0 22px 45px rgba(30, 42, 120, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(199, 206, 248, 0.18), transparent 24%),
        linear-gradient(180deg, #e8e9ee 0%, #e2e5fc 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.navbar {
    background: var(--paper) !important;
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text) !important;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E2A78, #1E2A78);
    color: #fff;
    font-size: 20px;
}

.brand-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand-caption {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    width: min(420px, 100%);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input,
.search-box select,
.filter-action,
button,
input,
textarea {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    outline: none;
}

.search-box input {
    width: 100%;
    padding: 13px 16px 13px 42px;
}

button,
.filter-action {
    border: none;
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

button:hover,
.filter-action:hover {
    background: #1E2A78;
}

.hero-card,
.mini-card,
.card,
.product-card,
.slider-product-card,
footer,
.filter-bar {
    box-shadow: var(--shadow);
}

.hero-card,
.mini-card,
.product-card,
.slider-product-card,
.card {
    background: var(--panel);
    border-radius: 28px;
}

.card,
.product-card,
.slider-product-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover,
.product-card:hover,
.slider-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 52px rgba(30, 42, 120, 0.16);
}

.card img,
.product-card img,
.slider-product-card img {
    width: 100%;
    object-fit: cover;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    overflow: hidden;
    margin: 20px 0;
}

.filter-segment {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255, 255, 255, 0.58);
    border-right: 1px solid var(--border);
}

.filter-segment:last-child {
    border-right: none;
}

.filter-segment select,
.filter-action {
    width: 100%;
    min-height: 62px;
    padding: 0 48px 0 20px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.filter-segment::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

footer {
    margin: 34px 0 26px;
    background: #1E2A78;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    padding: 26px;
    text-align: center;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: #1E2A78;
}

.product-page-shell {
    width: min(1140px, calc(100% - 32px));
    margin: 28px auto 54px;
}

.product-panel {
    display: grid;
    grid-template-columns: 1.28fr 0.72fr;
    gap: 32px;
    align-items: start;
}

.product-panel .gallery,
.product-panel .details {
    background: var(--panel);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.product-panel .gallery {
    padding: 24px;
}

.product-panel .main-image {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-panel .main-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-panel .main-image img:hover {
    transform: scale(1.03);
}

.thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.thumbs img {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumbs img:hover,
.thumbs img.active {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.details {
    padding: 32px;
}

.breadcrumb-text {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.breadcrumb-text a {
    color: var(--text);
    text-decoration: none;
}

.breadcrumb-text a:hover {
    color: var(--accent);
}

.details h3 {
    font-size: clamp(2rem, 2.5vw, 2.6rem);
    margin: 0 0 18px;
    letter-spacing: 0.02em;
}

.price-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 16px;
}

.price-box .new {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
}

.price-box .old {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 1rem;
}

.rating {
    color: #1E2A78;
    font-size: 1.1rem;
    margin-bottom: 22px;
}

.description {
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 26px;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.meta-item {
    background: rgba(30, 42, 120, 0.06);
    border-radius: 18px;
    padding: 16px;
    font-size: 0.95rem;
}

.section-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.colors {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.color {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #1E2A78;
}

.color.active {
    border-color: var(--accent);
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.qty-box button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
}

.qty-box input {
    width: 90px;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 12px;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1E2A78, #1E2A78);
    border: none;
    border-radius: 18px;
    font-size: 1rem;
    padding: 16px 22px;
    box-shadow: 0 20px 40px rgba(30, 42, 120, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1E2A78, #1E2A78);
}

.wishlist {
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.wishlist i {
    margin-right: 8px;
    color: #1E2A78;
}

.sticky-cart {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(660px, calc(100% - 32px));
    background: #0d2d5c;
    color: #fff;
    border-radius: 24px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 10;
    box-shadow: 0 24px 60px rgba(13, 45, 92, 0.22);
}

.sticky-cart button {
    background: #fff;
    color: #0d2d5c;
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .product-panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sticky-cart {
        width: calc(100% - 32px);
    }
}

@media (max-width: 768px) {
    .product-page-shell {
        width: 100%;
        margin-top: 16px;
        margin-bottom: 110px;
    }

    .product-panel .main-image img {
        height: 360px;
    }

    .product-panel .gallery,
    .product-panel .details {
        border-radius: 22px;
    }

    .product-panel .gallery,
    .details {
        padding: 18px;
    }

    .product-panel .main-image {
        border-radius: 18px;
    }

    .details h3 {
        font-size: 1.8rem;
    }

    .price-box .new {
        font-size: 1.7rem;
    }

    .meta-list {
        grid-template-columns: 1fr;
    }

    .thumbs {
        grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
        gap: 8px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .product-panel {
        gap: 18px;
    }

    .product-panel .main-image img {
        height: min(78vw, 300px);
    }

    .product-panel .gallery,
    .details {
        padding: 14px;
    }

    .breadcrumb-text {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .details h3 {
        font-size: 1.45rem;
        margin-bottom: 12px;
    }

    .price-box {
        gap: 0.5rem;
    }

    .price-box .new {
        font-size: 1.35rem;
    }

    .description {
        line-height: 1.6;
    }

    .qty-box {
        justify-content: center;
    }

    .sticky-cart {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        padding: 12px 14px;
        align-items: center;
    }

    .sticky-cart > div {
        min-width: 0;
        font-size: 0.9rem;
    }

    .sticky-cart strong {
        display: inline-block;
        max-width: 54vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }

    .sticky-cart button {
        flex: 0 0 auto;
        padding: 10px 14px;
    }
}

@media (max-width: 1100px) {
    .hero-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-form {
        justify-content: stretch;
    }
}

@media (max-width: 768px) {
    .site-shell {
        width: min(100% - 20px, 1220px);
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-lockup {
        justify-content: center;
        text-align: center;
    }

    .search-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .filter-segment {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .filter-segment:last-child {
        border-bottom: none;
    }

    .slider-product-card {
        min-width: 240px;
        max-width: 240px;
    }

    .hero-card,
    .mini-card,
    .product-card,
    .slider-product-card {
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1rem;
    }

    .search-box input {
        padding-left: 40px;
    }

    .slider-product-card {
        min-width: 86%;
        max-width: 86%;
    }

    .card img,
    .slider-product-card img {
        height: 210px;
    }

    footer {
        border-radius: 20px;
        padding: 20px 16px;
    }
}

@media (max-width: 600px) {
    .fa-instagram {
        font-size: 1.2rem;
    }
}
