/* Products Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1e;
    color: #fff;
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

/* Navigation - Same as home */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    background: rgba(26, 26, 30, 0.95);
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand img {
    height: 25px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a.active {
    color: #c4a35a;
}

.nav-links a:not(.btn-login):not(.profile-link)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c4a35a;
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-login):not(.profile-link):hover::after,
.nav-links a.active:not(.btn-login):not(.profile-link)::after {
    width: 100%;
}

.btn-login {
    background: linear-gradient(135deg, #d4627a 0%, #c4516a 100%);
    padding: 12px 28px;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 98, 122, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 98, 122, 0.4);
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 163, 90, 0.15);
    padding: 10px 20px;
    border-radius: 6px;
    color: #c4a35a !important;
}

.profile-link:hover {
    background: rgba(196, 163, 90, 0.25);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #d4d4d4;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 30, 0.98);
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Container */
.main-container {
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: #c4a35a;
    margin-bottom: 16px;
}

.section-subtitle {
    color: #a0a0a0;
    font-size: 18px;
}

/* Products Grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: #222226;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    /* Fixed card dimensions */
    flex: 0 0 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(196, 163, 90, 0.3);
}

.prod-img {
    /* Fixed aspect ratio container (3:2 ratio = 66.67%) */
    width: 100%;
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
    background: #2a2a2e;
    flex-shrink: 0;
}

.prod-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    padding: 8px;
}

.product-card:hover .prod-img img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 18px;
    color: #fff;
    padding: 16px 20px 8px;
    /* Fixed height for title with ellipsis */
    min-height: 28px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .desc {
    color: #a0a0a0;
    font-size: 13px;
    padding: 0 20px;
    margin-bottom: 12px;
    /* Limit description to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 36px;
    flex-grow: 1;
}

.product-card .price {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #c4a35a;
    padding: 0 20px;
    margin-bottom: 14px;
}

.buy-btn {
    width: calc(100% - 40px);
    margin: auto 20px 20px;
    padding: 12px;
    background: linear-gradient(135deg, #d4627a 0%, #c4516a 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.buy-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(212, 98, 122, 0.4);
}

.buy-btn.out-of-stock {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Coming Soon Cards */
.product-card.coming-soon {
    opacity: 0.85;
    border: 1px dashed rgba(196, 163, 90, 0.3);
}

.product-card.coming-soon:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 163, 90, 0.5);
}

.coming-soon-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2e 0%, #1a1a1e 100%);
    gap: 12px;
}

.coming-soon-placeholder i {
    font-size: 48px;
    color: rgba(196, 163, 90, 0.4);
    animation: pulse-icon 2s ease-in-out infinite;
}

.coming-soon-placeholder span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(196, 163, 90, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.coming-soon-price {
    color: rgba(196, 163, 90, 0.5) !important;
    font-style: italic;
}

.buy-btn.coming-soon-btn {
    background: linear-gradient(135deg, #3a3a3e 0%, #2a2a2e 100%);
    cursor: not-allowed;
    border: 1px dashed rgba(196, 163, 90, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    background: #222226;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #c4a35a;
    margin-bottom: 20px;
}

.footer-content p {
    color: #a0a0a0;
    margin-bottom: 8px;
}

.footer-content p strong {
    color: #fff;
}

.footer-note {
    margin-top: 20px;
    font-style: italic;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .section-title {
        font-size: 32px;
    }

    .main-container {
        padding: 100px 15px 40px;
    }
}
