.page-main {
    min-height: 100vh;
    padding-top: 0;
}

.breadcrumb {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb .section-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.breadcrumb span {
    color: var(--gray-800);
    font-weight: 500;
}

.product-detail-section {
    padding: 2rem 0 4rem;
    background: var(--white);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-gallery {
    position: sticky;
    top: 2rem;
}

.gallery-main {
    position: relative;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 1rem;
}

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

.gallery-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumb:hover,
.thumb.active {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail {
    padding: 1rem 0;
}

.product-shop-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.product-shop-info img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.product-shop-info span {
    font-weight: 600;
    color: var(--gray-700);
}

.product-shop-info .verified {
    color: var(--primary);
}

.product-title-lg {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-rating-lg {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-rating-lg .stars {
    color: var(--warning);
    font-size: 1rem;
}

.product-rating-lg .rating-text {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.product-rating-lg .sales-text {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.product-price-lg {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-lg);
}

.product-price-lg .current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.product-price-lg .original-price {
    font-size: 1.25rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-price-lg .discount-badge {
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.product-description {
    margin-bottom: 1.5rem;
}

.product-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.product-description p {
    color: var(--gray-600);
    line-height: 1.7;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary);
    width: 20px;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-section label {
    font-weight: 600;
    color: var(--gray-700);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-700);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 1rem;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.product-actions-lg {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-actions-lg .btn-lg {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.product-guarantees {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.guarantee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.guarantee i {
    color: var(--success);
}

.related-products-section {
    padding: 3rem 0;
    background: var(--gray-50);
}

.products-page-section {
    padding: 2rem 0 4rem;
    background: var(--gray-50);
}

.products-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .products-page-layout {
        grid-template-columns: 1fr;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.375rem;
    }
}

.filters-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section h3 i {
    color: var(--primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray-700);
    transition: var(--transition);
}

.filter-option:hover {
    color: var(--primary);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: var(--primary);
}

.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-inputs input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.price-inputs span {
    display: none;
}

.products-main {
    min-height: 60vh;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.results-info {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-controls label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.sort-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.no-products i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-products h3 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.no-products p {
    color: var(--gray-500);
}

.shop-page-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.shop-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.shop-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.shop-logo-lg {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    background: var(--white);
}

.shop-logo-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-info-lg {
    flex: 1;
}

.shop-info-lg h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.shop-info-lg p {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.shop-info-lg .verified {
    color: #4ade80;
    font-size: 1.25rem;
}

.shop-stats {
    display: flex;
    gap: 2rem;
}

.shop-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.shop-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.shop-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .shop-info-lg h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .shop-page-header {
        padding: 2rem 0;
        margin-top: 50px; /* Space for search bar overlap */
    }

    .shop-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .shop-logo-lg {
        width: 100px;
        height: 100px;
    }

    .shop-info-lg h1 {
        font-size: 1.35rem;
        justify-content: center;
    }

    .shop-info-lg p {
        font-size: 0.9rem;
        margin: 0 auto 1.25rem;
    }

    .shop-stats {
        justify-content: center;
        gap: 1.25rem;
    }

    .shop-stat-value {
        font-size: 1.15rem;
    }
}

@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
    
    .products-page-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-title-lg {
        font-size: 1.5rem;
    }
    
    .product-price-lg .current-price {
        font-size: 2rem;
    }
    
    .product-actions-lg {
        flex-direction: column;
    }
    
    .product-guarantees {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .shop-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .shop-stats {
        justify-content: center;
    }
}

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--error); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--info); }

.toast-icon {
    font-size: 1.25rem;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.toast-close {
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.toast-close:hover {
    color: var(--gray-600);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
