/* ============================================
   PRODUCT.CSS - Scaffolding Depot
   Product page specific styles
   ============================================ */

/* Product Page Container */
.preview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    background-color: var(--white);
}

.product-catalog {
    padding-bottom: 0;
}

/* Product Hero - Simple centered layout matching legacy */
.product-hero {
    background-color: var(--white);
    padding: 25px 40px;
    border-bottom: 3px solid var(--brand-orange);
}

.product-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.product-title {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.product-kicker {
    display: none; /* Hide kickers - not in legacy layout */
}

.product-summary {
    font-size: 1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
    text-align: center;
}

.feature-list {
    display: none; /* Hide feature lists - not in legacy hero */
}

.product-info-col {
    width: 100%;
}

.product-media-col {
    display: none; /* Hide hero media - not in legacy layout */
}

@media (max-width: 768px) {
    .product-hero {
        padding: 20px;
    }
    
    .product-title {
        font-size: 2rem;
    }
}

.product-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.product-media-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(37, 48, 65, 0.12);
    text-align: center;
}

.product-media-card img {
    margin: 0 auto;
}

.product-media-caption {
    margin-top: 0.75rem;
    color: var(--dark-navy);
    font-weight: 600;
}

.product-loading {
    padding: 60px 20px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-navy);
}

/* Trust Bar - Hidden (not in legacy layout) */
.trust-bar {
    display: none;
}

/* Page Title Section */
.fullSection {
    background-color: var(--white);
}

/* Product Page Navigation - Centered */
.product-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background-color: var(--white);
    margin: 0 auto;
    width: 100%;
}

.scroll-btn {
    display: inline-block;
    background-color: var(--brand-orange);
    color: var(--white);
    font-family: var(--font-headline);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.scroll-btn:hover {
    background-color: #C48000;
    text-decoration: none;
}

/* ============================================
   SECTION TITLES - Full Width Centered
   ============================================ */

.pv-section-title {
    display: block;
    width: 100%;
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-align: center;
    padding: 25px 40px;
    margin: 0;
    background-color: var(--white);
    border-bottom: 3px solid var(--brand-orange);
    box-sizing: border-box;
}

.pv-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    line-height: 1.6;
}

/* Scroll Navigation */
.pv-scroll-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: #f5f5f5;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #ddd;
}

.pv-scroll-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pv-scroll-link:hover {
    background-color: var(--brand-orange);
    color: var(--white);
    border-color: var(--brand-orange);
}

/* Subheadings between product groups */
.pv-subheading {
    display: block;
    width: 100%;
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-navy);
    text-align: center;
    padding: 20px 40px;
    margin: 0;
    background-color: var(--white);
    box-sizing: border-box;
}

h2.pv-subheading {
    font-size: 1.5rem;
    border-bottom: 3px solid var(--brand-orange);
}

p.pv-subheading {
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    padding: 10px 40px;
}

/* Product Variant Row - Two Column Layout */
.pv-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 30px 40px;
    margin: 0;
    background-color: var(--white);
    border: none;
    align-items: center;
}

/* Add border only between products in the same section */
.pv-row + .pv-row {
    border-top: 1px solid #000;
}

