:root {
    --primary-color: #007aff;
    --secondary-color: #5856d6;
    --text-color: #1d1d1f;
    --bg-color: #ffffff;
    --surface-color: #f5f5f7;
    --border-color: #d2d2d7;
    --accent-gradient: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-header: 'Outfit', sans-serif;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-header);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header (Cleaned up from Tilda-like structure) */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

/* Main Product Section */
.product {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

@media (max-width: 960px) {
    .product {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery__main {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--surface-color);
    position: relative;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product__info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product__title {
    font-size: 2.5rem;
    line-height: 1.1;
}

.product__price-box {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product__description {
    white-space: pre-line;
    color: #636366;
    font-size: 0.95rem;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* Product Details Section (Static instead of accordion) */
.product-details {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .product-details {
        grid-template-columns: 1fr;
    }
}

.product-details__item {
    margin-bottom: 30px;
}

.product-details__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.product-details__content {
    color: #444;
    font-size: 0.95rem;
}

.product-details__content ul {
    list-number: none;
    padding-left: 0;
}

.product-details__content li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    list-style: none;
}

.product-details__content li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup__content {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form__input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
}

.form__checkbox input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form__checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.form__checkbox a:hover {
    text-decoration: underline;
}

/* Glass Effect like main page */
.glass-effect {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Footer alignment with t228 structure */
.footer-static {
    padding: 60px 0;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    color: #222;
}

.footer__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .footer__row {
        grid-template-columns: 1fr;
    }
}

.footer__title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
    font-family: var(--font-header);
}

.footer__text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.footer__social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    transition: color 0.2s;
}

.footer__social-link:hover {
    color: var(--primary-color);
}

.footer__bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: #888;
}

.footer__legal {
    display: flex;
    gap: 20px;
}

.footer__legal a {
    color: inherit;
    text-decoration: none;
}

.footer__legal a:hover {
    text-decoration: underline;
}

/* Form legal text */
.form__legal-text {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
    margin-top: 5px;
}

.form__legal-text a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Other Products Section */
.other-products {
    padding: 80px 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.other-products__title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    font-family: var(--font-header);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.product-card__img-container {
    aspect-ratio: 4/3;
    background: #fdfdfd;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-card__img {
    transform: scale(1.05);
}

.product-card__info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.product-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}