:root {
    --color-black: #080808;
    --color-deep-burgundy: #5a0e1a;
    --color-dark-burgundy: #40000d;
    --color-silver: #c0c0c0;
    --color-light-silver: #e0e0e0;
    --color-text: #dcdcdc;
    --font-heading: 'Cinzel Decorative', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-light-silver);
    font-weight: 400;
}

a {
    color: var(--color-silver);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-deep-burgundy);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page {
    display: none;
    padding: 4rem 0;
    animation: fadeIn 0.8s ease-in-out;
    padding-top: 120px;
}

.page.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--color-silver);
    border: 1px solid var(--color-silver);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn:hover {
    background-color: var(--color-silver);
    color: var(--color-black);
}

.btn-primary {
    background-color: var(--color-deep-burgundy);
    border-color: var(--color-deep-burgundy);
    color: var(--color-light-silver);
}

.btn-primary:hover {
    background-color: #7c1323;
    border-color: #7c1323;
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--color-deep-burgundy);
}

/* Login Icon Fixes */
.login-icon {
    cursor: pointer !important;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-silver);
    border-radius: 1px;
    transition: all 0.3s ease;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-icon:hover {
    background: rgba(90, 14, 26, 0.1);
    border-color: var(--color-deep-burgundy);
    transform: translateY(-1px);
}

.login-icon.account-icon {
    background: rgba(90, 14, 26, 0.2);
    border-color: var(--color-deep-burgundy);
}

.login-icon.account-icon:hover {
    background: rgba(90, 14, 26, 0.3);
}

#login-text {
    cursor: pointer !important;
    user-select: none;
}

.login-icon *,
.login-icon {
    cursor: pointer !important;
}

@media (max-width: 768px) {
    .login-icon {
        padding: 0.4rem 0.8rem;
        font-size: 0.5rem;
    }
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid var(--color-silver);
    border-radius: 5px;
    text-align: center;
}

.login-options {
    margin-top: 1rem;
    text-align: right;
}

.forgot-password {
    color: var(--color-silver);
    font-size: 0.9rem;
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--color-deep-burgundy);
}

/* Sign up Link */
.signup-link {
    text-align: center;
    margin-top: 1.5rem;
}

.signup-text {
    color: var(--color-silver);
    font-size: 0.9rem;
    text-decoration: none;
}

.signup-text:hover {
    color: var(--color-deep-burgundy);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 1.5rem 0;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-light-silver);
    font-weight: 700;
}

.logo span {
    color: var(--color-deep-burgundy);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 2.5rem;
}

.main-nav ul li a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding-bottom: 5px;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-deep-burgundy);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after, .main-nav ul li a.active::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
}

.cart-icon {
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    margin-left: 2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-deep-burgundy);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
}

/* Hero Section */
.hero {
    height: auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(8, 8, 8, 0.7), rgba(8, 8, 8, 0.7)), url('images/home bg.jpeg') no-repeat center center/cover;
    position: relative;
    padding-bottom: 2rem;
}

.hero-content {
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
}

#home-page.active .hero-content {
    animation: slideInUp 1s ease-out forwards 0.5s;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid var(--color-silver);
    border-radius: 5px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: var(--color-light-silver);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: #222;
    border: 1px solid var(--color-silver);
    color: var(--color-text);
    font-family: var(--font-body);
    border-radius: 4px;
    resize: vertical;
}

.form-group textarea {
    height: 150px;
    margin-top: 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-deep-burgundy);
    box-shadow: 0 0 5px rgba(90, 14, 26, 0.5);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    .form-group {
        flex: none;
    }
}

/* Contact Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background-color: rgba(34, 139, 34, 0.2);
    color: #90EE90;
    border: 1px solid #228B22;
}

.form-message.error {
    background-color: rgba(220, 20, 60, 0.2);
    color: #FF6B6B;
    border: 1px solid #DC143C;
}

.form-message.loading {
    background-color: rgba(192, 192, 192, 0.2);
    color: var(--color-silver);
    border: 1px solid var(--color-silver);
}

.form-message.loading::after {
    content: " ⏳ Sending...";
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.carousel-container {
    padding: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    position: relative;
}

.carousel-scroll {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Unified Product Card Styling */
.product-card {
    background: #111;
    border: 1px solid #222;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 300px;
    height: 420px;
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.product-image {
    height: 300px;
    width: 300px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    line-height: 1.3;
}

.product-info .price {
    color: var(--color-silver);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .carousel-scroll {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 260px;
        height: 380px;
    }
    
    .product-image {
        width: 260px;
        height: 260px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .carousel-scroll {
        gap: 0.8rem;
    }
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-silver);
    font-size: 1.2rem;
}

.carousel-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Brand Story */
.brand-story {
    background-color: #111;
    padding: 5rem 0;
}

.brand-story .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.story-image { flex: 1; }
.story-content { flex: 1; }
.story-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.story-content p { margin-bottom: 2rem; }

/* Footer */
.main-footer {
    background: #000;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--color-deep-burgundy);
}

.social-links a {
    margin: 0 1rem;
    font-size: 1.5rem;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #777;
}

@media (max-width: 992px) {
    .brand-story .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-black);
        flex-direction: column;
        padding: 1rem 0;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul li {
        margin: 0;
        text-align: center;
    }
    .main-nav ul li a {
        display: block;
        padding: 1rem;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 2rem; }
}