.pv-image-col {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.pv-image-col img {
    max-width: 100%;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.pv-info-col {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
}

/* Variant Dropdown */
.pv-dropdown {
    width: 100%;
    max-width: 280px;
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 2px solid var(--dark-navy);
    border-radius: 4px;
    background-color: var(--white);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.pv-dropdown:hover,
.pv-dropdown:focus {
    border-color: var(--brand-orange);
    outline: none;
}

/* Product Content */
.pv-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.pv-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0;
}

.pv-details {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.pv-price {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin: 8px 0 0 0;
}

/* Sticky CTA */
.sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.15);
    gap: 12px;
    justify-content: center;
    z-index: 1100;
}

.sticky-cta a {
    text-decoration: none;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.sticky-cta-primary {
    background: var(--brand-orange);
    color: var(--white);
}

.sticky-cta-secondary {
    border: 2px solid var(--brand-orange);
    color: var(--brand-orange);
    background: #ffffff;
}

/* ============================================
   LAMINATED INTRO GRID - Text + Badge
   ============================================ */

.laminated-intro-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    padding: 30px 40px;
    align-items: start;
    background-color: var(--white);
}

.laminated-intro-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.laminated-intro-badge {
    flex-shrink: 0;
}

.laminated-intro-badge img {
    max-width: 120px;
    height: auto;
}

/* Mobile Responsive - Product */
@media (max-width: 768px) {
    .preview-container {
        padding: 0 20px;
    }

    .product-catalog {
        padding-bottom: 96px;
    }

    .product-hero {
        padding: 24px 20px 20px;
    }

    .product-hero-inner {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 2rem;
    }

    .trust-bar {
        justify-content: center;
    }
    
    .product-nav {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
    }
    
    .scroll-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .pv-section-title,
    .pv-subheading {
        padding: 20px;
    }
    
    .pv-row {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .pv-image-col,
    .pv-info-col {
        flex: 0 0 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .pv-dropdown {
        max-width: 100%;
    }
    
    .laminated-intro-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .laminated-intro-badge {
        justify-content: center;
    }

    .sticky-cta {
        display: flex;
    }
}

/* ============================================
   POST SHORES - Large Image Override
   ============================================ */
#post-shores ~ section .pv-image-col img {
    width: 400px;
    height: 400px;
}

@media (max-width: 768px) {
    #post-shores ~ section .pv-image-col img {
        width: 300px;
        height: 300px;
    }
}

/* ============================================
   CUSTOMER REVIEWS SECTION
   ============================================ */
.product-reviews {
    background: #f9fafb;
    padding: 60px 40px;
    margin-top: 40px;
}

.product-reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-reviews-header h2 {
    font-size: 2rem;
    color: var(--dark-navy);
    margin-bottom: 20px;
}

.product-reviews-aggregate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.2rem;
}

.review-avg-rating {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.review-stars-large {
    font-size: 1.8rem;
    color: var(--brand-orange);
    letter-spacing: 2px;
}

.review-count-text {
    color: #6b7280;
    font-size: 1rem;
}

.product-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-review-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.product-review-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.review-author {
    color: var(--dark-navy);
    font-size: 1rem;
}

.review-stars {
    color: var(--brand-orange);
    font-size: 1rem;
    letter-spacing: 1px;
}

.review-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.review-title {
    font-size: 1.1rem;
    color: var(--dark-navy);
    margin: 8px 0;
    font-weight: 600;
}

.review-text {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-verified {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.product-faqs {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.product-faqs h2 {
    font-size: 2rem;
    color: var(--dark-navy);
    text-align: center;
    margin-bottom: 40px;
}

.product-faqs-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brand-orange);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Breadcrumb enhancements */
.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.product-breadcrumbs a {
    color: var(--brand-orange);
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumbs a:hover {
    color: #8b2e0d;
    text-decoration: underline;
}

.product-breadcrumbs-separator {
    color: #9ca3af;
    font-weight: 300;
}

.product-breadcrumbs-current {
    color: #6b7280;
}

/* Review stars microdata enhancements */
.review-stars-rating {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-reviews,
    .product-faqs {
        padding: 40px 20px;
    }
    
    .product-reviews-list {
        grid-template-columns: 1fr;
    }
    
    .review-avg-rating {
        font-size: 2rem;
    }
    
    .review-stars-large {
        font-size: 1.4rem;
    }
}

/* ============================================
   PRODUCT CARD GRID LAYOUT
   ============================================ */

.product-section {
    margin-bottom: 40px;
}

.product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 30px 40px;
    background-color: var(--white);
}

.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(37, 48, 65, 0.08);
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(37, 48, 65, 0.15);
    transform: translateY(-4px);
    border-color: var(--brand-orange);
}

.product-card-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f9fafb;
    padding: 20px;
}

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.product-card-title {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    color: var(--dark-navy);
    margin: 0;
    line-height: 1.4;
    min-height: 2.8rem;
}

.product-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin: 8px 0;
}

