/* RIXX E-Commerce - Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --white: #ffffff;
    --gray: #333333;
    --gray-light: #666666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(10, 10, 10, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gold);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 3px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: var(--gold);
}

.cart-btn {
    background: var(--gold);
    color: var(--black);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
}

.cart-btn:hover {
    background: var(--gold-light);
}

.cart-count {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 5px;
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 120px 0;
    text-align: center;
    border-bottom: 2px solid var(--gold);
}

.hero-title {
    font-size: 64px;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--gray-light);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.page-title {
    font-size: 48px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

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

.product-card {
    background: var(--gray);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

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

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: var(--black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-new { background: #4CAF50; color: white; }
.badge-sale { background: #f44336; color: white; }
.badge-hot { background: #ff9800; color: white; }
.badge-featured { background: var(--gold); }
.badge-soldout { background: #666; color: white; }

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 20px;
}

.category {
    color: var(--gray-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.price-section {
    margin: 15px 0;
}

.price {
    color: var(--gold);
    font-size: 24px;
    font-weight: bold;
}

.old-price {
    color: var(--gray-light);
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 18px;
}

.stock {
    font-size: 14px;
    margin-top: 10px;
}

.in-stock { color: #4CAF50; }
.out-of-stock { color: #f44336; }

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-image-large {
    position: relative;
}

.product-image-large img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--gold);
}

.product-info-large h1 {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 15px;
}

.price-section-large {
    margin: 30px 0;
}

.price-large {
    color: var(--gold);
    font-size: 36px;
    font-weight: bold;
}

.stock-info {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: bold;
}

.stock-info.in-stock {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
}

.stock-info.out-of-stock {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
}

.product-description {
    margin: 30px 0;
}

.product-description h3 {
    color: var(--gold);
    margin-bottom: 15px;
}

.quantity-selector {
    margin: 30px 0;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
}

.quantity-selector input {
    width: 100px;
    padding: 10px;
    font-size: 18px;
    background: var(--gray);
    border: 1px solid var(--gold);
    color: var(--white);
    border-radius: 5px;
}

/* Cart */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    align-items: center;
    background: var(--gray);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--gold);
    color: var(--black);
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
}

.quantity-controls input {
    width: 60px;
    padding: 5px;
    text-align: center;
    background: var(--black);
    border: 1px solid var(--gold);
    color: var(--white);
    border-radius: 5px;
}

.remove-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.cart-summary {
    background: var(--gray);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    color: var(--gold);
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 18px;
}

.summary-row.total {
    border-top: 2px solid var(--gold);
    padding-top: 15px;
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart p {
    font-size: 24px;
    color: var(--gray-light);
    margin-bottom: 30px;
}

/* Checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.checkout-form h2 {
    color: var(--gold);
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--gray);
    border: 1px solid var(--gold);
    color: var(--white);
    border-radius: 5px;
    font-size: 16px;
}

.form-group small {
    display: block;
    color: var(--gray-light);
    margin-top: 5px;
    font-size: 14px;
}

.payment-info {
    background: var(--gray);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid var(--gold);
}

.payment-info h3 {
    color: var(--gold);
    margin-bottom: 15px;
}

.payment-details p {
    margin: 10px 0;
    font-size: 16px;
}

.payment-details strong {
    color: var(--gold);
}

.instruction {
    margin-top: 15px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 5px;
    border-left: 3px solid var(--gold);
}

.checkout-summary {
    background: var(--gray);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h3 {
    color: var(--gold);
    margin-bottom: 20px;
}

.order-items {
    margin: 20px 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gold);
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
}

/* Thank You Page */
.thankyou-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto 30px;
}

.thankyou-content h1 {
    color: var(--gold);
    font-size: 42px;
    margin-bottom: 20px;
}

.thankyou-message {
    font-size: 18px;
    color: var(--gray-light);
    margin-bottom: 30px;
}

.order-info {
    background: var(--gray);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border: 2px solid var(--gold);
}

.order-info p {
    margin: 10px 0;
    font-size: 18px;
}

.thankyou-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background: var(--gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--gold);
}

.contact-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.contact-item h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--gold);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-light);
}

/* Footer */
.footer {
    background: var(--gray);
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid var(--gold);
    margin-top: 80px;
}

/* Utility */
.text-center {
    text-align: center;
    margin: 40px 0;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--gray-light);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 20px;
    color: var(--gray-light);
}

/* Notification */
.notification {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: var(--gold);
    color: var(--black);
    padding: 20px 30px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: bottom 0.3s;
    z-index: 10000;
}

.notification.show {
    bottom: 20px;
}

/* Filters */
.shop-filters {
    margin-bottom: 40px;
    text-align: center;
}

.shop-filters select {
    padding: 12px 20px;
    background: var(--gray);
    border: 1px solid var(--gold);
    color: var(--white);
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 42px; }
    .section-title { font-size: 32px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .product-detail { grid-template-columns: 1fr; }
    .cart-container { grid-template-columns: 1fr; }
    .checkout-container { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 80px 1fr; }
    .quantity-controls { grid-column: 1 / -1; margin-top: 10px; }
    .item-total { grid-column: 1 / -1; }
    .nav { flex-direction: column; gap: 10px; }
    .header-content { flex-direction: column; gap: 20px; }
}
