/* =========================
   SHOP CONSTANTS & VARIABLES
========================= */

/* Use same glassmorphism and theme as main styles */

.shop-page {
    padding-top: 120px;
    padding-bottom: 80px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   FILTERS ROW
========================= */
.shop-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.shop-filters a {
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.shop-filters a.active {
    color: #3b82f6; /* Blue accent */
    border-bottom: 2px solid #3b82f6;
}

.shop-filters a:hover {
    color: #1f2937;
}

/* =========================
   SHOP CATALOG GRID
========================= */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
}

.shop-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.5); /* Blue highlight on hover */
}

.shop-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.shop-card-title {
    font-size: 18px;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.shop-card-subtitle {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 12px;
}

.shop-card-price {
    font-size: 16px;
    color: #2f2f2f;
    font-weight: 600;
    margin-top: auto;
}

/* =========================
   PRODUCT VIEW (2 COLUMNS)
========================= */
.product-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .product-view {
        grid-template-columns: 1fr;
    }
}

.product-main-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 40px;
    color: #374151; /* Dark text */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15); /* Soft shadow */
}

.product-main-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-details {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 40px;
    color: #374151;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.sidebar-wrapper {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

/* Specific override for the main details card to look identical to previous state */
.product-details {
    padding: 40px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.related-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.related-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #e5e7eb; /* generic color if image fails */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.related-title {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.related-price {
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    background: #e5e7eb;
    color: #374151;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-price {
    font-size: 24px;
    color: #4b5563;
    margin-bottom: 30px;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: transparent;
    color: #1f2937;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid #1f2937;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.product-video {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.product-section-title {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-features-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 30px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.product-features-list li {
    margin-bottom: 8px;
}

/* =========================
   MEDIA TABS FOR PRODUCT
========================= */
.media-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.media-tab-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #4b5563;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-tab-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.media-tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.media-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.media-content.active {
    display: block;
}