.product-card-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.product-card-buttons .btn-primary {
    flex: 1;
    background: var(--dark-navy);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.product-card-buttons .btn-primary:hover {
    background: #1a2332;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 48, 65, 0.3);
}

.btn-cart {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart:hover {
    background: #8b2e0d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 160, 0, 0.3);
}

.btn-details {
    background: var(--dark-navy);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-details:hover {
    background: #1a2332;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 48, 65, 0.3);
}

/* ============================================
   PRODUCT MODAL
   ============================================ */

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-modal.active {
    display: flex;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.product-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 10000;
}

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.product-modal-close:hover {
    background: rgba(195, 65, 24, 0.9);
    color: white;
    transform: rotate(90deg);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 40px;
}

.product-modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px;
}

.product-modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-modal-title {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    color: var(--dark-navy);
    margin: 0;
    line-height: 1.3;
}

.product-modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.product-modal-sku {
    font-size: 1rem;
    color: #6b7280;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Product Modal Tabs */
.product-modal-tabs {
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--brand-orange);
    background: #f9fafb;
}

.tab-btn.active {
    color: var(--brand-orange);
    border-bottom-color: var(--brand-orange);
    font-weight: 600;
}

.tab-content {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    color: #6b7280;
    font-style: italic;
    padding: 20px 0;
}

/* Product Modal Footer */
.product-modal-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.product-modal-details {
    flex-grow: 1;
    color: var(--dark-navy);
}

.product-modal-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-modal-details-list li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.product-modal-details-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--brand-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-modal-cart {
    margin-top: 20px;
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .product-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
        padding: 20px;
    }
    
    .product-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .product-modal-image {
        padding: 20px;
    }
    
    .product-modal-image img {
        max-height: 250px;
    }
    
    .product-modal-title {
        font-size: 1.4rem;
    }
    
    .product-card-buttons {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   QUANTITY SELECTOR
   ============================================ */

.product-modal-quantity {
    margin: 20px 0;
}

.product-modal-quantity label {
    display: block;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 8px;
    font-size: 1rem;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    background: #f9fafb;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-navy);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--brand-orange);
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-navy);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    background: #f9fafb;
}

/* ============================================
   STICKY CART WIDGET
   ============================================ */

.cart-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
}

.cart-widget-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-orange);
    border: none;
    box-shadow: 0 4px 20px rgba(195, 65, 24, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    color: white;
}

.cart-widget-toggle:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(195, 65, 24, 0.5);
    background: #8b2e0d;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--dark-navy);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
}

.cart-dropdown {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.cart-widget.open .cart-dropdown {
    display: flex;
    animation: slideUpCart 0.3s ease;
}

@keyframes slideUpCart {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-dropdown-header {
    padding: 20px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.cart-dropdown-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dark-navy);
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cart-close-btn:hover {
    background: rgba(195, 65, 24, 0.1);
    color: var(--brand-orange);
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 400px;
}

.cart-empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-style: italic;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 6px;
    padding: 8px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 0.9rem;
    color: var(--dark-navy);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.cart-item-sku {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--brand-orange);
    font-weight: 600;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.cart-item-quantity .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

.cart-item-quantity .qty-value {
    width: 32px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    padding: 4px 0;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 8px;
}

.cart-total-price {
    color: var(--brand-orange);
    font-size: 1.3rem;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.btn-clear-cart {
    width: 100%;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-cart:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ============================================
   CART NOTIFICATION
   ============================================ */

.cart-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--dark-navy);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 300px;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Cart Widget */
@media (max-width: 768px) {
    .cart-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .cart-widget-toggle {
        width: 55px;
        height: 55px;
    }
    
    .cart-dropdown {
        width: 90vw;
        right: -15vw;
        max-height: 70vh;
    }
    
    .cart-notification {
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

