/* General layout */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at top, #ffe9f5 0, #fff8ef 40%, #f5f7ff 100%);
    color: #222;
}
body, html {
    width: 100%;
}
/* Logo in header */

.header-logo {
    height: 80px;
    width: auto;
    display: block;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Header */

.site-header {
    background: linear-gradient(90deg, #141627, #25284a);
    color: #fff;
    padding: 18px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

}
.site-header-title h1 {
    margin: 0;
    font-size: 1.8rem;
}

.site-header-title p {
    margin: 3px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.site-header-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-header-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 0;
    font-size: 0.95rem;
    position: relative;
}

.site-header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #ff9ac4;
    transition: width 0.2s;
}

.site-header-nav a:hover::after {
    width: 100%;
}

/* Shared page layout */

.page-container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 15px 40px 15px;
}

/* Product grid and cards */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid rgba(255, 154, 196, 0.25);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.card img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card h3 {
    margin: 8px 0 4px;
    font-size: 1.1rem;
}

.card p {
    margin: 4px 0;
    flex: 1;
    font-size: 0.93rem;
    line-height: 1.4;
}

.price {
    font-weight: 700;
    margin-top: 4px;
    color: #e75480;
}

.stock {
    font-size: 0.85rem;
    color: #666;
}

/* Product filters */

.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.product-filters-label {
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 4px;
}

.filter-pill {
    border-radius: 999px;
    border: 1px solid #e0c2ff;
    background: #fdf7ff;
    padding: 5px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.filter-pill:hover {
    transform: translateY(-1px);
    background: #f6e7ff;
}

.filter-pill.active {
    background: linear-gradient(135deg, #ff8bbd, #ffa45c);
    border-color: transparent;
    color: #fff;
}

/* Forms and buttons */

.buy-form {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

input[type="number"],
input[type="text"],
input[type="password"],
textarea,
input[type="email"] {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 7px 9px;
    border-radius: 6px;
    border: 1px solid #ccd0ff;
    outline: none;
    transition: border 0.15s, box-shadow 0.15s;
    background: #fdfdff;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
input[type="email"]:focus {
    border-color: #ff8bbd;
    box-shadow: 0 0 0 2px rgba(255, 139, 189, 0.3);
}

input[type="number"] {
    width: 80px;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8bbd, #ffa45c);
    color: #fff;
    box-shadow: 0 3px 8px rgba(255, 139, 189, 0.5);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255, 139, 189, 0.7);
}

.btn-secondary {
    background: #4b4f85;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* Cart page */

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.cart-table th,
.cart-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.cart-table th {
    background: #f8f1ff;
    font-weight: 600;
}

.cart-total {
    font-weight: 700;
    text-align: right;
    margin-top: 14px;
    font-size: 1.05rem;
}

.cart-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-empty {
    text-align: center;
    padding: 30px 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.cart-empty p {
    margin: 6px 0;
}

/* Toast message */

#cart-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25284a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
    max-width: 260px;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Mini cart header dropdown */

.mini-cart-wrap {
    position: relative;
    display: inline-block;
}

.mini-cart-toggle {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.mini-cart-count-pill {
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    background: #ff8bbd;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.mini-cart-panel {
    position: absolute;
    right: 0;
    top: 120%;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    padding: 10px 12px;
    font-size: 0.85rem;
    z-index: 999;
    display: none;
}

.mini-cart-panel.open {
    display: block;
}

.mini-cart-panel h4 {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
}

.mini-cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mini-cart-item-name {
    flex: 1;
    margin-right: 4px;
}

.mini-cart-panel-footer {
    margin-top: 6px;
    text-align: right;
    font-size: 0.9rem;
}

/* Fix invisible text inside mini cart */

.mini-cart-panel,
.mini-cart-panel * {
    color: #222 !important;
}

.mini-cart-panel h4 {
    color: #111 !important;
}

.mini-cart-item-name {
    color: #333 !important;
}

.mini-cart-panel p {
    color: #555 !important;
}

.mini-cart-panel a,
.mini-cart-panel a.btn {
    color: #fff !important;
}

/* Optional mini cart look */

.mini-cart-panel {
    border: 1px solid #f0d9ff;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.mini-cart-item {
    border-bottom: 1px dashed #edd8ff;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.mini-cart-item:last-child {
    border-bottom: none;
}

/* Delivery estimate text */

.delivery-estimate {
    font-size: 0.85rem;
    margin-top: 4px;
    color: #555;
}

/* Footer */

.site-footer {
    background: #141627;
    color: #eee;
    padding: 30px 15px;
    margin-top: 40px;
    font-size: 0.9em;
}

.site-footer a {
    color: #ffd1e6;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .footer-top {
    max-width: 1100px;
    margin: 0 auto 15px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.site-footer .footer-column {
    flex: 1 1 220px;
}

.site-footer h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1em;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 5px;
}

.site-footer .footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid #333861;
    padding-top: 10px;
    text-align: center;
}

.site-footer .cookies-note {
    margin-top: 5px;
    font-size: 0.85em;
    color: #ccc;
}

/* Content pages like terms, privacy */

.page-content h1 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.page-content h2 {
    margin-top: 18px;
    font-size: 1.2rem;
}

.page-content p,
.page-content li {
    font-size: 0.96rem;
    line-height: 1.6;
}

/* Simple admin styling */

.admin-wrap {
    max-width: 1100px;
    margin: 20px auto 40px auto;
    padding: 0 15px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 0.93rem;
}

.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f1ff;
}

/* Checkout layout */

.checkout-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    margin-top: 10px;
}

.checkout-main,
.checkout-summary {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 18px 20px 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 154, 196, 0.25);
}

.checkout-main {
    flex: 2 1 340px;
}

.checkout-summary {
    flex: 1 1 260px;
}

.checkout-summary h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.checkout-summary ul {
    padding-left: 18px;
    margin: 6px 0 8px 0;
}

.checkout-summary li {
    margin-bottom: 4px;
}

.checkout-summary-total {
    margin-top: 8px;
    font-weight: 700;
}

.checkout-summary-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

.checkout-form-group {
    margin-bottom: 12px;
}

.checkout-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.checkout-errors {
    margin: 8px 0 14px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffe6ea;
    color: #8a1f34;
    font-size: 0.9rem;
}

/* Responsive tweaks */

@media (max-width: 900px) {
    .site-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .site-header-title {
        flex: 0 1 auto;
        min-width: 0;
    }

    .header-logo {
        height: 48px;
        max-width: 140px;
    }

    .site-header-nav {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .checkout-layout {
        flex-direction: column;
    }

    .checkout-main,
    .checkout-summary {
        flex: 1 1 100%;
    }

    .checkout-summary {
        margin-top: 10px;
    }
}
@media (max-width: 600px) {
	 .product-detail-main {
        grid-template-columns: 1fr;
    }

    .product-detail {
        padding: 14px 12px 18px 12px;
    }

    .product-detail-info h1 {
        font-size: 1.4rem;
    }
    .page-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .buy-form {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .buy-form input[type="number"] {
        width: 70px;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-actions .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }

    .site-header-nav {
    justify-content: flex-end;
    gap: 10px;
}

      .page-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .buy-form {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .buy-form input[type="number"] {
        width: 70px;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-actions .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }

    .site-header-nav {
        justify-content: flex-end;
        gap: 10px;
    }

    /* Mini cart: full width panel under header */
    .mini-cart-panel {
        position: fixed;
        top: 60px;             /* just under the header */
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        z-index: 1000;
    }

    #cart-message {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .product-detail-main {
        grid-template-columns: 1fr;
    }

    .product-detail {
        padding: 14px 12px 18px 12px;
    }

    .product-detail-info h1 {
        font-size: 1.4rem;
    }

    .product-detail-usage-full {
        padding: 14px 12px;
        margin-top: 16px;
    }
    }
	.product-detail-usage-full {
		padding: 14px 12px;
		margin-top: 16px;
	}
		#cart-message {
			right: 10px;
			left: 10px;
			max-width: none;
		}
	}
.product-detail {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px 24px 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,154,196,0.25);
    margin-top: 12px;
}

.product-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 26px;
    align-items: flex-start;
}

