/* Product Detail Page Styles */
.product-detail-page {
    background-color: #2a2a2a;
    padding: 80px 0 40px; /* Add top padding for fixed nav */
    color: #fff;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #333333; /* Match other page elements */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation styling to match other pages */
.nav-bar {
    background-color: #000000 !important;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border: none;
    margin: 0;
    padding: 0;
}

.nav-bar * {
    background-color: #000000 !important;
    border: none;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #000000 !important;
}

.logo {
    display: flex;
    align-items: center;
    background-color: transparent !important;
}

.logo a {
    display: flex;
    align-items: center;
    background-color: transparent !important;
}

/* Remove specific logo img sizing from here - use common-nav.css instead */
.logo img {
    height: 40px;
    width: auto;
    background-color: transparent !important;
}

.main-nav {
    display: flex;
    align-items: center;
    background-color: #000000 !important;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #000000 !important;
}

.main-nav ul li {
    margin: 0 5px;
    background-color: #000000 !important;
}

.nav-button {
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.cart-icon {
    position: relative;
    color: #fff !important;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    background-color: transparent !important;
}

.cart-icon a {
    color: #fff !important;
    background-color: transparent !important;
    text-decoration: none;
}

.cart-icon i {
    color: #fff !important;
    background-color: transparent !important;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444 !important;
    color: white !important;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Footer styling to match other pages */
footer {
    background-color: #121212 !important;
    padding: 60px 0 0 !important;
    color: #fff;
    margin-top: 60px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
    background-color: #121212 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    background-color: #121212 !important;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    background-color: #121212 !important;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    background-color: transparent !important;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    background-color: #121212 !important;
}

.footer-nav, .footer-contact {
    background-color: #121212 !important;
}

.footer-nav h3, .footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #121212 !important;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #121212 !important;
}

.footer-nav ul li {
    margin-bottom: 10px;
    background-color: #121212 !important;
}

.footer-nav ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    background-color: #121212 !important;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
    background-color: #121212 !important;
}

.whatsapp-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    background-color: #121212 !important;
}

.whatsapp-link:hover {
    color: #25D366;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0a0a0a !important;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    background-color: transparent !important;
}

/* Product detail specific styles */
.product-detail-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-brand {
    color: #888;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 8px; /* Add space below brand name */
    display: block; /* Ensure it's on its own line */
}

.product-name {
    color: #fff;
    font-size: 2rem;
    margin: 0 0 15px 0; /* Add space below product name */
    line-height: 1.2; /* Improve line height for better readability */
}

.product-price {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 25px; /* Add more space below price before quantity selector */
    display: block; /* Ensure it's on its own line */
}

.product-actions {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2a2a2a;
    padding: 8px;
    border-radius: 6px;
}

.quantity-btn {
    background: #444;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: #555;
}

.quantity {
    font-size: 1.1rem;
    color: #fff;
    min-width: 30px;
    text-align: center;
}

.add-to-cart-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 0 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Product tabs styling */
.product-tabs {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: #2a2a2a;
    color: #ccc;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #444;
}

.tab-btn.active {
    background: #fff;
    color: #000;
}

.tab-panel {
    display: none;
    color: #ccc;
    line-height: 1.6;
}

.tab-panel.active {
    display: block;
}

.tab-panel p {
    margin-bottom: 15px;
}

/* Cart popup styling */
.cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-popup.active {
    opacity: 1;
    visibility: visible;
}

.cart-popup-content {
    background: #333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    animation: popup-appear 0.3s forwards;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-popup i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.cart-popup p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cart-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.view-cart-btn {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.view-cart-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.continue-shopping-btn {
    background: #444;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.continue-shopping-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Product options styling */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.product-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-option label {
    font-size: 0.9rem;
    color: #ccc;
}

.option-select {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.option-select:focus {
    outline: none;
    border-color: #666;
}

/* Responsive adjustments for options */
@media (max-width: 768px) {
    .product-options {
        align-items: center;
        width: 100%;
    }
    
    .product-option {
        width: 100%;
        max-width: 300px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: 20px;
        margin: 60px 10px 20px 10px; /* Add top margin for fixed nav and even side margins */
    }

    /* Fix image container spacing */
    .product-main-image {
        width: 100%;
        max-width: 300px; /* Limit width on mobile */
        margin: 0 auto; /* Center the image container */
        aspect-ratio: 1;
    }

    /* Fix quantity selector and add to cart button */
    .product-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px; /* Limit width */
        margin: 20px auto; /* Center the actions */
    }

    .quantity-selector {
        width: auto; /* Don't stretch full width */
        margin: 0 auto 15px; /* Center and add bottom margin */
        padding: 8px 15px;
    }

    .add-to-cart-btn {
        width: auto; /* Don't stretch full width */
        padding: 12px 30px;
        margin: 0 auto; /* Center the button */
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 15px;
        margin: 60px 8px 15px 8px; /* Slightly smaller margins on very small screens */
    }

    /* Further adjustments for very small screens */
    .product-main-image {
        max-width: 250px;
    }

    .product-actions {
        max-width: 250px;
    }

    /* Make tabs more compact */
    .tab-buttons {
        gap: 5px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .product-brand {
        margin-top: 15px; /* Add space above brand on mobile */
        text-align: center; /* Center text on mobile */
    }
    
    .product-name {
        font-size: 1.8rem;
        margin-bottom: 12px;
        text-align: center; /* Center text on mobile */
    }
    
    .product-price {
        font-size: 1.4rem;
        margin-bottom: 20px;
        text-align: center; /* Center text on mobile */
    }
}

@media (max-width: 480px) {
    .product-brand {
        margin-top: 10px;
    }
    
    .product-name {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .product-price {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    
    /* Add more space between price and quantity selector */
    .product-actions {
        margin-top: 25px;
    }
}




