/* IRA-inspired Luxury Minimal Theme */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --text-dark: #000000;
    --text-light: #666666;
    --text-muted: #999999;
    --border-light: #e5e5e5;
    --hover-gray: #333333;
    --bg-light: #f8f8f8;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--primary-white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - IRA style */
h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--hover-gray);
}

/* Navbar - Minimal IRA style */
.navbar-luxury {
    background: var(--primary-white);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-luxury .navbar-brand {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.navbar-luxury .nav-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    padding: 10px 20px;
}

.navbar-luxury .nav-link:hover {
    color: var(--text-light);
}

.navbar-luxury .nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-luxury .nav-icons a {
    font-size: 18px;
    color: var(--text-dark);
}

.navbar-luxury .cart-count {
    position: relative;
}

.navbar-luxury .cart-count span {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--text-dark);
    color: var(--primary-white);
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner .hero-content {
    text-align: center;
    z-index: 2;
}

.hero-banner h1 {
    font-size: 56px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 70vh;
    min-height: 500px;
}

.hero-slideshow .carousel {
    height: 100%;
}

.hero-slideshow .carousel-inner {
    height: 100%;
}

.hero-slideshow .carousel-item {
    height: 100%;
}

.hero-slideshow .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.hero-slideshow .carousel-caption {
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 50px;
    border-radius: 4px;
    max-width: 600px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 50%;
    bottom: auto;
    text-align: center;
}

.hero-slideshow .carousel-caption h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-slideshow .carousel-caption p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #fff;
}

.hero-slideshow .carousel-indicators button {
    background-color: #fff;
    opacity: 0.6;
}

.hero-slideshow .carousel-indicators button.active {
    opacity: 1;
}

.hero-slideshow .carousel-control-prev-icon,
.hero-slideshow .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
}

/* Hero Slideshow Responsive */
@media (max-width: 991px) {
    .hero-slideshow {
        height: 50vh;
        min-height: 400px;
    }
    .hero-slideshow .carousel-caption {
        position: absolute !important;
        padding: 20px 30px;
        max-width: 80% !important;
        width: 80% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        top: 50% !important;
        bottom: auto !important;
        text-align: center;
        margin: 0 !important;
    }
    .hero-slideshow .carousel-caption h1 {
        font-size: 32px;
    }
    .hero-slideshow .carousel-caption p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    .hero-slideshow .carousel-caption {
        position: absolute !important;
        padding: 15px 20px;
        max-width: 90% !important;
        width: 90% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        top: 50% !important;
        bottom: auto !important;
        text-align: center;
        margin: 0 !important;
    }
    .hero-slideshow .carousel-caption h1 {
        font-size: 24px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }
    .hero-slideshow .carousel-caption p {
        font-size: 12px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    .hero-slideshow .carousel-caption .btn-luxury {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Buttons - IRA style */
.btn-luxury {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-black);
    color: var(--primary-white);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-luxury-outline {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-black);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--primary-black);
    cursor: pointer;
    transition: var(--transition);
}

.btn-luxury-outline:hover {
    background: var(--primary-black);
    color: var(--primary-white);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-card-luxury {
    background: var(--primary-white);
    transition: var(--transition);
    padding: 15px;
    border-radius: 4px;
}

.product-card-luxury:hover {
    transform: translateY(-5px);
}

.product-card-luxury:hover .product-info {
    background: transparent;
}

.product-card-luxury:hover .product-name {
    color: var(--text-dark);
}

.product-card-luxury:hover .product-price {
    color: var(--text-light);
}

.product-image-container {
    position: relative;
    height: 280px;
    background: var(--bg-light);
    overflow: hidden;
    margin-bottom: 15px;
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
    background: var(--bg-light);
}

.product-card-luxury .product-name {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    color: var(--text-dark);
    text-align: center;
    display: block;
}

.product-card-luxury .product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.product-card-luxury .add-to-cart-btn {
    display: flex;
    justify-content: center;
}

.product-card-luxury .add-to-cart-btn .btn-luxury {
    padding: 8px 16px;
    font-size: 11px;
}

.product-card-luxury .product-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    text-align: right;
    display: block;
}

/* Collection Banner */
.collection-banner {
    background: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.collection-banner h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.collection-banner p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Newsletter */
.newsletter-section {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.newsletter-section h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.newsletter-section p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-bottom: 1px solid var(--primary-black);
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 15px 0;
    font-size: 14px;
    background: transparent;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

/* Footer - Minimal */
.footer-luxury {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 60px 0 30px;
}

.footer-luxury h4 {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--primary-white);
}

.footer-luxury ul {
    list-style: none;
    padding: 0;
}

.footer-luxury li {
    margin-bottom: 10px;
}

.footer-luxury a {
    color: #999;
    font-size: 13px;
    transition: var(--transition);
}

.footer-luxury a:hover {
    color: var(--primary-white);
}

.footer-luxury .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* Product Detail Page */
.product-detail {
    padding: 60px 0;
}

.product-detail-image {
    background: var(--bg-light);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-detail-description {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
}

.quantity-input input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-right: 1px solid var(--border-light);
}

.quantity-input button {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Cart Page */
.cart-page {
    padding: 60px 0;
}

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

.cart-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: var(--bg-light);
}

.cart-summary {
    background: var(--bg-light);
    padding: 30px;
    text-align: right;
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-row.total {
    border-bottom: none;
    font-size: 18px;
    font-weight: 600;
}

/* Checkout Page */
.checkout-page {
    padding: 60px 0;
}

.checkout-form h3 {
    font-size: 18px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-light);
    font-size: 14px;
    background: transparent;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-black);
}

/* Login Page */
.login-page {
    padding: 80px 0;
    max-width: 400px;
    margin: 0 auto;
}

.login-page h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

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

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 0;
}

