/* Design store page enhancements built on top of index.css */

.nav-links .active-page {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.design-hero {
    padding-top: 9rem;
    padding-bottom: 4rem;
}

.design-hero .hero-content h1 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
}

.hero-stats.compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-moodboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.hero-moodboard img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--stroke);
}

.hero-moodboard img:last-child {
    grid-column: span 2;
    height: 200px;
}

.design-store {
    padding: 5rem 0;
}

.store-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.store-controls {
    padding: 1.5rem;
    border: 1px solid var(--stroke);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search-container input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.search-container i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.category-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.55rem 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(45deg, #3399ff, #00d4ff);
    border-color: transparent;
    color: #050610;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-container select {
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
}

.gallery-grid {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.product-card {
    border: 1px solid var(--stroke);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    height: 220px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view,
.favorite-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    cursor: pointer;
}

.favorite-btn {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    background: linear-gradient(45deg, #3399ff, #00d4ff);
    color: #050610;
}

.product-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.product-description {
    color: var(--text-muted);
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.product-price {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.price-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.add-to-cart,
.buy-now {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.add-to-cart {
    border-color: var(--stroke);
    background: transparent;
    color: var(--text-primary);
}

.add-to-cart:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
}

.buy-now {
    background: linear-gradient(45deg, #3399ff, #00d4ff);
    color: #050610;
}

.buy-now:hover {
    transform: translateY(-2px);
}

.lightbox,
.cart-overlay,
.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    border: 1px solid var(--stroke);
}

.lightbox .close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.contact-modal .modal-content {
    width: min(520px, 90%);
    background: var(--bg-secondary);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    overflow: hidden;
}

.contact-modal .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal .modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-methods button {
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: transparent;
    color: var(--text-primary);
    padding: 1rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease;
}

.contact-methods button:hover {
    border-color: var(--accent);
}

.cart-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, #3399ff, #00d4ff);
    color: #050610;
    cursor: pointer;
    z-index: 998;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: right 0.3s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header,
.cart-footer {
    padding: 1.5rem;
    border-bottom: 1px solid var(--stroke);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 0.75rem;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 0.75rem;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-actions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cart-footer .cart-actions {
    display: flex;
    gap: 0.75rem;
}

.clear-cart,
.checkout-btn {
    flex: 1;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--stroke);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.checkout-btn {
    background: linear-gradient(45deg, #3399ff, #00d4ff);
    border: none;
    color: #050610;
}

@media (max-width: 960px) {
    .store-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 768px) {
    .design-hero {
        padding-top: 7rem;
    }

    .hero-visual {
        justify-content: center;
    }

    .store-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

