:root {
    --bg-main: #0a0a0c;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #ff4d00;
    --accent-hover: #ff6a00;
    --gradient-buy: linear-gradient(135deg, #ff4d00 0%, #f9a01b 100%);
    --gradient-buy-hover: linear-gradient(135deg, #ff6a00 0%, #fbbf24 100%);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 100px;
}

/* Background Effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: #ff4d00;
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: #0051ff;
    bottom: 10%;
    right: -200px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

/* Header */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}
.logo-icon {
    color: var(--accent);
    font-size: 24px;
}
.nav-links {
    display: flex;
    gap: 40px;
}
.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.nav-links a:hover::after {
    width: 100%;
}
.header-actions {
    display: flex;
    gap: 15px;
}
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}
.icon-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
}

/* Breadcrumb */
.breadcrumb {
    padding: 30px 0 20px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb i {
    font-size: 10px;
}
.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Gallery */
.main-image-container {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 500px;
    margin-bottom: 20px;
    overflow: hidden;
}
.main-image-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 70%);
}
.badge-premium {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #000;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 30px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.main-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    transition: transform 0.5s ease;
}
.main-image-container:hover .main-img {
    transform: scale(1.05);
}

.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.thumb-wrapper {
    height: 100px;
    border-radius: 12px;
    border: 2px solid var(--border-glass);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.thumb-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.thumb-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: var(--bg-glass-hover);
}
.thumb-wrapper.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Details Section */
.title-area {
    margin-bottom: 25px;
}
.brand-tag {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.product-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.product-title span {
    font-weight: 300;
    color: var(--text-secondary);
    font-size: 32px;
}
.rating-review {
    display: flex;
    align-items: center;
    gap: 15px;
}
.stars {
    color: #ffd700;
    font-size: 16px;
}
.review-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.price-area {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 30px;
}
.current-price {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.original-price {
    font-size: 20px;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 4px;
}
.discount-badge {
    background: rgba(255, 77, 0, 0.15);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 77, 0, 0.3);
}

.specs-panel {
    padding: 25px;
    margin-bottom: 30px;
}
.desc-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}
.key-specs {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.key-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}
.key-specs i {
    color: var(--accent);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.options-area {
    margin-bottom: 35px;
}
.option-block label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.style-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.style-btn:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255,255,255,0.3);
}
.style-btn.active {
    background: rgba(255, 77, 0, 0.05);
    border-color: var(--accent);
}
.style-name {
    font-family: var(--font-main);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
}
.style-price {
    font-family: var(--font-main);
    color: var(--text-secondary);
    font-size: 13px;
}
.style-btn.active .style-price {
    color: var(--accent);
}

.action-area {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.qty-control {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 16px;
    width: 140px;
}
.qty-control button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
}
.qty-control button:hover {
    background: var(--bg-glass-hover);
}
.qty-control input {
    width: 50px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-main);
    outline: none;
}
.btn-buy-now {
    flex: 1;
    background: var(--gradient-buy);
    border: none;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(255, 77, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-buy-now::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}
.btn-buy-now:hover::before {
    left: 100%;
    transition: 0.7s;
}
.btn-buy-now:hover {
    background: var(--gradient-buy-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 77, 0, 0.4);
}
.btn-text {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}
.btn-subtext {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

.promo-box {
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(255, 77, 0, 0.05);
    border: 1px solid rgba(255, 77, 0, 0.2);
}
.promo-box i {
    color: var(--accent);
    font-size: 24px;
    margin-top: 2px;
}
.promo-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.promo-content strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

/* Floating Socials */
.floating-socials {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}
.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.social-btn:hover {
    transform: scale(1.1) translateY(-5px);
}
.social-btn.messenger:hover { background: #0084ff; border-color: #0084ff; color: white;}
.social-btn.zalo:hover { background: #0068ff; border-color: #0068ff; color: white;}
.social-btn.phone:hover { background: #00b14f; border-color: #00b14f; color: white;}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .main-image-container {
        height: 400px;
    }
}

/* Home Page Specifics */
.home-hero {
    text-align: center;
    padding: 60px 0 40px;
}
.home-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding-bottom: 60px;
}

.product-card {
    width: calc(20% - 24px);
    min-width: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: var(--accent);
}
.product-card .img-box {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}
.product-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.1);
}
.product-card .brand {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product-card .title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    flex-grow: 1;
}
.product-card .price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}
.product-card .btn-view {
    margin-top: auto;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}
.product-card:hover .btn-view {
    background: var(--accent);
    color: white;
}

@media (max-width: 1200px) {
    .product-card { width: calc(25% - 22.5px); }
}
@media (max-width: 900px) {
    .product-card { width: calc(33.333% - 20px); }
}
@media (max-width: 600px) {
    .product-card { width: calc(50% - 15px); }
}
