/* Import base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2C2C2C;
    background: #F4F4F4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section - matching landing page */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.hero-with-bg {
    background-image: url('../img/hero/hero_HAAD.webp');        background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-bottom: 3rem; /* add spacing so background flows below */
}

.product-detail-section {
    background: transparent;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: none;
    max-width: 1200px;
    margin: 0 auto;
}


.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 112, 192, 0.7), rgba(237, 85, 165, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 32px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-description {
    padding: 30px;
    border-radius: 30px;
    margin: 32px auto;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(250, 217, 229, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.hero-quote {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

/* Product Detail Section */

.product-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

.product-detail-card {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 112, 192, 0.1);
    border: 1px solid rgba(237, 85, 165, 0.1);
    transition: all 0.3s ease;
}

/*.product-detail-card:hover {*/
/*    box-shadow: 0 30px 80px rgba(0, 112, 192, 0.15);*/
/*    transform: translateY(-5px);*/
/*}*/

/* Product Image */
.product-image-container {
    text-align: center;
    margin-bottom: 2rem;
    background: transparent;
    position: relative;
}

.product-main-image {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 20px;
    /*box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);*/
    transition: transform 0.3s ease;
}

.product-main-image:hover {
    transform: scale(1.05);
}

.product-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ED55A5, #5BC8D2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(237, 85, 165, 0.3);
}

.product-placeholder span {
    display: block;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
}

/* Product Info */
.product-info {
    padding-left: 0;
    margin-top: 20px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #ED55A5, #5BC8D2);
    border-radius: 2px;
}

.product-description {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 20px;
    padding: 20px;
}

.product-description p {
    margin: 0;
}

/* Product Tags */
.product-tags {
    margin-bottom: 15px;
    font-size: 16px;
}

.tags-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    background: linear-gradient(135deg, rgba(0, 112, 192, 0.1), rgba(91, 200, 210, 0.1));
    color: #0070C0;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 112, 192, 0.2);
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: linear-gradient(135deg, rgba(0, 112, 192, 0.2), rgba(91, 200, 210, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 112, 192, 0.3);
}

.no-tags-text {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* Responsive adjustments for tags */
@media (max-width: 768px) {
    .tags-container {
        gap: 6px;
    }

    .tag-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .custom-message-container{
        justify-content: center;
        align-items: center;
        padding: 6px 20px;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .tag-badge {
        font-size: 11px;
        padding: 5px 14px;
    }

    .custom-message-container{
        justify-content: center;
        align-items: center;
        /*padding: 6px 20px;*/
        width: fit-content;
    }
}

/* Product Meta Information */
.product-meta {
    margin-bottom: 30px;
}

.product-category,
.birth-month,
.stock-status {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.meta-label {
    font-weight: 600;
    color: #2C2C2C;
    margin-right: 15px;
    min-width: 100px;
}

.category-badge {
    background: linear-gradient(135deg, rgba(0, 112, 192, 0.1), rgba(91, 200, 210, 0.1));
    color: #0070C0;
    padding: 5px 10px;
    max-width: fit-content;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 112, 192, 0.2);
}

.month-badge {
    background: linear-gradient(135deg, rgba(237, 85, 165, 0.1), rgba(250, 217, 229, 0.2));
    color: #ED55A5;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(237, 85, 165, 0.2);
}

.status-badge {
    padding: 5px 10px;
    max-width: fit-content;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.in-stock {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(91, 200, 210, 0.1));
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-badge.out-of-stock {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(237, 85, 165, 0.1));
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Product Price Row */
.product-price-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.product-price-row .meta-label {
    font-weight: 600;
    color: #2C2C2C;
    margin-right: 15px;
    min-width: 100px;
}

.product-price-row .price-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2C2C2C;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #ED55A5, #5BC8D2);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(237, 85, 165, 0.3);
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(237, 85, 165, 0.4);
}

.edit-details-btn {
    background: linear-gradient(135deg, #0070C0, #5BC8D2);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    min-width: 160px;
}

.edit-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 112, 192, 0.4);
    color: white;
    text-decoration: none;
}

.add-to-cart-btn:disabled {
    background: linear-gradient(135deg, #ccc, #999);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-to-catalogue-btn {
    background: transparent;
    color: #0070C0;
    padding: 15px 30px;
    border: 2px solid #0070C0;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    width: 100%;
}

.back-to-catalogue-btn:hover {
    background: #0070C0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 192, 0.3);
    text-decoration: none;
}

/* Related Orders Section */
/*.related-orders-section {*/
/*    margin-top: 0;*/
/*    opacity: 0;*/
/*    transform: translateY(30px);*/
/*}*/

.related-orders {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 112, 192, 0.1);
    border: 1px solid rgba(237, 85, 165, 0.1);
}

.related-orders h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.related-orders h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #ED55A5, #5BC8D2);
    border-radius: 2px;
}

.orders-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 112, 192, 0.1);
}