/* Category Header */
.category-header {
    text-align: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(rgba(8, 8, 8, 0.8), rgba(8, 8, 8, 0.8)), url('images/home bg.jpg') center center/cover;
    color: #fff;
}

.category-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: #111;
    border: 1px solid #222;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
}

.product-category-page .category-header .btn {
    display: inline-block;
    margin-top: 1rem;
}

.contact-home-section {
    background-color: #111;
    padding: 5rem 0;
    margin-top: 4rem;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--color-deep-burgundy);
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}

.filter-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background-color: rgba(8, 8, 8, 0.9);
    padding: 1rem 2rem;
    border: 1px solid var(--color-silver);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.filter-search {
    padding: 0.6rem 2.5rem 0.6rem 2.5rem;
    font-size: 1rem;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid var(--color-silver);
    color: var(--color-text);
    border-radius: 4px;
    width: 250px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.filter-search:focus {
    outline: none;
    border-color: var(--color-deep-burgundy);
    box-shadow: 0 0 8px rgba(90, 14, 26, 0.7);
}

.filter-search::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-silver);
}

.filter-search {
    padding-left: 2.5rem;
}

.filter-sort {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid var(--color-silver);
    color: var(--color-text);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-sort:focus {
    outline: none;
    border-color: var(--color-deep-burgundy);
    box-shadow: 0 0 8px rgba(90, 14, 26, 0.7);
}

.filter-stock {
    display: flex;
    align-items: center;
    color: var(--color-light-silver);
    font-size: 1rem;
    font-family: var(--font-body);
}

.filter-stock input {
    margin-right: 0.5rem;
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--color-silver);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    background-color: var(--color-black);
    transition: background-color 0.3s ease;
}

.filter-stock input:checked {
    background-color: var(--color-deep-burgundy);
}

.filter-stock input:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-light-silver);
    font-size: 0.8rem;
}

.in-stock {
    color: var(--color-deep-burgundy);
    font-size: 0.9rem;
    font-weight: 600;
}

.out-of-stock {
    color: #777;
    font-size: 0.9rem;
    font-style: italic;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .filter-box {
        padding: 0.8rem 1rem;
        gap: 1rem;
    }
    .filter-search {
        width: 180px;
        padding: 0.5rem 2rem 0.5rem 2.2rem;
    }
    .filter-sort {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .filter-stock {
        font-size: 0.9rem;
    }
    .filter-stock input {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 480px) {
    .filter-box {
        padding: 0.5rem 0.8rem;
        gap: 0.5rem;
    }
    .filter-search {
        width: 140px;
        padding: 0.4rem 1.8rem 0.4rem 1.8rem;
        font-size: 0.8rem;
    }
    .filter-sort {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .filter-stock {
        font-size: 0.8rem;
    }
    .filter-stock input {
        width: 0.9rem;
        height: 0.9rem;
    }
}

.pdp-container {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.pdp-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 1px solid var(--color-silver);
}

.pdp-info {
    flex: 1;
}

.pdp-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pdp-price {
    font-size: 1.5rem;
    color: var(--color-silver);
    margin-bottom: 1.5rem;
}

.pdp-select {
    padding: 0.6rem 1rem;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid var(--color-silver);
    color: var(--color-text);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 200px;
}

#add-to-cart-pdp, #buy-now {
    margin-right: 1rem;
    width: 48%;
}

@media (max-width: 768px) {
    .pdp-container {
        flex-direction: column;
        text-align: center;
    }
    .pdp-image {
        width: 100%;
        height: auto;
    }
    #add-to-cart-pdp, #buy-now {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Cart Styles */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #111;
    border: 1px solid #222;
    margin-bottom: 1rem;
}

.cart-image {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--color-silver);
}

.quantity-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(90, 14, 26, 0.9);
    padding: 0.25rem;
}

.quantity-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

.quantity {
    color: #fff;
    font-size: 1rem;
    padding: 0 0.5rem;
}

.cart-info {
    flex: 1;
}

.cart-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cart-info .price {
    color: var(--color-silver);
    font-size: 1.1rem;
    font-weight: 600;
}

