/* ===========================
   SHOP PAGES STYLES
   =========================== */

/* Shop Sidebar */
.shop-sidebar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}

.filter-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

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

.filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.filter-list {
    list-style: none;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-item:hover {
    background-color: #f3f4f6;
    color: var(--navy);
}

.filter-item.active {
    background-color: rgba(0, 41, 147, 0.1);
    color: var(--navy);
    font-weight: 600;
}

.filter-count {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Price Filter */
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.price-input:focus {
    outline: none;
    border-color: var(--navy);
}

.filter-apply-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 41, 147, 0.2);
}

/* Size Filter */
.size-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    position: relative;
    cursor: pointer;
}

.size-option input {
    position: absolute;
    opacity: 0;
}

.size-option span {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.size-option input:checked + span {
    border-color: var(--navy);
    background-color: var(--navy);
    color: var(--golden);
}

.size-option:hover span {
    border-color: var(--navy);
}

/* Color Filter */
.color-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    position: relative;
    cursor: pointer;
}

.color-option input {
    position: absolute;
    opacity: 0;
}

.color-swatch {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.color-option input:checked + .color-swatch {
    border-color: var(--navy);
    transform: scale(1.1);
}

.color-option:hover .color-swatch {
    transform: scale(1.1);
}

/* Checkbox List */
.filter-checkbox-list {
    list-style: none;
}

.filter-checkbox-list li {
    margin-bottom: 10px;
}

.filter-checkbox-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
}

.filter-checkbox-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--navy);
}