.product-detail-image img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    max-height: 380px;
    display: block;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-info h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.7rem;
}

.product-detail-meta {
    margin: 4px 0 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff6fd, #fff9f2);
    border: 1px solid rgba(255,154,196,0.35);
    font-size: 0.92rem;
}

.product-detail-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.product-detail-meta-row:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: 600;
    color: #555;
}

.meta-value {
    text-align: right;
    color: #333;
}

.meta-price {
    color: #e75480;
    font-weight: 700;
}

.product-detail-description {
    margin-top: 6px;
    font-size: 0.96rem;
    line-height: 1.7;
    color: #444;
}

.product-detail-purchase {
    margin-top: 16px;
}

.product-detail-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.product-detail-form input[type="number"] {
    width: 80px;
}

/* Related block already looks ok, just give a bit more space */
.product-detail-related {
    margin-top: 26px;
}

.product-detail-related h2 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}



/* Remove ugly blue link styling in product cards and related products */

.card a,
.product-detail a {
    text-decoration: none;
    color: inherit;
}

.card h3 a {
    color: #222;
}

.card h3 a:hover {
    color: #e75480;
}

/* Make related product links prettier */
.product-detail-related a {
    text-decoration: none;
}

.product-detail-related h3 a {
    color: #222;
}

.product-detail-related h3 a:hover {
    color: #e75480;
}

.card {
    cursor: pointer;
}

/* Product description box */

.product-detail-description-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(255,154,196,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.product-detail-description-box h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: #333;
}

.product-detail-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}
/* How to use / safety box */

.product-detail-usage-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(255,154,196,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.product-detail-usage-box h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: #333;
}

.usage-section {
    margin-top: 6px;
}

.usage-section h4 {
    margin: 0 0 3px 0;
    font-size: 0.9rem;
    color: #555;
    text-transform: none;
}

.usage-section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

/* Full width How to Use & Safety box */

.product-detail-usage-full {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(255,154,196,0.35);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.product-detail-usage-full h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #333;
    border-bottom: 1px dashed #f2b6d2;
    padding-bottom: 6px;
}

.product-detail-usage-full .usage-section {
    margin-top: 10px;
}

.product-detail-usage-full .usage-section h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #555;
}

.product-detail-usage-full .usage-section p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}
.card p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;

}
/* Related products styling to match main cards */

.product-detail-related .products-grid {
    margin-top: 10px;
}

.related-card {
    text-align: left;
}

.related-desc {
    margin: 6px 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

.related-card-actions {
    margin-top: 10px;
}

.related-view-btn {
    display: inline-block;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.product-detail-related .btn {
    display: inline-block;
    width: auto;
}
/* Fix related product image size to match main cards */

.product-detail-related .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}