.alert-success {
    background: #f0f0f0;
    color: var(--text-dark);
}

.alert-danger {
    background: #f0f0f0;
    color: var(--text-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    color: #000;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 4px !important;
}

.pagination .page-link:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination .page-item.active .page-link {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.pagination .page-item.disabled .page-link {
    color: #999;
    background: #f9f9f9;
    border-color: #e0e0e0;
}

/* Responsive Pagination */
@media (max-width: 576px) {
    .pagination .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
        padding: 0 8px;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 18px; }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card-luxury {
        padding: 10px;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .btn-luxury {
        padding: 8px 15px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-container {
        height: 220px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .footer-luxury {
        padding: 40px 0 20px;
    }
    
    .footer-luxury .col-lg-3 {
        margin-bottom: 30px;
    }
    
    .product-detail-image {
        height: 300px;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: flex;
        flex-direction: column;
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #000;
    }
    
    .checkout-form,
    .order-summary {
        padding: 20px;
    }
    
    .newsletter-section {
        padding: 30px 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
        border-bottom: none;
    }
    
    .newsletter-form input {
        border-bottom: 1px solid #000;
        padding: 10px 0;
        margin-bottom: 10px;
    }
    
    .collection-banner {
        padding: 40px 15px;
    }
    
    .collection-banner h2 {
        font-size: 24px;
    }
}

/* Admin Pagination Styling */
.admin-page .pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.admin-page .pagination .page-item {
    margin: 0 2px;
}

.admin-page .pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    color: #000;
    font-size: 13px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 4px !important;
}

.admin-page .pagination .page-link:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.admin-page .pagination .page-item.active .page-link {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.admin-page .pagination .page-item.disabled .page-link {
    color: #999;
    background: #f9f9f9;
    border-color: #dee2e6;
}

/* Standardized Image Display for Cart and Product Lists */
.cart-product img,
.product-grid .product-image img,
.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-product .placeholder-image,
.product-grid .placeholder-image {
    width: 80px;
    height: 80px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Ensure consistent image display in cart items */
.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    flex-shrink: 0;
    object-fit: cover;
}

.cart-product-info {
    display: flex;
    flex-direction: column;
}

.cart-product-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-product-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}

/* Price Display - Superscript decimals */
.price-display {
    display: inline-flex;
    align-items: flex-start;
    line-height: 1;
}

.price-whole {
    font-weight: 600;
}

.price-decimal {
    font-size: 0.65em;
    vertical-align: super;
    margin-left: 1px;
}