* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 0, 110, 0.2);
}

.header-top {
    background: linear-gradient(90deg, #ff006e, #ff4d94);
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.logo span {
    color: #ff006e;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: #d0d0d0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff006e;
}

.header-icons {
    display: flex;
    gap: 24px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: #d0d0d0;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
    position: relative;
}

.icon-btn:hover {
    color: #ff006e;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff006e;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.section {
    padding: 40px;
    max-width: 1920px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: #888;
}

.tab-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 28px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #d0d0d0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #ff006e;
    color: #ffffff;
    border-color: #ff006e;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.filters {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.filter-select {
    background: #0a0a0a;
    border: 1px solid #333;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 110, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.product-image {
    width: 100%;
    height: 340px;
    background: #0a0a0a;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-image::after {
    content: 'COD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: 900;
    color: rgba(255, 0, 110, 0.15);
    text-shadow: 0 0 40px rgba(255, 0, 110, 0.4);
    pointer-events: none;
}

.cod-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #ff006e;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.4);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff006e;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.5);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: #ff006e;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    min-height: 40px;
}

.product-category {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.product-rating {
    font-size: 14px;
    color: #ffd700;
    margin-bottom: 10px;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.original-price {
    color: #666;
    text-decoration: line-through;
    font-size: 13px;
}

.final-price {
    color: #ff006e;
    font-size: 22px;
    font-weight: 700;
}

.usd-price {
    color: #888;
    font-size: 12px;
    margin-bottom: 12px;
}

.add-to-cart-btn {
    width: 100%;
    background: #ff006e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: #ff4d94;
}

/* Reviews Section */
.reviews-section {
    padding: 60px 40px;
    background: #0f0f0f;
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.review-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

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

.review-name {
    font-weight: 600;
    color: #fff;
}

.verified-badge {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.review-rating {
    color: #ffd700;
    margin-bottom: 12px;
}

.review-text {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-date {
    color: #666;
    font-size: 12px;
}

/* Newsletter */
.newsletter {
    background: rgba(255, 0, 110, 0.05);
    padding: 48px 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 0, 110, 0.2);
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.newsletter p {
    color: #d0d0d0;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
}

.newsletter-form button {
    background: #ff006e;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #1a1a1a;
    padding: 48px 32px 24px;
    border-top: 1px solid rgba(255, 0, 110, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 32px;
}

.footer-section h3 {
    color: #ff006e;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff006e;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #333;
    color: #888;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: #1a1a1a;
    border-left: 1px solid #333;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-size {
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
}

.cart-item-price {
    color: #ff006e;
    font-weight: 600;
}

.cart-summary {
    padding: 24px;
    border-top: 1px solid #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333;
}

.checkout-btn {
    width: 100%;
    background: #ff006e;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex !important;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
}

.close-btn {
    background: none;
    border: none;
    color: #d0d0d0;
    font-size: 28px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.size-selector {
    margin: 24px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.size-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.size-btn.selected {
    background: #ff006e;
    border-color: #ff006e;
}

.size-btn.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
}

.order-success-content {
    background: linear-gradient(135deg, #1a1a1a, #2a1a2a);
    border: 2px solid #ff006e;
    border-radius: 24px;
    padding: 48px;
    max-width: 500px;
    text-align: center;
    animation: successPop 0.5s ease;
    box-shadow: 0 0 60px rgba(255, 0, 110, 0.5);
}

@keyframes successPop {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: #ff006e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.6);
}

.order-details-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.detail-row:last-child {
    border-bottom: none;
}

.success-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.track-btn,
.continue-btn {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.track-btn {
    background: #ff006e;
    color: white;
}

.continue-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: #888;
}

@media (max-width: 768px) {
    .filters-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .cart-drawer { width: 100%; right: -100%; }
}