/* Clear Filters */
.clear-filters-btn {
    width: 100%;
    padding: 12px;
    background-color: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.clear-filters-btn:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* Shop Header */
.shop-header {
    margin-bottom: 24px;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: white;
}

.sort-select:focus {
    outline: none;
    border-color: var(--navy);
}

/* Products Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.shop-product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shop-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.shop-product-image-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: #f9fafb;
}

.shop-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-product-card:hover .shop-product-image {
    transform: scale(1.1);
}

.shop-product-badge {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.shop-product-badge.new {
    left: 12px;
    background: linear-gradient(135deg, var(--golden) 0%, #d4a574 100%);
    color: white;
}

.shop-product-badge.discount {
    right: 12px;
    background-color: #ef4444;
    color: white;
}

.shop-product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-product-card:hover .shop-product-overlay {
    opacity: 1;
}

.shop-quick-view {
    background-color: white;
    color: var(--navy);
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-quick-view:hover {
    background-color: var(--navy);
    color: var(--golden);
}

.shop-product-info {
    padding: 16px;
}

.shop-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.shop-product-name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.shop-product-name a:hover {
    color: var(--navy);
}

.shop-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    gap: 2px;
    font-size: 0.85rem;
}

.rating-text {
    font-size: 0.85rem;
    color: #6b7280;
}

.shop-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.original-price {
    font-size: 0.95rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.shop-product-actions {
    display: flex;
    gap: 8px;
}

.add-to-cart-btn {
    flex: 1;
    padding: 10px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 41, 147, 0.2);
}

.wishlist-icon-btn {
    width: 45px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background-color: white;
    border-radius: 6px;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-icon-btn:hover {
    background-color: #f3f4f6;
    border-color: var(--navy);
}

/* Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--navy);
    color: var(--navy);
}

.pagination-btn.active {
    background-color: var(--navy);
    color: var(--golden);
    border-color: var(--navy);
}

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

.pagination-dots {
    color: #9ca3af;
}

/* Notification */
.shop-notification {
    position: fixed;
    top: 80px;
    right: -400px;
    background-color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 600;
    border-left: 4px solid;
}

.shop-notification.show {
    right: 20px;
}

.shop-notification.success {
    border-left-color: #10b981;
    color: #065f46;
}

.shop-notification.error {
    border-left-color: #ef4444;
    color: #991b1b;
}

.shop-notification.info {
    border-left-color: #3b82f6;
    color: #1e40af;
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .shop-sidebar {
        margin-bottom: 24px;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===========================
   PRODUCT DETAIL PAGE
   =========================== */

/* Product Images */
.product-images-section {
    position: sticky;
    top: 100px;
}

.product-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #f9fafb;
}

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

.product-discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #ef4444;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.product-wishlist-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--navy);
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
    background-color: var(--navy);
    color: var(--golden);
}

.product-wishlist-btn i.fas {
    color: #ef4444;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-thumbnail {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnail.active {
    border-color: var(--navy);
}

.product-thumbnail:hover {
    border-color: var(--golden);
}

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

/* Product Details */
.product-details-section {
    padding-left: 24px;
}

.product-header {
    margin-bottom: 20px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-rating-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-stars {
    display: flex;
    gap: 4px;
}

.rating-value {
    font-weight: 600;
    color: #111827;
}

.reviews-count {
    color: #6b7280;
    font-size: 0.9rem;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

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

.product-original-price {
    font-size: 1.5rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-save-amount {
    background-color: #d1fae5;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.product-meta {
    margin-bottom: 20px;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-stock.in-stock {
    background-color: #d1fae5;
    color: #065f46;
}

.product-stock.low-stock {
    background-color: #fef3c7;
    color: #92400e;
}

.product-sku {
    color: #6b7280;
    font-size: 0.9rem;
}

.product-short-desc {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.product-option-section {
    margin-bottom: 24px;
}

.product-option-label {
    display: block;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

/* Size Options */
.product-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.size-option-label {
    position: relative;
    cursor: pointer;
}

.size-option-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.size-option-label input {
    position: absolute;
    opacity: 0;
}

.size-option-label span {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
}

.size-option-label input:checked + span {
    border-color: var(--navy);
    background-color: var(--navy);
    color: var(--golden);
}

.size-option-label:hover:not(.disabled) span {
    border-color: var(--navy);
}

.size-guide-link {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
}

/* Color Options */
.product-color-options {
    display: flex;
    gap: 12px;
}

.color-option-label {
    position: relative;
    cursor: pointer;
}

.color-option-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.color-option-label input {
    position: absolute;
    opacity: 0;
}

.color-circle {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-option-label input:checked + .color-circle {
    border-color: var(--navy);
    transform: scale(1.1);
}

.color-option-label:hover:not(.disabled) .color-circle {
    transform: scale(1.1);
}

/* Quantity */
.product-quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.product-quantity input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 12px 8px;
    font-weight: 700;
    font-size: 1rem;
}

.product-quantity .quantity-btn {
    padding: 12px 16px;
    background-color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--navy);
}

.product-quantity .quantity-btn:hover {
    background-color: #f3f4f6;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.product-add-cart-btn,
.product-buy-now-btn {
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.product-add-cart-btn {
    background-color: var(--navy);
    color: var(--golden);
}

.product-add-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 41, 147, 0.25);
}

.product-buy-now-btn {
    background-color: var(--golden);
    color: white;
}

.product-buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(188, 158, 80, 0.25);
}

/* Delivery Info */
.product-delivery-info {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.delivery-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 50%;
    color: var(--navy);
    font-size: 18px;
    flex-shrink: 0;
}

.delivery-item strong {
    display: block;
    font-size: 0.95rem;
    color: #111827;
    margin-bottom: 4px;
}

.delivery-item p {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Product Tabs */
.product-tabs-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 40px;
}

.product-tabs-header {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 32px;
}

.product-tab {
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.product-tab:hover {
    color: var(--navy);
}

.product-tab.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.product-tabs-content {
    min-height: 300px;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.tab-panel-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-top: 24px;
    margin-bottom: 12px;
}

.tab-panel-text {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tab-panel-list {
    list-style: none;
    padding: 0;
}

.tab-panel-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
    color: #4b5563;
}

.tab-panel-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--golden);
    font-weight: 700;
}

.product-details-table {
    width: 100%;
    border-collapse: collapse;
}

.product-details-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.product-details-table th,
.product-details-table td {
    padding: 16px;
    text-align: left;
}

.product-details-table th {
    font-weight: 700;
    color: #111827;
    width: 200px;
}

.product-details-table td {
    color: #4b5563;
}

/* Reviews */
.reviews-summary {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.average-rating {
    font-size: 4rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 12px;
}

.average-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.total-reviews {
    color: #6b7280;
    font-size: 0.95rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.review-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--golden) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #10b981;
    margin-left: 8px;
}

.review-date {
    font-size: 0.85rem;
    color: #6b7280;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-comment {
    color: #4b5563;
    line-height: 1.6;
}

.write-review-btn {
    padding: 14px 32px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.write-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 41, 147, 0.25);
}

/* Related Products */
.related-products-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 32px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.related-product-image {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.1);
}

.related-product-info {
    padding: 16px;
}

.related-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.related-product-name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-product-name a:hover {
    color: var(--navy);
}

.related-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

/* ===========================
   CART PAGE
   =========================== */

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cart-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.cart-count {
    font-size: 0.95rem;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px 120px 50px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
}

.cart-item-image {
    width: 100px;
    aspect-ratio: 3/4;
    border-radius: 6px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.cart-item-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #6b7280;
}

.cart-item-price-mobile {
    display: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    width: 120px;
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    padding: 8px 4px;
    font-weight: 700;
}

.cart-item-quantity .quantity-btn {
    padding: 8px 12px;
    background-color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--navy);
}

.cart-item-quantity .quantity-btn:hover {
    background-color: #f3f4f6;
}

.cart-item-subtotal {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--navy);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background-color: var(--navy);
    color: var(--golden);
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 100px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}

.cart-summary-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
}

.coupon-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.coupon-label {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--navy);
}

.coupon-apply-btn {
    padding: 12px 20px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-apply-btn:hover {
    transform: translateY(-2px);
}

.coupon-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.coupon-message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.coupon-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #4b5563;
}

.price-row.total {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

.free-shipping-bar {
    background-color: #f3f4f6;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.free-shipping-text {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--navy) 0%, var(--golden) 100%);
    transition: width 0.3s ease;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 41, 147, 0.25);
}

.payment-methods {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.payment-methods-title {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 2rem;
    color: #9ca3af;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 6rem;
    color: #e5e7eb;
    margin-bottom: 24px;
}

.empty-cart h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.empty-cart p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.empty-cart-btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--navy);
    color: var(--golden);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.empty-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 41, 147, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-details-section {
        padding-left: 0;
        margin-top: 24px;
    }

    .product-images-section {
        position: relative;
        top: 0;
    }

    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr 80px 40px;
        gap: 12px;
        padding: 16px;
    }

    .cart-item-price,
    .cart-item-subtotal {
        display: none;
    }

    .cart-item-price-mobile {
        display: block;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-current-price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .product-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-actions {
        flex-direction: column;
    }

    .cart-item {
        grid-template-columns: 70px 1fr 70px 40px;
    }
}
