/*
Theme Name: DOMS Wholesale Theme
Theme URI: https://domsonline.in/
Author: DOMS Wholesale Partner
Description: Custom WooCommerce theme for wholesale stationery distribution.
Version: 1.0.1
Text Domain: doms-wholesale
Requires at least: 6.0
Requires PHP: 7.4
Requires Plugins: woocommerce
*/

:root {
    --bg-main: #0c0d10;
    --bg-card: #15171e;
    --bg-header: #08090b;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --border-color: #262933;
    --ticker-bg: #111318;
    --radius: 8px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* Announcement Ticker */
.announcement-bar {
    background-color: var(--ticker-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ticker-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-content {
        animation: none;
    }
}

/* Site Header */
.site-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.logo span {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.phone-cta {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    white-space: nowrap;
}

.cart-icon {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    background: radial-gradient(circle at 80% 20%, #1f2330 0%, var(--bg-main) 70%);
    border-bottom: 1px solid var(--border-color);
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #000000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #000000;
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    color: #ffffff;
    border-color: var(--accent);
}

.category-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav-inner {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-section .category-nav {
    margin-top: 40px;
}

.site-main > .category-nav {
    margin-bottom: 40px;
}

a.cat-tag {
    padding: 8px 18px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

a.cat-tag:hover {
    color: #ffffff;
    border-color: var(--accent);
}

/* Trust Section */
.trust-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.trust-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
}

.trust-card h3 {
    margin-top: 0;
    color: #ffffff;
}

.trust-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Product Catalogue Section */
.catalogue-section {
    padding: 70px 0;
}

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

.section-header h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.section-header p {
    color: var(--text-muted);
}

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

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card a {
    color: inherit;
}

.product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #1a1c24;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-card h3 {
    font-size: 1.05rem;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.price-box {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.price-box del {
    color: var(--text-muted);
    opacity: 0.7;
    margin-right: 6px;
}

.price-box .price-current {
    color: #ffffff;
    font-weight: 700;
}

.price-box .price-regular {
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.85em;
    text-decoration: line-through;
    margin: 0 4px;
}

.price-box .price-off {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.85em;
}

.product-card .add_to_cart_button,
.product-card .btn-order,
.btn-order {
    display: block;
    text-align: center;
    padding: 10px 14px;
    background-color: var(--accent);
    color: #000000;
    border-radius: var(--radius);
    font-weight: 600;
}

.product-card .add_to_cart_button:hover,
.product-card .btn-order:hover,
.btn-order:hover {
    background-color: var(--accent-hover);
    color: #000000;
}

/* Site Main & WooCommerce Overrides */
.site-main {
    padding: 50px 0;
    min-height: 60vh;
}

.entry-content {
    color: var(--text-muted);
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: #ffffff;
}

.woocommerce table.shop_table {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius);
    border-collapse: separate !important;
}

.woocommerce table.shop_table th {
    background: #1c1f28;
    color: #ffffff;
}

.woocommerce table.shop_table td {
    border-top: 1px solid var(--border-color) !important;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
    background: var(--bg-card);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
    background-color: #0c0d10 !important;
    color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    padding: 10px !important;
    border-radius: var(--radius) !important;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--accent) !important;
    color: #000000 !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    border: none !important;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--accent-hover) !important;
    color: #000000 !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-top-color: var(--accent) !important;
}

/* Hide product short description in the WooCommerce Cart/Checkout block order summary */
.wc-block-components-product-metadata__description {
    display: none !important;
}

/* Style WooCommerce's own product-loop markup (used by Related Products,
   Upsells, and Cross-sells) to match the .product-card grid look used
   elsewhere in the theme. */
.related.products,
.upsells.products,
.cross-sells {
    margin-top: 60px;
}

.related.products > h2,
.upsells.products > h2,
.cross-sells > h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    list-style: none;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    position: relative;
}

.woocommerce ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.woocommerce ul.products li.product .price {
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .price del {
    color: var(--text-muted);
    opacity: 0.7;
    font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    z-index: 1;
}

.woocommerce ul.products li.product .button {
    display: block;
    text-align: center;
    width: 100%;
}

/* Single product page: quantity input + Add to Cart / Buy Now buttons */
.single-product-layout form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 420px;
}

.single-product-layout form.cart .quantity {
    flex: 1 1 100%;
}

.single-product-layout .quantity input.qty {
    width: 100% !important;
    height: 48px;
    font-size: 1.05rem;
    text-align: center;
}

.single-product-layout .single_add_to_cart_button.button,
.single-product-layout .buy-now-button {
    flex: 1 1 0;
    padding: 16px 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-align: center;
    border-radius: var(--radius) !important;
    cursor: pointer;
    white-space: nowrap;
}

.single-product-layout .single_add_to_cart_button.button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1.5px solid #000000 !important;
}

.single-product-layout .single_add_to_cart_button.button:hover {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

.single-product-layout .buy-now-button {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1.5px solid #ffffff !important;
}

.single-product-layout .buy-now-button:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent) !important;
}

/* Product Tabs (Description / Reviews) */
.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 12px 20px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: #ffffff;
    border-bottom-color: var(--accent);
}

.woocommerce-tabs .panel {
    max-width: 700px;
}

.woocommerce-tabs .panel h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
}

/* Reviews */
#reviews.woocommerce-Reviews {
    max-width: 700px;
}

.woocommerce-Reviews-title {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 0 20px 0;
}

.woocommerce-noreviews {
    color: var(--text-muted);
}

.commentlist {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.commentlist .comment {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 15px;
}

.commentlist .comment_container {
    display: flex;
    gap: 14px;
}

.commentlist .avatar {
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

.commentlist .comment-text {
    flex: 1;
}

.commentlist .meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.commentlist .description p {
    color: var(--text-main);
    margin: 0;
}

/* Star rating widget (used in both reviews list and the rating form field) */
.star-rating,
p.stars {
    overflow: visible;
    display: inline-block;
}

.star-rating {
    font-size: 0;
    line-height: 1;
}

p.stars a {
    display: inline-block;
    width: 24px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    text-indent: -9999px;
    position: relative;
    cursor: pointer;
}

p.stars a::before {
    content: "\2606";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    text-indent: 0;
    font-size: 20px;
    line-height: 22px;
    color: var(--text-muted);
}

p.stars a:hover::before,
p.stars a.active::before,
p.stars.selected a.active::before {
    content: "\2605";
    color: var(--accent);
}

.star-rating span {
    color: var(--accent);
}

/* Review form */
#review_form #respond {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

#review_form #respond .comment-reply-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 0 18px 0;
    display: block;
}

.comment-form-rating,
.comment-form-comment,
.comment-form-author,
.comment-form-email {
    margin-bottom: 18px;
}

.comment-form-rating label,
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 8px;
}

.comment-form-rating .required,
.comment-form-comment .required,
.comment-form-author .required,
.comment-form-email .required {
    color: var(--accent);
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.form-submit input[type="submit"] {
    width: auto;
    padding: 12px 28px !important;
}

.woocommerce-pagination {
    display: none;
}

.doms-infinite-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Site Footer */
.site-footer {
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    text-align: center;
    font-size: 0.8rem;
}

/* 404 */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.error-404 p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Responsive breakpoints */
@media (max-width: 782px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-section {
        padding: 50px 0 40px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-product-layout {
        grid-template-columns: 1fr !important;
    }

    .trust-section,
    .catalogue-section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