.delete-btn {
    background: none;
    border: 1px solid var(--color-silver);
    color: var(--color-silver);
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: var(--color-deep-burgundy);
    color: #fff;
}

/* Account Page Styles */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-silver);
}

#logout-btn {
    background: var(--color-deep-burgundy);
    color: var(--color-light-silver);
}

#logout-btn:hover {
    background: #7c1323;
}

.account-section {
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid var(--color-silver);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.account-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-light-silver);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-item label {
    font-weight: 600;
    color: var(--color-light-silver);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-value {
    padding: 0.8rem;
    background: #222;
    border: 1px solid var(--color-silver);
    color: var(--color-text);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.profile-value:focus {
    outline: none;
    border-color: var(--color-deep-burgundy);
    box-shadow: 0 0 8px rgba(90, 14, 26, 0.3);
}

.profile-value.editable {
    background: #111;
}

.profile-value.editable:focus {
    background: #000;
}

.edit-btn {
    background: none;
    border: 1px solid var(--color-deep-burgundy);
    color: var(--color-deep-burgundy);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.edit-btn:hover {
    background: var(--color-deep-burgundy);
    color: var(--color-light-silver);
}

#profile-save-section {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.orders-grid {
    display: grid;
    gap: 1.5rem;
}

.order-card {
    background: #222;
    border: 1px solid var(--color-silver);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info {
    flex: 1;
}

.order-id {
    font-size: 0.9rem;
    color: var(--color-silver);
    margin-bottom: 0.5rem;
}

.order-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

.order-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-light-silver);
}

.order-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: rgba(255, 193, 7, 0.2); color: #ffc107; border: 1px solid #ffc107; }
.status-shipped { background: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid #28a745; }
.status-delivered { background: rgba(0, 123, 255, 0.2); color: #007bff; border: 1px solid #007bff; }
.status-cancelled { background: rgba(220, 53, 69, 0.2); color: #dc3545; border: 1px solid #dc3545; }

.no-orders {
    text-align: center;
    padding: 3rem;
    color: var(--color-silver);
}

.no-orders a {
    color: var(--color-deep-burgundy);
    text-decoration: none;
}

.no-orders a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .account-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .order-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.cart-actions {
    margin-bottom: 2rem;
    text-align: right;
}

#proceed-to-buy {
    width: 200px;
}

.cart-item-checkbox {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.cart-item-checkbox input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.cart-image {
    margin-left: 2.5rem;
}

@media (max-width: 768px) {
    .cart-item-checkbox {
        top: 0.5rem;
        left: 0.5rem;
    }
    .cart-image {
        margin-left: 2.5rem;
    }
}

.checkout-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.checkout-address, .checkout-items {
    flex: 1;
    min-width: 300px;
    background: rgba(17, 17, 17, 0.9);
    padding: 2rem;
    border: 1px solid var(--color-silver);
    border-radius: 8px;
}

.checkout-address h3, .checkout-items h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.address-display {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

#address-form .form-group {
    margin-bottom: 1.5rem;
}

#address-form input {
    width: 100%;
    padding: 0.8rem;
    background: #222;
    border: 1px solid var(--color-silver);
    color: var(--color-text);
    border-radius: 4px;
}

#edit-address-btn {
    margin-top: 1rem;
}

.checkout-items .cart-item {
    margin-bottom: 1.5rem;
}

.checkout-subtotal, .checkout-shipping, .checkout-total {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1rem 0;
    text-align: right;
}

#proceed-to-payment {
    width: 100%;
}

.payment-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(17, 17, 17, 0.9);
    padding: 2rem;
    border: 1px solid var(--color-silver);
    border-radius: 8px;
}

.payment-methods {
    margin: 2rem 0;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.payment-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--color-text);
}

.payment-options input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

#confirm-payment {
    width: 100%;
}

.stock-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    background: rgba(0,0,0,0.7);
}

/* PDP - Multiple Images Gallery */
.pdp-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pdp-main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background: #111;
}

.pdp-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.25s ease;
}

.pdp-main-image-container:hover .pdp-main-image {
    transform: scale(1.08);   /* gentle zoom on hover */
}

.pdp-thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pdp-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.75;
}

.pdp-thumbnail.active,
.pdp-thumbnail:hover {
    border-color: #c0a062;   /* gold / your brand color */
    opacity: 1;
    transform: scale(1.08);
}
.pdp-description {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    border: 1px solid var(--color-silver);
}

.pdp-description h4 {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    color: var(--color-gold);
}

.pdp-description p {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #ddd;
    white-space: pre-line;   /* preserves line breaks better than just <br> */
}

/* Responsive */
@media (min-width: 768px) {
    .pdp-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .pdp-main-image-container {
        flex: 1;
        max-width: 55%;
    }
    
    .pdp-info {
        flex: 1;
        padding-left: 2rem;
    }
}