/* ==========================================================================
   Dorano Base — Resets, Typography, Layout, Forms, WooCommerce Basics
   Replaces Astra's base CSS for the standalone Dorano theme.
   ========================================================================== */

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

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dorano-text);
    background: var(--dorano-off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dorano-main);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1em;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

figure {
    margin: 0;
}

blockquote {
    margin: 0 0 1em;
    padding: 1em 1.5em;
    border-left: 4px solid var(--dorano-gold);
    background: var(--dorano-off-white);
    font-style: italic;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

th, td {
    padding: 10px 14px;
    border: 1px solid var(--dorano-light-gray);
    text-align: left;
}

th {
    background: var(--dorano-off-white);
    font-weight: 600;
}

pre, code {
    font-family: Consolas, Monaco, "Andale Mono", monospace;
    font-size: 0.9em;
}

pre {
    background: var(--dorano-off-white);
    padding: 1em;
    overflow-x: auto;
    border-radius: 4px;
}

hr {
    border: none;
    border-top: 1px solid var(--dorano-light-gray);
    margin: 2em 0;
}

/* ---------- Container ---------- */
.dorano-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ---------- Layout: Site Structure ---------- */
#page {
    overflow-x: hidden;
}

.site-content {
    min-height: 50vh;
}

/* Full-width content (no sidebar) */
.site-content .dorano-container {
    padding-top: 40px;
    padding-bottom: 40px;
}

#primary {
    width: 100%;
    min-width: 0;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dorano-text);
    background: var(--dorano-white);
    border: 1px solid var(--dorano-light-gray);
    border-radius: 4px;
    transition: border-color var(--dorano-transition), box-shadow var(--dorano-transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--dorano-gold);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
    outline: none;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

/* ---------- Buttons ---------- */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none;
}

/* ---------- Dorano Utility Button Classes ---------- */
.dorano-btn-gold {
    background: var(--dorano-gradient-gold) !important;
    color: var(--dorano-white) !important;
    border: none !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px !important;
    transition: all var(--dorano-transition) !important;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.dorano-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,168,76,0.4) !important;
    color: var(--dorano-white) !important;
}

.dorano-btn-gold-outline {
    border: 2px solid var(--dorano-gold) !important;
    color: var(--dorano-gold) !important;
    background: transparent !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all var(--dorano-transition) !important;
}

.dorano-btn-gold-outline:hover {
    background: var(--dorano-gold) !important;
    color: var(--dorano-white) !important;
}

.dorano-btn-dark {
    background: var(--dorano-main) !important;
    color: var(--dorano-white) !important;
    border: none !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all var(--dorano-transition) !important;
}

.dorano-btn-dark:hover {
    background: var(--dorano-secondary) !important;
    color: var(--dorano-white) !important;
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--dorano-off-white);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--dorano-main);
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 100000;
    padding: 8px 16px;
    background: var(--dorano-gold);
    color: var(--dorano-main);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ---------- WordPress Classes ---------- */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.alignwide {
    margin-left: -40px;
    margin-right: -40px;
    max-width: calc(100% + 80px);
    overflow-x: hidden;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--dorano-text-light);
    text-align: center;
    padding: 8px 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1em;
}

.gallery-item {
    flex: 1 0 calc(33.333% - 8px);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Blog / Entry Styles ---------- */
.entry-header {
    margin-bottom: 1.5em;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.25em;
}

.entry-title a {
    color: var(--dorano-main);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--dorano-gold);
}

