/* Nasty Gal Design System */
:root {
    --ng-black: #000000;
    --ng-white: #ffffff;
    --ng-red: #ff0000;
    --ng-grey: #f5f5f5;
    --ng-grey-dark: #e0e0e0;
    --ng-text-muted: #666666;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--ng-black);
    overflow-x: hidden;
}

/* Typography */
.fw-black { font-weight: 900; }
.logo-text {
    font-family: var(--font-heading);
    letter-spacing: -1px;
    font-size: 2.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.small { font-size: 0.85rem; }
.x-small { font-size: 0.75rem; }

/* Header & Nav */
.announcement-bar {
    letter-spacing: 1px;
}

.main-header {
    z-index: 1020;
}

.search-container input {
    height: 45px;
}

.header-icons a {
    transition: opacity 0.2s;
}

.header-icons a:hover {
    opacity: 0.7;
}

.navbar-nav .nav-link {
    color: var(--ng-black) !important;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--ng-text-muted) !important;
}

/* Hero Carousel */
#hero-carousel .carousel-item {
    height: 80vh;
    min-height: 500px;
}

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

.carousel-caption {
    top: 30%;
    text-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.start-10 {
    left: 10% !important;
}

/* Circular Categories */
.cat-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    background-color: var(--ng-grey);
}

.cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cat-item:hover .cat-circle img {
    transform: scale(1.1);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s;
}

.product-image {
    background-color: var(--ng-grey);
    aspect-ratio: 2 / 3;
}

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

.hover-img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.product-card:hover .hover-img {
    opacity: 1;
}

.quick-add {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 5;
}

.product-card:hover .quick-add {
    opacity: 1 !important;
}

.product-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.max-width-500 {
    max-width: 500px;
}

.payment-icons img {
    filter: grayscale(1);
    opacity: 0.7;
    transition: 0.3s;
}

.payment-icons img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Utility */
.cursor-pointer { cursor: pointer; }

/* Mega Menu */
.mega-menu {
    position: static !important;
}

.mega-menu .dropdown-menu {
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    border: none !important;
    border-top: 1px solid var(--ng-grey) !important;
}

@media (min-width: 992px) {
    .mega-menu:hover .dropdown-menu {
        display: block;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }

    #hero-carousel .carousel-item {
        height: 60vh;
    }

    .cat-circle {
        width: 80px;
        height: 80px;
    }

    .carousel-caption {
        top: 20%;
        text-align: center !important;
        left: 0 !important;
        width: 100%;
        padding: 0 20px;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }
}

/* ===================== CART DRAWER ===================== */
.ng-cart-overlay,
.ng-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ng-cart-overlay.open,
.ng-mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.ng-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: var(--ng-white);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

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

.ng-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--ng-grey-dark);
    flex-shrink: 0;
}

.ng-cart-drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.ng-cart-drawer-header .badge {
    background: var(--ng-black);
    color: var(--ng-white);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 2px;
    font-weight: 600;
    margin-left: 8px;
}

.ng-cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ng-black);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s;
}

.ng-cart-close:hover {
    opacity: 0.6;
}

.ng-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.ng-cart-drawer-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--ng-grey-dark);
    flex-shrink: 0;
    background: var(--ng-white);
}

.ng-cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--ng-text-muted);
    margin-bottom: 0.4rem;
}

.ng-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--ng-grey-dark);
}

.ng-checkout-btn {
    display: block;
    background: var(--ng-black);
    color: var(--ng-white);
    text-align: center;
    padding: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
    margin-bottom: 0.75rem;
}

.ng-checkout-btn:hover {
    background: #222;
    color: var(--ng-white);
}

.ng-view-bag-link {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--ng-black);
    text-decoration: underline;
    letter-spacing: 0.5px;
}

/* Cart item inside drawer */
.ng-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--ng-grey);
}

.ng-cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    background: var(--ng-grey);
    flex-shrink: 0;
}

.ng-cart-item-details {
    flex: 1;
    min-width: 0;
}

.ng-cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.ng-cart-item-price {
    font-size: 0.85rem;
    color: var(--ng-text-muted);
    margin-bottom: 0.5rem;
}

.ng-cart-item-remove {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    color: var(--ng-text-muted);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.ng-cart-item-remove:hover {
    color: var(--ng-red);
}

.ng-qty-input {
    width: 60px;
    border: 1px solid var(--ng-grey-dark);
    text-align: center;
    padding: 0.2rem;
    font-size: 0.85rem;
}

.ng-empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ng-text-muted);
}

.ng-empty-cart i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--ng-grey-dark);
}

/* ===================== MOBILE DRAWER ===================== */
.ng-mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: var(--ng-white);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: left 0.35s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.ng-mobile-drawer.open {
    left: 0;
}

.ng-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--ng-grey-dark);
    flex-shrink: 0;
}

.ng-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
}

.ng-mobile-nav-item {
    border-bottom: 1px solid var(--ng-grey);
}

.ng-mobile-nav-item a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--ng-black);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.ng-mobile-nav-item a:hover {
    background: var(--ng-grey);
}

.ng-mobile-drawer-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--ng-grey-dark);
    flex-shrink: 0;
}

/* ===================== TOAST ===================== */
#ngToast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ng-black);
    color: var(--ng-white);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 2px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

#ngToast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===================== BUTTONS ===================== */
.btn-ng-black {
    background: var(--ng-black);
    color: var(--ng-white);
    border: 2px solid var(--ng-black);
    border-radius: 0;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    transition: background 0.2s, color 0.2s;
}

.btn-ng-black:hover {
    background: #222;
    color: var(--ng-white);
    border-color: #222;
}

.btn-ng-outline {
    background: transparent;
    color: var(--ng-black);
    border: 2px solid var(--ng-black);
    border-radius: 0;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    transition: background 0.2s, color 0.2s;
}

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