.orders-table th {
    background: linear-gradient(135deg, #FAD9E5, rgba(250, 217, 229, 0.7));
    border-bottom: 2px solid #ED55A5;
    font-weight: 600;
    color: #2C2C2C;
    padding: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table td {
    vertical-align: middle;
    border-color: rgba(244, 244, 244, 0.5);
    padding: 20px;
    font-size: 14px;
}

.order-id {
    background: rgba(0, 112, 192, 0.1);
    color: #0070C0;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 12px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        max-width: 100%;     /* let it span the container */
        padding: 20px;       /* reduce padding */
        border-radius: 20px; /* smaller radius so it scales better */
    }

    .hero-quote {
        font-size: 1rem;     /* make the text a bit smaller */
        line-height: 1.4;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .hero-description {
        margin: 24px 0;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .product-detail-card {
        padding: 40px 30px; /* Increased from 30px 40px */
        border-radius: 20px;
        margin: 0 10px; /* Add some margin to prevent edge touching */
    }

    .container {
        padding: 0 10px; /* Reduced from 16px to give more space */
    }

    .product-detail-section {
        padding: 1.5rem; /* Reduced padding to give more space to inner content */
    }

    .product-info {
        padding-left: 0;
        margin-top: 30px;
    }

    .product-main-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        object-fit: contain;
        border-radius: 20px;
        transition: transform 0.3s ease;
    }


    .product-placeholder {
        max-width: 300px;
        height: 300px;
    }

    .related-orders {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .orders-table th,
    .orders-table td {
        padding: 15px 10px;
        font-size: 13px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 16px;
        border-radius: 15px;
        margin: 20px 0;     /* remove the big auto margins */
    }

    .hero-quote {
        font-size: 0.95rem;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .hero-description {
        margin: 20px 0;
        position: relative;
        padding: 20px 16px;
        border-radius: 15px;
    }

    .product-detail-card {
        padding: 35px 25px; /* Increased from 20px 30px */
        margin: 10px 5px; /* Smaller margin on very small screens */
    }

    .product-detail-section {
        padding: 1rem; /* Even less padding on small screens */
    }

    .container {
        padding: 0 8px; /* Minimal container padding */
    }

    .product-main-image {
        max-width: 280px;
        height: 280px;
        width: 100%;
        object-fit: contain;
        border-radius: 20px;
        /*box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);*/
        transition: transform 0.3s ease;
    }

    .product-placeholder {
        max-width: 280px;
        height: 280px;
        padding: 30px;
    }

    .product-actions {
        gap: 15px;
    }

    .add-to-cart-btn,
    .back-to-catalogue-btn {
        max-width: 100%;
    }

    .related-orders {
        padding: 20px 15px;
    }

    .orders-table {
        font-size: 12px;
    }

    .orders-table th,
    .orders-table td {
        padding: 10px 8px;
    }
}

/* Enhanced visual effects */
.product-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 85, 165, 0.02), rgba(0, 112, 192, 0.02));
    border-radius: 30px;
    pointer-events: none;
}

.product-detail-card {
    position: relative;
    overflow: hidden;
}

/* Additional spacing and visual hierarchy */
.product-meta > div:last-child {
    margin-bottom: 0;
}

.product-price {
    position: relative;
}

.product-price::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(245, 197, 66, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-description {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    padding: 16px;
    border-radius: 15px;
    background: rgba(250, 217, 229, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.hero-quote {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

/* Tablet and up */
@media (min-width: 768px) {
    .hero-description {
        max-width: 500px;
        margin: 24px auto;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .hero-quote {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

/* Desktop and up */
@media (min-width: 1200px) {
    .hero-description {
        margin: 32px auto;
        padding: 30px;
        border-radius: 30px;
    }

    .hero-quote {
        font-size: 1.3rem;
    }

    /* Responsive tweaks */
    @media (max-width: 768px) {
        .product-title {
            font-size: 1.6rem;
            text-align: center;
        }

        .hero-quote {
            font-size: 1rem;
            padding: 0.8rem 1rem;
        }
    }
}

/* Secondary Images Carousel */
.secondary-images-carousel {
    margin-top: 20px;
}

.carousel-container {
    position: relative;
    max-width: 100%;
}

.carousel-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    scroll-behavior: smooth;
    max-width: 100%;
}

.carousel-images::-webkit-scrollbar {
    display: none;
}

.carousel-image {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.carousel-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-image.active {
    border-color: #0070C0;
    box-shadow: 0 0 0 2px rgba(0, 112, 192, 0.3);
}

.carousel-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-image:hover .carousel-thumbnail {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 112, 192, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 112, 192, 1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -16px;
}

.next-btn {
    right: -16px;
}