.entry-meta {
    font-size: 13px;
    color: var(--dorano-text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.entry-meta a {
    color: var(--dorano-text-light);
}

.entry-meta a:hover {
    color: var(--dorano-gold);
}

.entry-meta svg {
    vertical-align: middle;
    margin-top: -2px;
}

.entry-content {
    line-height: 1.8;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-footer {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid var(--dorano-light-gray);
    font-size: 13px;
    color: var(--dorano-text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.entry-footer a {
    color: var(--dorano-text-light);
}

.entry-footer a:hover {
    color: var(--dorano-gold);
}

article.post,
article.page {
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 1px solid var(--dorano-light-gray);
}

article.post:last-child,
article.page:last-child {
    border-bottom: none;
}

.post-thumbnail {
    margin-bottom: 1.5em;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Post Navigation ---------- */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid var(--dorano-light-gray);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    color: var(--dorano-main);
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    color: var(--dorano-gold);
}

/* ---------- Pagination ---------- */
.pagination,
.woocommerce-pagination {
    margin: 2em 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--dorano-light-gray);
    border-radius: 4px;
    text-decoration: none;
    color: var(--dorano-text);
    font-size: 14px;
    transition: all var(--dorano-transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
    background: var(--dorano-gold);
    color: var(--dorano-main);
    border-color: var(--dorano-gold);
}

/* ---------- Comments ---------- */
.comments-area {
    margin-top: 3em;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5em;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 1.5em 0;
    border-bottom: 1px solid var(--dorano-light-gray);
}

.comment-list .children {
    list-style: none;
    padding-inline-start: 2em;
}

.comment-meta {
    margin-bottom: 0.75em;
    font-size: 13px;
    color: var(--dorano-text-light);
}

.comment-author {
    font-weight: 600;
    color: var(--dorano-main);
}

.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.reply a {
    font-size: 13px;
    font-weight: 600;
    color: var(--dorano-gold);
}

.comment-respond {
    margin-top: 2em;
}

/* ---------- Search Form ---------- */
.search-form {
    display: flex;
    gap: 0;
}

.search-form .search-field {
    flex: 1;
    border-radius: 4px 0 0 4px;
}

.search-form .search-submit {
    border-radius: 0 4px 4px 0;
    padding: 10px 16px;
}

/* ---------- 404 Page ---------- */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 .page-title {
    font-size: 4rem;
    color: var(--dorano-gold);
    margin-bottom: 0.5em;
}

.error-404 p {
    font-size: 18px;
    color: var(--dorano-text-light);
    margin-bottom: 2em;
}

.error-404 .search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Archive / Page Headers ---------- */
.page-header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--dorano-light-gray);
}

.page-title {
    margin-bottom: 0.25em;
}

.archive-description,
.taxonomy-description {
    color: var(--dorano-text-light);
    font-size: 15px;
}

/* ---------- WooCommerce Basics ---------- */
.woocommerce .woocommerce-result-count {
    margin-bottom: 1em;
    color: var(--dorano-text-light);
    font-size: 14px;
}

.woocommerce .woocommerce-ordering select {
    width: auto;
    display: inline-block;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}

.woocommerce ul.products li.product {
    margin: 0;
    float: none;
    width: 100% !important;
    background: var(--dorano-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--dorano-shadow-sm);
    transition: transform var(--dorano-transition), box-shadow var(--dorano-transition);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--dorano-shadow-md);
}

.woocommerce ul.products li.product a img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    padding: 12px 16px 4px;
    margin: 0;
}

.woocommerce ul.products li.product .price {
    color: var(--dorano-gold);
    font-weight: 700;
    padding: 0 16px 12px;
    display: block;
}

.woocommerce ul.products li.product .button {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
    text-align: center;
    display: block;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1em 1.5em;
    margin-bottom: 1.5em;
    border-radius: 4px;
    background: var(--dorano-off-white);
    border-left: 4px solid var(--dorano-gold);
    list-style: none;
}

.woocommerce-error {
    border-left-color: var(--dorano-accent);
}

.woocommerce-message::before {
    color: var(--dorano-gold);
}

/* WooCommerce breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--dorano-text-light);
    margin-bottom: 1.5em;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--dorano-text-light);
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--dorano-gold);
}

/* WooCommerce sale badge */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    background: var(--dorano-accent);
    color: var(--dorano-white);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    min-width: auto;
    min-height: auto;
    line-height: 1.4;
    white-space: nowrap;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Star ratings */
.woocommerce .star-rating {
    color: var(--dorano-gold);
}

/* WooCommerce cart table */
.woocommerce table.shop_table {
    border: 1px solid var(--dorano-light-gray);
    border-radius: 4px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border: 1px solid var(--dorano-light-gray);
    padding: 12px 16px;
}

/* WooCommerce tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid var(--dorano-light-gray);
    margin-bottom: 1.5em;
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 20px;
    color: var(--dorano-text-light);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--dorano-transition);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--dorano-gold);
    border-bottom-color: var(--dorano-gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-next {
        text-align: left;
    }
}

@media (max-width: 544px) {
    .dorano-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-content .dorano-container {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .alignwide {
        margin-left: -15px;
        margin-right: -15px;
        max-width: calc(100% + 30px);
    }

    .comment-list .children {
        padding-inline-start: 1em;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 400px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}