/* ===================== PRODUCT DETAIL ===================== */
.product-detail-images .main-image-wrap {
    background: var(--ng-grey);
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.product-detail-images .main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-detail-images .thumb-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 80px;
    flex-shrink: 0;
}

.product-detail-images .thumb-item {
    width: 80px;
    height: 100px;
    background: var(--ng-grey);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-detail-images .thumb-item.active,
.product-detail-images .thumb-item:hover {
    border-color: var(--ng-black);
}

.product-detail-images .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info .product-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.product-detail-info .price-wrap .original-price {
    text-decoration: line-through;
    color: var(--ng-text-muted);
    font-size: 1rem;
}

.product-detail-info .price-wrap .sale-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ng-red);
}

.product-detail-info .price-wrap .regular-price {
    font-size: 1.4rem;
    font-weight: 700;
}

.size-btn {
    min-width: 48px;
    height: 48px;
    border: 1px solid var(--ng-grey-dark);
    background: var(--ng-white);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover,
.size-btn.active {
    background: var(--ng-black);
    color: var(--ng-white);
    border-color: var(--ng-black);
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.color-swatch.active,
.color-swatch:hover {
    border-color: var(--ng-black);
    outline: 1px solid var(--ng-white);
    outline-offset: -4px;
}

.add-to-bag-btn {
    width: 100%;
    padding: 1rem;
    background: var(--ng-black);
    color: var(--ng-white);
    border: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.add-to-bag-btn:hover {
    background: #222;
}

.add-to-bag-btn:disabled {
    background: var(--ng-grey-dark);
    cursor: not-allowed;
}

.wishlist-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--ng-black);
    border: 2px solid var(--ng-black);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wishlist-btn:hover {
    background: var(--ng-black);
    color: var(--ng-white);
}

/* ===================== LISTING / FILTERS ===================== */
.filter-sidebar {
    position: sticky;
    top: 80px;
}

.filter-section {
    border-bottom: 1px solid var(--ng-grey-dark);
    padding: 1rem 0;
}

.filter-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.3rem 0;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ng-black);
}

.sort-select {
    border: 1px solid var(--ng-grey-dark);
    border-radius: 0;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: var(--ng-white);
    cursor: pointer;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ng-black);
    color: var(--ng-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    letter-spacing: 0.5px;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: var(--ng-white);
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

/* ===================== FOOTER ===================== */
footer a {
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--ng-grey-dark) !important;
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.7);
}

.footer-link:hover {
    color: var(--ng-white) !important;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    color: var(--ng-white) !important;
    font-size: 1rem;
    border-radius: 50%;
    transition: background 0.2s;
    text-decoration: none;
}

.social-icon-link:hover {
    background: rgba(255,255,255,0.25);
}

/* ===================== CART PAGE ===================== */
.cart-page-table th {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--ng-black);
    padding-bottom: 0.75rem;
}

.cart-page-table td {
    vertical-align: middle;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--ng-grey-dark);
}

.cart-page-img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    background: var(--ng-grey);
}

.cart-page-qty {
    width: 70px;
    border: 1px solid var(--ng-grey-dark);
    text-align: center;
    padding: 0.35rem;
    font-size: 0.9rem;
}

.cart-summary-box {
    background: var(--ng-grey);
    padding: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--ng-black);
    margin-top: 0.5rem;
}

/* ===================== CHECKOUT / STEPS ===================== */
.checkout-step-bar {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.checkout-field label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    border: 1px solid var(--ng-grey-dark);
    border-radius: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: var(--ng-black);
    box-shadow: none;
}

/* ===================== SELLER SHOP ===================== */
.seller-banner {
    height: 240px;
    background: var(--ng-grey);
    overflow: hidden;
}

.seller-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-logo-wrap {
    width: 90px;
    height: 90px;
    background: var(--ng-white);
    border: 3px solid var(--ng-white);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.seller-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================== ORDER CONFIRMED ===================== */
.order-confirmed-icon {
    width: 80px;
    height: 80px;
    background: var(--ng-black);
    color: var(--ng-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* ===================== BRANDS ===================== */
.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ng-grey-dark);
    padding: 1.5rem;
    height: 120px;
    background: var(--ng-white);
    transition: box-shadow 0.2s;
}

.brand-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.brand-card img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s;
}

.brand-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ===================== PAGINATION ===================== */
.ng-pagination .page-link {
    border-radius: 0;
    border: 1px solid var(--ng-grey-dark);
    color: var(--ng-black);
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
}

.ng-pagination .page-item.active .page-link {
    background: var(--ng-black);
    border-color: var(--ng-black);
    color: var(--ng-white);
}

.ng-pagination .page-link:hover {
    background: var(--ng-grey);
    color: var(--ng-black);
}

/* ===================== GENERAL UTILITIES ===================== */
.border-ng { border-color: var(--ng-grey-dark) !important; }
.bg-ng-grey { background-color: var(--ng-grey) !important; }
.text-ng-red { color: var(--ng-red) !important; }
.font-heading { font-family: var(--font-heading) !important; }

.ratio-2-3 {
    aspect-ratio: 2 / 3;
}

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

.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

/* Loading spinner */
.ng-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--ng-grey-dark);
    border-top-color: var(--ng-black);
    border-radius: 50%;
    animation: ng-spin 0.7s linear infinite;
}

@keyframes ng-spin {
    to { transform: rotate(360deg); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .ng-cart-drawer {
        width: 100vw;
    }

    .filter-sidebar {
        position: static;
    }
}

@media (max-width: 576px) {
    .ng-cart-drawer-header h3 {
        font-size: 0.9rem;
    }

    .product-detail-info .product-name {
        font-size: 1.3rem;
    }
}
